public class FrameMetadata extends Metadata
Constructor and Description |
---|
FrameMetadata() |
FrameMetadata(FrameFormat frameFormat)
Constructor to create a FrameMetadata object based on frame format.
|
FrameMetadata(FrameFormat frameFormat,
FrameSchema frameSchema)
Constructor to create a FrameMetadata object based on frame format and
frame schema.
|
FrameMetadata(FrameFormat frameFormat,
FrameSchema frameSchema,
int numRows,
int numColumns)
Constructor to create a FrameMetadata object based on frame format, frame
schema, the number of rows, and the number of columns in a frame.
|
FrameMetadata(FrameFormat frameFormat,
FrameSchema frameSchema,
int numRows,
int numColumns,
int numNonZeros,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a FrameMetadata object based on frame format, frame
schema, 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 frame.
|
FrameMetadata(FrameFormat frameFormat,
FrameSchema frameSchema,
Long numRows,
Long numColumns)
Constructor to create a FrameMetadata object based on frame format, frame
schema, the number of rows, and the number of columns in a frame.
|
FrameMetadata(FrameFormat frameFormat,
FrameSchema frameSchema,
Long numRows,
Long numColumns,
Long numNonZeros,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a FrameMetadata object based on frame format, frame
schema, 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 frame.
|
FrameMetadata(FrameFormat frameFormat,
int numRows,
int numColumns)
Constructor to create a FrameMetadata object based on frame format, the
number of rows, and the number of columns in a frame.
|
FrameMetadata(FrameFormat frameFormat,
int numRows,
int numColumns,
int numNonZeros)
Constructor to create a FrameMetadata object based on frame format, the
number of rows, the number of columns, and the number of non-zero values
in a frame.
|
FrameMetadata(FrameFormat frameFormat,
int numRows,
int numColumns,
int numNonZeros,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a FrameMetadata object based on frame 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 frame.
|
FrameMetadata(FrameFormat frameFormat,
Long numRows,
Long numColumns)
Constructor to create a FrameMetadata object based on frame format, the
number of rows, and the number of columns in a frame.
|
FrameMetadata(FrameFormat frameFormat,
Long numRows,
Long numColumns,
Long numNonZeros)
Constructor to create a FrameMetadata object based on frame format, the
number of rows, the number of columns, and the number of non-zero values
in a frame.
|
FrameMetadata(FrameFormat frameFormat,
Long numRows,
Long numColumns,
Long numNonZeros,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a FrameMetadata object based on frame 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 frame.
|
FrameMetadata(FrameSchema frameSchema)
Constructor to create a FrameMetadata object based on frame schema.
|
FrameMetadata(FrameSchema frameSchema,
MatrixCharacteristics matrixCharacteristics)
Constructor to create a FrameMetadata object based on the frame schema
and a MatrixCharacteristics object.
|
FrameMetadata(int numRows,
int numColumns)
Constructor to create a FrameMetadata object based on the number of rows
and the number of columns in a frame.
|
FrameMetadata(int numRows,
int numColumns,
int numNonZeros)
Constructor to create a FrameMetadata object based on the number of rows,
the number of columns, and the number of non-zero values in a frame.
|
FrameMetadata(int numRows,
int numColumns,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a FrameMetadata 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 frame.
|
FrameMetadata(int numRows,
int numColumns,
int numNonZeros,
int numRowsPerBlock,
int numColumnsPerBlock)
Constructor to create a FrameMetadata 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 frame.
|
FrameMetadata(Long numRows,
Long numColumns)
Constructor to create a FrameMetadata object based on the number of rows
and the number of columns in a frame.
|
FrameMetadata(Long numRows,
Long numColumns,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a FrameMetadata 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 frame.
|
FrameMetadata(Long numRows,
Long numColumns,
Long numNonZeros)
Constructor to create a FrameMetadata object based on the number of rows,
the number of columns, and the number of non-zero values in a frame.
|
FrameMetadata(Long numRows,
Long numColumns,
Long numNonZeros,
Integer numRowsPerBlock,
Integer numColumnsPerBlock)
Constructor to create a FrameMetadata 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 frame.
|
FrameMetadata(MatrixCharacteristics matrixCharacteristics)
Constructor to create a FrameMetadata object based on a
MatrixCharacteristics object.
|
FrameMetadata(String schema)
Constructor to create a FrameMetadata object based on a string
representation of a frame schema.
|
Modifier and Type | Method and Description |
---|---|
MatrixCharacteristics |
asMatrixCharacteristics()
Convert the frame metadata to a MatrixCharacteristics object.
|
FrameFormat |
getFrameFormat()
Obtain the frame format
|
FrameSchema |
getFrameSchema()
Obtain the frame schema
|
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 |
setFrameFormat(FrameFormat frameFormat)
Set the frame format
|
void |
setFrameSchema(FrameSchema frameSchema)
Set the frame schema
|
void |
setMatrixCharacteristics(MatrixCharacteristics matrixCharacteristics)
Set the FrameMetadata 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() |
public FrameMetadata()
public FrameMetadata(String schema)
schema
- String representation of the frame schema.public FrameMetadata(FrameFormat frameFormat)
frameFormat
- The frame format.public FrameMetadata(FrameSchema frameSchema)
frameSchema
- The frame schema.public FrameMetadata(FrameFormat frameFormat, FrameSchema frameSchema)
frameFormat
- The frame format.frameSchema
- The frame schema.public FrameMetadata(FrameFormat frameFormat, FrameSchema frameSchema, Long numRows, Long numColumns)
frameFormat
- The frame format.frameSchema
- The frame schema.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(FrameFormat frameFormat, FrameSchema frameSchema, int numRows, int numColumns)
frameFormat
- The frame format.frameSchema
- The frame schema.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(FrameFormat frameFormat, FrameSchema frameSchema, Long numRows, Long numColumns, Long numNonZeros, Integer numRowsPerBlock, Integer numColumnsPerBlock)
frameFormat
- The frame format.frameSchema
- The frame schema.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(FrameFormat frameFormat, FrameSchema frameSchema, int numRows, int numColumns, int numNonZeros, int numRowsPerBlock, int numColumnsPerBlock)
frameFormat
- The frame format.frameSchema
- The frame schema.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(FrameFormat frameFormat, Long numRows, Long numColumns)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(FrameFormat frameFormat, int numRows, int numColumns)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(FrameFormat frameFormat, Long numRows, Long numColumns, Long numNonZeros)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.public FrameMetadata(FrameFormat frameFormat, int numRows, int numColumns, int numNonZeros)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.public FrameMetadata(FrameFormat frameFormat, Long numRows, Long numColumns, Long numNonZeros, Integer numRowsPerBlock, Integer numColumnsPerBlock)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(FrameFormat frameFormat, int numRows, int numColumns, int numNonZeros, int numRowsPerBlock, int numColumnsPerBlock)
frameFormat
- The frame format.numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(Long numRows, Long numColumns)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(int numRows, int numColumns)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.public FrameMetadata(Long numRows, Long numColumns, Long numNonZeros)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.public FrameMetadata(int numRows, int numColumns, int numNonZeros)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.public FrameMetadata(Long numRows, Long numColumns, Integer numRowsPerBlock, Integer numColumnsPerBlock)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(int numRows, int numColumns, int numRowsPerBlock, int numColumnsPerBlock)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(Long numRows, Long numColumns, Long numNonZeros, Integer numRowsPerBlock, Integer numColumnsPerBlock)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(int numRows, int numColumns, int numNonZeros, int numRowsPerBlock, int numColumnsPerBlock)
numRows
- The number of rows in the frame.numColumns
- The number of columns in the frame.numNonZeros
- The number of non-zero values in the frame.numRowsPerBlock
- The number of rows per block in the frame.numColumnsPerBlock
- The number of columns per block in the frame.public FrameMetadata(MatrixCharacteristics matrixCharacteristics)
matrixCharacteristics
- the frame metadata as a MatrixCharacteristics objectpublic FrameMetadata(FrameSchema frameSchema, MatrixCharacteristics matrixCharacteristics)
frameSchema
- The frame schema.matrixCharacteristics
- the frame metadata as a MatrixCharacteristics objectpublic void setMatrixCharacteristics(MatrixCharacteristics matrixCharacteristics)
matrixCharacteristics
- the frame 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 FrameFormat getFrameFormat()
public void setFrameFormat(FrameFormat frameFormat)
frameFormat
- the frame formatpublic FrameSchema getFrameSchema()
public void setFrameSchema(FrameSchema frameSchema)
frameSchema
- the frame schemaCopyright © 2017 The Apache Software Foundation. All rights reserved.