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)-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.parquet.topage.ToPage
ToPage.Wrap<ATTR extends Attributes.Any,INNER_RESULT, OUTER_RESULT> -
Method Summary
Modifier and TypeMethodDescriptionfinal long[]convertResultArray(Object result) static <ATTR extends Attributes.Any>
ToDBDateTimePageFromInt96<ATTR>final ChunkTypefinal Class<DBDateTime>final DbArray<DBDateTime>makeDbArray(long[] result) static voidsetReferenceTimeZone(String timeZone) Allows overriding the time zone to be used when interpreting Int96 timestamp values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.locations.parquet.topage.ToPage
convertSingleResult, getDictionaryChunk, getDictionaryKeysToPage, getResult, getReversibleLookup, toPage
-
Method Details
-
create
public static <ATTR extends Attributes.Any> ToDBDateTimePageFromInt96<ATTR> create(@NotNull Class<?> nativeType) -
setReferenceTimeZone
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
- Specified by:
getNativeTypein interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- The native type for the elements of the arrays produced by this object.
-
getChunkType
- Specified by:
getChunkTypein interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- The chunk type used to wrap the arrays produced by this object.
-
nullValue
- Specified by:
nullValuein interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- The null value stored in the elements of the arrays produced by thus object.
-
getNativeComponentType
- Specified by:
getNativeComponentTypein interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- The native type for the elements of engine arrays produced by this object.
-
convertResultArray
- Specified by:
convertResultArrayin interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- Produce the array of values from the result
-
makeDbArray
- Specified by:
makeDbArrayin interfaceToPage<ATTR extends Attributes.Any,long[]> - Returns:
- the method to create a Vector from RESULT.
-