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