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 DBDateTime
s 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 Type Method Description long[]
convertResult(Object result)
static <ATTR extends Attributes.Any>
ToDBDateTimePageFromInt96<ATTR>create(Class<?> nativeType)
ChunkType
getChunkType()
Class<DBDateTime>
getNativeComponentType()
Class<Long>
getNativeType()
DbArray<DBDateTime>
makeDbArray(long[] result)
Object
nullValue()
static void
setReferenceTimeZone(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, wait
Methods inherited from interface com.illumon.iris.db.v2.locations.parquet.topage.ToPage
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:
getNativeType
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- The native type for the elements of the arrays produced by this object.
-
getChunkType
- Specified by:
getChunkType
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- The chunk type used to wrap the arrays produced by this object.
-
nullValue
- Specified by:
nullValue
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- The null value stored in the elements of the arrays produced by thus object.
-
getNativeComponentType
- Specified by:
getNativeComponentType
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- The native type for the elements of engine arrays produced by this object.
-
convertResult
- Specified by:
convertResult
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- Produce the array of values from the result
-
makeDbArray
- Specified by:
makeDbArray
in interfaceToPage<ATTR extends Attributes.Any,long[]>
- Returns:
- the method to create a Vector from RESULT.
-