Class ToObjectPage<T,ATTR extends Attributes.Any>

java.lang.Object
com.illumon.iris.db.v2.locations.parquet.topage.ToObjectPage<T,ATTR>
All Implemented Interfaces:
ToPage<ATTR,T[]>

public class ToObjectPage<T,ATTR extends Attributes.Any> extends Object implements ToPage<ATTR,T[]>
  • Method Details

    • create

      public static <T, ATTR extends Attributes.Any> ToPage<ATTR,T[]> create(Class<T> nativeType, @NotNull io.deephaven.util.codec.ObjectCodec<T> codec, Supplier<org.apache.parquet.column.Dictionary> dictionarySupplier)
    • getNativeType

      @NotNull public final Class<?> getNativeType()
      Specified by:
      getNativeType in interface ToPage<T,ATTR extends Attributes.Any>
      Returns:
      The native type for the elements of the arrays produced by this object.
    • getChunkType

      @NotNull public final ChunkType getChunkType()
      Specified by:
      getChunkType in interface ToPage<T,ATTR extends Attributes.Any>
      Returns:
      The chunk type used to wrap the arrays produced by this object.
    • convertResultArray

      @NotNull public final T[] convertResultArray(@NotNull Object result)
      Specified by:
      convertResultArray in interface ToPage<T,ATTR extends Attributes.Any>
      Returns:
      Produce the array of values from the result
    • convertSingleResult

      public T convertSingleResult(@Nullable Object result)
      Specified by:
      convertSingleResult in interface ToPage<T,ATTR extends Attributes.Any>
    • convertSingleResult

      public static <T> T convertSingleResult(@Nullable Object result, io.deephaven.util.codec.ObjectCodec<T> codec)