public class MatrixMetadata extends Metadata
Constructor and Description |
---|
MatrixMetadata() |
MatrixMetadata(int numRows,
int numColumns)
Constructor to create a MatrixMetadata object based on the number of rows
and the number of columns in a matrix.
|
MatrixMetadata(int numRows,
int numColumns,
int numNonZeros)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, and the number of non-zero values in a
matrix.
|
MatrixMetadata(int numRows,
int numColumns,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, the number of rows per block, and the number
of columns per block in a matrix.
|
MatrixMetadata(int numRows,
int numColumns,
int numNonZeros,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, the number of non-zero values, the number of
rows per block, and the number of columns per block in a matrix.
|
MatrixMetadata(Long numRows,
Long numColumns)
Constructor to create a MatrixMetadata object based on the number of rows
and the number of columns in a matrix.
|
MatrixMetadata(Long numRows,
Long numColumns,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, the number of rows per block, and the number
of columns per block in a matrix.
|
MatrixMetadata(Long numRows,
Long numColumns,
Long numNonZeros)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, and the number of non-zero values in a
matrix.
|
MatrixMetadata(Long numRows,
Long numColumns,
Long numNonZeros,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on the number of
rows, the number of columns, the number of non-zero values, the number of
rows per block, and the number of columns per block in a matrix.
|
MatrixMetadata(MatrixCharacteristics matrixCharacteristics)
Constructor to create a MatrixMetadata object based on a
MatrixCharacteristics object.
|
MatrixMetadata(MatrixFormat matrixFormat)
Constructor to create a MatrixMetadata object based on matrix format.
|
MatrixMetadata(MatrixFormat matrixFormat,
int numRows,
int numColumns)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, and the number of columns in a matrix.
|
MatrixMetadata(MatrixFormat matrixFormat,
int numRows,
int numColumns,
int numNonZeros)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, the number of columns, and the number of non-zero values
in a matrix.
|
MatrixMetadata(MatrixFormat matrixFormat,
int numRows,
int numColumns,
int numNonZeros,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, the number of columns, the number of non-zero values, the
number of rows per block, and the number of columns per block in a
matrix.
|
MatrixMetadata(MatrixFormat matrixFormat,
Long numRows,
Long numColumns)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, and the number of columns in a matrix.
|
MatrixMetadata(MatrixFormat matrixFormat,
Long numRows,
Long numColumns,
Long numNonZeros)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, the number of columns, and the number of non-zero values
in a matrix.
|
MatrixMetadata(MatrixFormat matrixFormat,
Long numRows,
Long numColumns,
Long numNonZeros,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a MatrixMetadata object based on matrix format, the
number of rows, the number of columns, the number of non-zero values, the
number of rows per block, and the number of columns per block in a
matrix.
|
Modifier and Type | Method and Description |
---|---|
MatrixCharacteristics |
asMatrixCharacteristics()
Convert the matrix metadata to a MatrixCharacteristics object.
|
MatrixFormat |
getMatrixFormat()
Obtain the matrix format
|
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 MatrixMetadata fields based on a MatrixCharacteristics object.
|
void |
setMatrixFormat(MatrixFormat matrixFormat)
Set the matrix format
|
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() |
public MatrixMetadata()
public MatrixMetadata(MatrixFormat matrixFormat)
matrixFormat
- The matrix format.public MatrixMetadata(MatrixFormat matrixFormat, Long numRows, Long numColumns)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.public MatrixMetadata(MatrixFormat matrixFormat, int numRows, int numColumns)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.public MatrixMetadata(MatrixFormat matrixFormat, Long numRows, Long numColumns, Long numNonZeros)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.public MatrixMetadata(MatrixFormat matrixFormat, int numRows, int numColumns, int numNonZeros)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.public MatrixMetadata(MatrixFormat matrixFormat, Long numRows, Long numColumns, Long numNonZeros, Integer numRowsPerBlock, Integer numColumnsPerBlock)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(MatrixFormat matrixFormat, int numRows, int numColumns, int numNonZeros, int numRowsPerBlock, int numColumnsPerBlock)
matrixFormat
- The matrix format.numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(Long numRows, Long numColumns)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.public MatrixMetadata(int numRows, int numColumns)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.public MatrixMetadata(Long numRows, Long numColumns, Long numNonZeros)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.public MatrixMetadata(int numRows, int numColumns, int numNonZeros)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.public MatrixMetadata(Long numRows, Long numColumns, Integer numRowsPerBlock, Integer numColumnsPerBlock)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(int numRows, int numColumns, int numRowsPerBlock, int numColumnsPerBlock)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(Long numRows, Long numColumns, Long numNonZeros, Integer numRowsPerBlock, Integer numColumnsPerBlock)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(int numRows, int numColumns, int numNonZeros, int numRowsPerBlock, int numColumnsPerBlock)
numRows
- The number of rows in the matrix.numColumns
- The number of columns in the matrix.numNonZeros
- The number of non-zero values in the matrix.numRowsPerBlock
- The number of rows per block in the matrix.numColumnsPerBlock
- The number of columns per block in the matrix.public MatrixMetadata(MatrixCharacteristics matrixCharacteristics)
matrixCharacteristics
- the matrix metadata as a MatrixCharacteristics objectpublic void setMatrixCharacteristics(MatrixCharacteristics matrixCharacteristics)
matrixCharacteristics
- the matrix metadata as a MatrixCharacteristics objectpublic Long getNumRows()
public void setNumRows(Long numRows)
numRows
- the number of rowspublic Long getNumColumns()
public void setNumColumns(Long numColumns)
numColumns
- the number of columnspublic Long getNumNonZeros()
public void setNumNonZeros(Long numNonZeros)
numNonZeros
- the number of non-zero valuespublic Integer getNumRowsPerBlock()
public void setNumRowsPerBlock(Integer numRowsPerBlock)
numRowsPerBlock
- the number of rows per blockpublic Integer getNumColumnsPerBlock()
public void setNumColumnsPerBlock(Integer numColumnsPerBlock)
numColumnsPerBlock
- the number of columns per blockpublic MatrixCharacteristics asMatrixCharacteristics()
null
, null
is returned.null
if all field values are nullpublic MatrixFormat getMatrixFormat()
public void setMatrixFormat(MatrixFormat matrixFormat)
matrixFormat
- the matrix formatCopyright © 2017 The Apache Software Foundation. All rights reserved.