Package ai.rapids.cudf
Class JCudfSerialization.TableAndRowCountPair
java.lang.Object
ai.rapids.cudf.JCudfSerialization.TableAndRowCountPair
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- JCudfSerialization
public static final class JCudfSerialization.TableAndRowCountPair
extends Object
implements Closeable
Holds the result of deserializing a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Get the ContiguousTable that was deserialized or null if there was no data (e.g.: rows without columns).int
Get the number of rows that were deserialized.getTable()
Get the Table that was deserialized or null if there was no data (e.g.: rows without columns).
-
Constructor Details
-
TableAndRowCountPair
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getNumRows
public int getNumRows()Get the number of rows that were deserialized. -
getTable
Get the Table that was deserialized or null if there was no data (e.g.: rows without columns).NOTE: Ownership of the table is not transferred by this method. The table is still owned by this instance and will be closed when this instance is closed.
-
getContiguousTable
Get the ContiguousTable that was deserialized or null if there was no data (e.g.: rows without columns).NOTE: Ownership of the contiguous table is not transferred by this method. The contiguous table is still owned by this instance and will be closed when this instance is closed.
-