Interface ToPage<ATTR extends Any,​RESULT>

All Known Implementing Classes:
ToArrayPage, ToBigDecimalBase, ToBigDecimalFromIntPage, ToBigDecimalFromLongPage, ToBooleanAsBytePage, ToBytePageFromInt, ToCharPageFromInt, ToDateTimePage, ToDateTimePageFromInt96, ToDoublePage, ToFloatPage, ToIntPage, ToLongPage, ToObjectPage, ToPage.Wrap, ToPageWithDictionary, ToShortPageFromInt, ToStringPage, ToStringSetPage, ToVectorPage

public interface ToPage<ATTR extends Any,​RESULT>
This provides a translation layer from the parquet results into the appropriately typed Chunk's.
  • Method Details

    • getNativeType

      @NotNull Class<?> getNativeType()
      Returns:
      The native type for the elements of the arrays produced by this object.
    • getNativeComponentType

      @NotNull default Class<?> getNativeComponentType()
      Returns:
      The native type for the elements of engine arrays produced by this object.
      ApiNote:
    • getChunkType

      @NotNull ChunkType getChunkType()
      Returns:
      The chunk type used to wrap the arrays produced by this object.
    • nullValue

      default Object nullValue()
      Returns:
      The null value stored in the elements of the arrays produced by thus object.
    • getResult

      default Object getResult​(ColumnPageReader columnPageReader) throws IOException
      Returns:
      Gets the result from the columnPageReader.
      Throws:
      IOException
    • convertResult

      default RESULT convertResult​(Object result)
      Returns:
      Produce the array of values from the result
    • makeVector

      default Vector makeVector​(RESULT result)
      Returns:
      the method to create a Vector from RESULT.
    • toPage

      @NotNull @FinalDefault default ChunkPage<ATTR> toPage​(long offset, ColumnPageReader columnPageReader, long mask) throws IOException
      Produce the appropriately typed chunk page for the page read by the columnPageReader. The is the expected entry point for the ColumnChunkPageStore.
      Throws:
      IOException
    • getDictionaryChunk

      default Chunk<ATTR> getDictionaryChunk()
      Returns:
      the dictionary stored for this column, if one exists, otherwise null.
    • getDictionaryKeysToPage

      default ToPage<DictionaryKeys,​long[]> getDictionaryKeysToPage()
      Returns:
      an object implementing ToPage which will read the integral Dictionary Indices when there's a dictionary for this column (as opposed to the values, which this object's toPage will return). This will return null iff getDictionaryChunk() returns null.
      ApiNote:
      null iff getDictionaryChunk() is null.
    • getReversibleLookup

      default LongBitmapStringSet.ReversibleLookup getReversibleLookup()
      Returns:
      an reverse lookup map of the dictionary.
      ApiNote:
      null iff getDictionaryChunk() is null.