@SubclassesMustBePublic public abstract class Offset extends Object implements ReadableOffset, Cloneable
reset()
and clone()
, must be called
from a single thread.
Annotated with SubclassesMustBePublic
because Offset occurrences are replaced with a subclass in Historical1SimpleDoubleAggPooledTopNScannerPrototype
and HistoricalSingleValueDimSelector1SimpleDoubleAggPooledTopNScannerPrototype
during
specialization, and specialized version of those prototypes must be able to any subclass of Offset.
This interface is the core "pointer" interface that is used to create ColumnValueSelector
s
over historical segments. It's counterpart for incremental index is TimeAndDimsHolder
.Constructor and Description |
---|
Offset() |
Modifier and Type | Method and Description |
---|---|
Offset |
clone() |
abstract ReadableOffset |
getBaseReadableOffset()
Returns the same offset ("this") or a readable "view" of this offset, which always returns the same value from
ReadableOffset.getOffset() , as this offset. |
abstract void |
increment() |
abstract void |
reset()
Resets the Offset to the position it was created or cloned with.
|
abstract boolean |
withinBounds() |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOffset
inspectRuntimeShape
@CalledFromHotLoop public abstract void increment()
@CalledFromHotLoop public abstract boolean withinBounds()
public abstract void reset()
public abstract ReadableOffset getBaseReadableOffset()
ReadableOffset.getOffset()
, as this offset. This method is useful for "unwrapping" such offsets as FilteredOffset
and reduce reference indirection, when only ReadableOffset
API is needed.Copyright © 2011–2018. All rights reserved.