public static final class JCudfSerialization.SerializedTableHeader extends Object
Constructor and Description |
---|
SerializedTableHeader(DataInputStream din) |
SerializedTableHeader(int numRows)
Constructor for a row-count only table (no columns)
|
Modifier and Type | Method and Description |
---|---|
JCudfSerialization.SerializedColumnHeader |
getColumnHeader(int columnIndex)
Get the column header for the corresponding column index
|
long |
getDataLen()
Returns the size of a buffer needed to read data into the stream.
|
int |
getNumColumns()
Returns the number of columns stored in this table
|
int |
getNumRows()
Returns the number of rows stored in this table.
|
long |
getSerializedHeaderSizeInBytes()
Returns the number of bytes needed to serialize this table header.
|
long |
getTotalSerializedSizeInBytes()
Returns the number of bytes needed to serialize this table header and the table data.
|
boolean |
wasDataRead()
Set to true once data is successfully read from a stream by readTableIntoBuffer.
|
boolean |
wasInitialized()
Returns true if the metadata for this table was read, else false indicating an EOF was
encountered.
|
void |
writeTo(ai.rapids.cudf.JCudfSerialization.DataWriter dout) |
public SerializedTableHeader(DataInputStream din) throws IOException
IOException
public SerializedTableHeader(int numRows)
public JCudfSerialization.SerializedColumnHeader getColumnHeader(int columnIndex)
public boolean wasDataRead()
public long getDataLen()
public int getNumRows()
public int getNumColumns()
public boolean wasInitialized()
public long getSerializedHeaderSizeInBytes()
public long getTotalSerializedSizeInBytes()
public void writeTo(ai.rapids.cudf.JCudfSerialization.DataWriter dout) throws IOException
IOException
Copyright © 2024. All rights reserved.