public abstract class Metadata extends Object
Modifier and Type | Field and Description |
---|---|
protected Long |
numColumns |
protected Integer |
numColumnsPerBlock |
protected Long |
numNonZeros |
protected Long |
numRows |
protected Integer |
numRowsPerBlock |
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
MatrixCharacteristics |
asMatrixCharacteristics()
Convert the metadata to a MatrixCharacteristics object.
|
protected String |
fieldDisplay(Object field) |
Long |
getNumColumns()
Obtain the number of columns
|
Integer |
getNumColumnsPerBlock()
Obtain the number of columns per block
|
Long |
getNumNonZeros()
Obtain the number of non-zero values
|
Long |
getNumRows()
Obtain the number of rows
|
Integer |
getNumRowsPerBlock()
Obtain the number of rows per block
|
void |
setMatrixCharacteristics(MatrixCharacteristics matrixCharacteristics)
Set the metadata fields based on a MatrixCharacteristics object.
|
void |
setNumColumns(Long numColumns)
Set the number of columns
|
void |
setNumColumnsPerBlock(Integer numColumnsPerBlock)
Set the number of columns per block
|
void |
setNumNonZeros(Long numNonZeros)
Set the number of non-zero values
|
void |
setNumRows(Long numRows)
Set the number of rows
|
void |
setNumRowsPerBlock(Integer numRowsPerBlock)
Set the number of rows per block
|
String |
toString() |
protected Long numColumns
protected Integer numColumnsPerBlock
protected Long numNonZeros
protected Long numRows
protected Integer numRowsPerBlock
public MatrixCharacteristics asMatrixCharacteristics()
null
, null
is returned.null
if all field values are nullpublic Long getNumColumns()
public Integer getNumColumnsPerBlock()
public Long getNumNonZeros()
public Long getNumRows()
public Integer getNumRowsPerBlock()
public void setMatrixCharacteristics(MatrixCharacteristics matrixCharacteristics)
matrixCharacteristics
- the matrix metadata as a MatrixCharacteristics objectpublic void setNumColumns(Long numColumns)
numColumns
- the number of columnspublic void setNumColumnsPerBlock(Integer numColumnsPerBlock)
numColumnsPerBlock
- the number of columns per blockpublic void setNumNonZeros(Long numNonZeros)
numNonZeros
- the number of non-zero valuespublic void setNumRows(Long numRows)
numRows
- the number of rowspublic void setNumRowsPerBlock(Integer numRowsPerBlock)
numRowsPerBlock
- the number of rows per blockCopyright © 2017 The Apache Software Foundation. All rights reserved.