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 Details

    • TableAndRowCountPair

      public TableAndRowCountPair(int numRows, ContiguousTable table)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getNumRows

      public int getNumRows()
      Get the number of rows that were deserialized.
    • getTable

      public Table 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

      public ContiguousTable 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.