Class ToDateTimePageFromInt96<ATTR extends Any>

java.lang.Object
io.deephaven.parquet.table.pagestore.topage.ToDateTimePageFromInt96<ATTR>
All Implemented Interfaces:
ToPage<ATTR,​long[]>

public class ToDateTimePageFromInt96<ATTR extends Any>
extends Object
implements ToPage<ATTR,​long[]>
Parquet ToPage implementation for DateTimes stored as Int96s representing an Impala format Timestamp (nanoseconds of day and Julian date encoded as 8 bytes and 4 bytes, respectively)
  • Method Details

    • create

      public static <ATTR extends Any> ToDateTimePageFromInt96<ATTR> create​(@NotNull Class<?> nativeType)
    • setReferenceTimeZone

      public static void setReferenceTimeZone​(@NotNull String timeZone)
      Allows overriding the time zone to be used when interpreting Int96 timestamp values. Default is UTC. Can be set globally with the parameter deephaven.parquet.referenceTimeZone. Valid values are time zone Strings which would be used in convertDateTime, such as NY.
      Parameters:
      timeZone -
    • getNativeType

      @NotNull public final Class<Long> getNativeType()
      Specified by:
      getNativeType in interface ToPage<ATTR extends Any,​long[]>
      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<ATTR extends Any,​long[]>
      Returns:
      The chunk type used to wrap the arrays produced by this object.
    • nullValue

      public Object nullValue()
      Specified by:
      nullValue in interface ToPage<ATTR extends Any,​long[]>
      Returns:
      The null value stored in the elements of the arrays produced by thus object.
    • getNativeComponentType

      @NotNull public final Class<DateTime> getNativeComponentType()
      Specified by:
      getNativeComponentType in interface ToPage<ATTR extends Any,​long[]>
      Returns:
      The native type for the elements of engine arrays produced by this object.
    • convertResult

      public final long[] convertResult​(@NotNull Object result)
      Specified by:
      convertResult in interface ToPage<ATTR extends Any,​long[]>
      Returns:
      Produce the array of values from the result
    • makeVector

      @NotNull public final ObjectVector<DateTime> makeVector​(@NotNull long[] result)
      Specified by:
      makeVector in interface ToPage<ATTR extends Any,​long[]>
      Returns:
      the method to create a Vector from RESULT.