Package org.apache.druid.query.vector
Class VectorCursorGranularizer
- java.lang.Object
-
- org.apache.druid.query.vector.VectorCursorGranularizer
-
public class VectorCursorGranularizer extends Object
Class that helps vectorized query engines handle "granularity" parameters. Nonvectorized engines have it handled for them by the StorageAdapter. Vectorized engines don't, because they can get efficiency gains by pushing granularity handling into the engine layer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadvanceCursorWithinBucket()Return true, and advances the cursor, if it can be advanced within the current time bucket.static VectorCursorGranularizercreate(StorageAdapter storageAdapter, VectorCursor cursor, Granularity granularity, org.joda.time.Interval queryInterval)Iterable<org.joda.time.Interval>getBucketIterable()intgetEndOffset()intgetStartOffset()voidsetCurrentOffsets(org.joda.time.Interval bucketInterval)
-
-
-
Method Detail
-
create
@Nullable public static VectorCursorGranularizer create(StorageAdapter storageAdapter, VectorCursor cursor, Granularity granularity, org.joda.time.Interval queryInterval)
-
setCurrentOffsets
public void setCurrentOffsets(org.joda.time.Interval bucketInterval)
-
advanceCursorWithinBucket
public boolean advanceCursorWithinBucket()
Return true, and advances the cursor, if it can be advanced within the current time bucket. Otherwise, returns false and does nothing else.
-
getBucketIterable
public Iterable<org.joda.time.Interval> getBucketIterable()
-
getStartOffset
public int getStartOffset()
-
getEndOffset
public int getEndOffset()
-
-