Interface ToPage<ATTR extends Any,RESULT>

All Known Implementing Classes:
ToArrayPage, ToBigDecimalFromNumeric, ToBigDecimalPage, ToBigIntegerPage, ToBooleanAsBytePage, ToBytePage, ToCharPage, ToDoublePage, ToFloatPage, ToInstantPage, ToIntPage, ToLocalDatePage, ToLocalDateTimePage, ToLocalTimePage, ToLongPage, ToObjectPage, ToPage.Wrap, ToPageWithDictionary, ToShortPage, 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 @NotNull Class<?> getNativeType()
      Returns:
      The native type for the elements of the arrays produced by this object.
    • getNativeComponentType

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

      @NotNull @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, SeekableChannelContext channelContext) 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 @NotNull ChunkPage<ATTR> toPage(long offset, ColumnPageReader columnPageReader, @NotNull @NotNull SeekableChannelContext channelContext, long mask) throws IOException
      Produce the appropriately typed chunk page for the page read by the columnPageReader. This 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:
      a reverse lookup map of the dictionary.
      ApiNote:
      null iff getDictionaryChunk() is null.
    • getPageMaterializerFactory

      PageMaterializerFactory getPageMaterializerFactory()
      Returns:
      the factory to create the materializers for this column.