Class ToDBDateTimePageFromInt96<ATTR extends Attributes.Any>

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

public class ToDBDateTimePageFromInt96<ATTR extends Attributes.Any> extends Object implements ToPage<ATTR,long[]>
Parquet ToPage implementation for DBDateTimes 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 Attributes.Any> ToDBDateTimePageFromInt96<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 Attributes.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 Attributes.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 Attributes.Any,long[]>
      Returns:
      The null value stored in the elements of the arrays produced by thus object.
    • getNativeComponentType

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

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

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