Package com.qfs.chunk

Interface ITable

All Known Subinterfaces:
IAggregatesRetrievalResult, IAggregateStore, IByteRecordBlock, IChunkSet, IColumnarTable, IDatabaseRetrievalResult, IFixedLengthIntegerArrayDictionary, IIntegerArrayDictionary, IInternalAggregatesRetrievalResult, IIterableAggregatesRetrievalResult, IPointList, IRecordBlock<RecordT>, ITypedColumnarTable, IUnnamedColumnarTable, IWritableByteRecordBlock, IWritableIntegerArrayDictionary, IWritableRecordBlock<RecordT>, IWritableTable
All Known Implementing Classes:
AColumnStore, ADatabaseRetrievalResult, AFixedLengthIntegerArrayDictionary, AggregateStore, AppendOnlyByteRecordBlock, ARecordBlock, ArrowRecordBlock, AWritableFixedSizeRecordBlock, BucketedIntegerArrayDictionary, ChunkArray, ChunkSet, ChunkSetRecordBlock, ColumnarIntegerArrayDictionary, ColumnWrappingPointList, DatabaseRetrievalResult, DummyRecordBlock, EmptyAggregateStore, EmptyDatabaseRetrievalResult, ExpandedAggregatesRetrievalResult, FilteredAggregateStoreView, FilteredPointList, FilteredRecordBlock, FixedLengthIntegerArrayDictionary, IntegerArrayDictionary, IntegerArrayDictionaryWithHash, IntegerArrayList, IntegerArrayPermutationDictionary, MultiColumnarTableWrapper, OffsetRecordBlock, PointListRetrievalResult, PointReferenceDictionary, RecordBlock, RecordBlockMeasureStore, ReplicatedAggregateStore, SingleRowDelegateRecordBlock, SingleRowWritableRecordBlock, SparseChunkSet, TranslatedIntegerArrayDictionary

public interface ITable
Data elements organized in a table layout.

Depending of the storage implementation, it may be more efficient to read cells column by column or row by row.

Author:
ActiveViam
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isNull(int row, int column)
    Returns whether the value stored at the given row and column is null or not.
    read(int row, int column)
    Reads the Object value stored in the table at the intersection of the given row and column.
    boolean
    readBoolean(int row, int column)
    Reads the boolean primitive value stored in the table at the intersection of the given row and column.
    double
    readDouble(int row, int column)
    Reads the double primitive value stored in the table at the intersection of the given row and column.
    float
    readFloat(int row, int column)
    Reads the float primitive value stored in the table at the intersection of the given row and column.
    int
    readInt(int row, int column)
    Reads the int primitive value stored in the table at the intersection of the given row and column.
    long
    readLong(int row, int column)
    Reads the long primitive value stored in the table at the intersection of the given row and column.
  • Method Details

    • isNull

      boolean isNull(int row, int column)
      Returns whether the value stored at the given row and column is null or not. Before reading primitive values, when it is not certain that the data is not null, this method must be called first to check nullity.
      Parameters:
      row - index of the row to check
      column - index of the column to check
      Returns:
      true if the column value is null, false otherwise
    • read

      Object read(int row, int column)
      Reads the Object value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      Object value
    • readBoolean

      boolean readBoolean(int row, int column)
      Reads the boolean primitive value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      boolean value
    • readInt

      int readInt(int row, int column)
      Reads the int primitive value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      int value
    • readLong

      long readLong(int row, int column)
      Reads the long primitive value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      long value
    • readDouble

      double readDouble(int row, int column)
      Reads the double primitive value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      double value
    • readFloat

      float readFloat(int row, int column)
      Reads the float primitive value stored in the table at the intersection of the given row and column.
      Parameters:
      row - index of the row to read
      column - index of the column to read
      Returns:
      float value