Package com.illumon.iris.db.v2.sources
Class ZonedDateTimeSparseArraySource
java.lang.Object
com.illumon.iris.db.v2.sources.AbstractColumnSource<T>
com.illumon.iris.db.v2.sources.SparseArrayColumnSource<TIME_TYPE>
com.illumon.iris.db.v2.sources.NanosBasedTimeSparseArraySource<ZonedDateTime>
com.illumon.iris.db.v2.sources.ZonedDateTimeSparseArraySource
- All Implemented Interfaces:
ChunkSource<Attributes.Values>
,ChunkSource.WithPrev<Attributes.Values>
,DefaultChunkSource<Attributes.Values>
,DefaultChunkSource.WithPrev<Attributes.Values>
,FillContextMaker
,GetContextMaker
,ColumnSource<ZonedDateTime>
,ColumnSourceGetDefaults.ForObject<ZonedDateTime>
,ConvertableTimeSource
,ConvertableTimeSource.Zoned
,ElementSource<ZonedDateTime>
,FillUnordered
,MutableColumnSource<ZonedDateTime>
,MutableColumnSourceGetDefaults.ForObject<ZonedDateTime>
,Releasable
,WritableChunkSink<Attributes.Values>
,WritableSource<ZonedDateTime>
,TupleExporter<ZonedDateTime>
,TupleSource<ZonedDateTime>
,Serializable
public class ZonedDateTimeSparseArraySource extends NanosBasedTimeSparseArraySource<ZonedDateTime> implements MutableColumnSourceGetDefaults.ForObject<ZonedDateTime>, ConvertableTimeSource.Zoned
Array-backed ColumnSource for
Instant
s. Allows reinterpretation as long.- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.v2.sources.SparseArrayColumnSource
SparseArrayColumnSource.FillByContext<UArray>
Nested classes/interfaces inherited from class com.illumon.iris.db.v2.sources.AbstractColumnSource
AbstractColumnSource.DefaultedImmutable<DATA_TYPE>, AbstractColumnSource.DefaultedMutable<DATA_TYPE>, AbstractColumnSource.IsSerializable
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.ConvertableTimeSource
ConvertableTimeSource.Zoned
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Attributes.Any>, DefaultChunkSource.WithPrev<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.WritableChunkSink
WritableChunkSink.FillFromContext
-
Field Summary
Fields inherited from class com.illumon.iris.db.v2.sources.NanosBasedTimeSparseArraySource
nanoSource
Fields inherited from class com.illumon.iris.db.v2.sources.SparseArrayColumnSource
ZERO_LENGTH_SPARSE_ARRAY_COLUMN_SOURCE_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.WritableChunkSink
DEFAULT_FILL_FROM_INSTANCE
Fields inherited from interface com.illumon.iris.db.v2.sources.WritableSource
ZERO_LENGTH_WRITABLE_SOURCE_ARRAY
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeSparseArraySource(DBTimeZone zone)
ZonedDateTimeSparseArraySource(String zone)
ZonedDateTimeSparseArraySource(ZoneId zone)
ZonedDateTimeSparseArraySource(ZoneId zone, LongSparseArraySource nanoSource)
-
Method Summary
Modifier and Type Method Description ZoneId
getZone()
protected ZonedDateTime
makeValue(long nanos)
protected long
toNanos(ZonedDateTime value)
ColumnSource<ZonedDateTime>
toZonedDateTime(ZoneId zone)
Convert this source to aZonedDateTime
source at the specifiedzone
.Methods inherited from class com.illumon.iris.db.v2.sources.NanosBasedTimeSparseArraySource
allowsReinterpret, copy, doReinterpret, ensureCapacity, fillChunk, fillFromChunkByKeys, fillFromChunkByRanges, fillFromChunkUnordered, fillPrevChunk, get, getChunk, getLong, getPrev, getPrevChunk, getPrevLong, set, set, setNull, shift, startTrackingPrevValues, supportsTimeConversion, toDBDateTime, toEpochNano, toInstant, toLocalDate, toLocalTime
Methods inherited from class com.illumon.iris.db.v2.sources.SparseArrayColumnSource
fillChunkUnordered, fillFromChunk, fillPrevChunkUnordered, getDateTimeMemoryColumnSource, getPreferredChunkSize, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, getSparseMemoryColumnSource, isImmutable, makeFillFromContext, remove, set, set, set, set, set, set, setImmutable, setNull
Methods inherited from class com.illumon.iris.db.v2.sources.AbstractColumnSource
defaultFillChunk, getComponentType, getGroupingBuilder, getGroupingProvider, getNativeType, getType, hasGrouping, isSerializable, match, reinterpret, setGroupingProvider
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.sources.chunk.ChunkSource
fillChunk, getChunkType
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
fillPrevChunk
Methods inherited from interface com.illumon.iris.db.v2.sources.ColumnSource
allowsReinterpret, cast, createPreviousTuple, createTuple, createTupleFromValues, exportElement, exportElement, exportToExternalKey, getColumnSources, getComponentType, getGroupingBuilder, getGroupingProvider, getNativeType, getPrevSource, getType, hasGrouping, match, reinterpret, releaseCachedResources, setGroupingProvider, startTrackingPrevValues
Methods inherited from interface com.illumon.iris.db.v2.sources.ColumnSourceGetDefaults.ForObject
getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.sources.MutableColumnSourceGetDefaults.ForObject
getPrevBoolean, getPrevByte, getPrevChar, getPrevDouble, getPrevFloat, getPrevInt, getPrevLong, getPrevShort
Methods inherited from interface com.illumon.iris.db.v2.tuples.TupleExporter
exportElementReinterpreted
Methods inherited from interface com.illumon.iris.db.v2.tuples.TupleSource
createTupleFromReinterpretedValues
-
Constructor Details
-
ZonedDateTimeSparseArraySource
-
ZonedDateTimeSparseArraySource
-
ZonedDateTimeSparseArraySource
-
ZonedDateTimeSparseArraySource
public ZonedDateTimeSparseArraySource(@NotNull ZoneId zone, @NotNull LongSparseArraySource nanoSource)
-
-
Method Details
-
makeValue
- Specified by:
makeValue
in classNanosBasedTimeSparseArraySource<ZonedDateTime>
-
toNanos
- Specified by:
toNanos
in classNanosBasedTimeSparseArraySource<ZonedDateTime>
-
toZonedDateTime
Description copied from interface:ConvertableTimeSource
Convert this source to aZonedDateTime
source at the specifiedzone
.- Specified by:
toZonedDateTime
in interfaceConvertableTimeSource
- Overrides:
toZonedDateTime
in classNanosBasedTimeSparseArraySource<ZonedDateTime>
- Parameters:
zone
- the time zone- Returns:
- a view of this source as a
ZonedDateTime
-
getZone
- Specified by:
getZone
in interfaceConvertableTimeSource.Zoned
-