Package org.apache.druid.segment.data
Interface IndexedInts
-
- All Superinterfaces:
HotLoopCallee
- All Known Subinterfaces:
ColumnarInts
- All Known Implementing Classes:
ArrayBasedIndexedInts,CombineFirstTwoValuesColumnarInts,CombineFirstTwoValuesIndexedInts,RangeIndexedInts,SingleIndexedInt,SliceIndexedInts,VSizeColumnarInts,ZeroIndexedInts
public interface IndexedInts extends HotLoopCallee
Get a int an index (array or list lookup abstraction without boxing). Doesn't extendIterable(orIntIterableto avoid accidental for-each iteration with boxing.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringdebugToString()static IndexedIntsempty()default voidforEach(IntConsumer action)intget(int index)default voidget(int[] out, int[] indexes, int length)default voidget(int[] out, int start, int length)intsize()-
Methods inherited from interface org.apache.druid.query.monomorphicprocessing.HotLoopCallee
inspectRuntimeShape
-
-
-
-
Method Detail
-
empty
static IndexedInts empty()
-
size
@CalledFromHotLoop int size()
-
get
@CalledFromHotLoop int get(int index)
-
get
default void get(int[] out, int start, int length)
-
get
default void get(int[] out, int[] indexes, int length)
-
forEach
default void forEach(IntConsumer action)
-
debugToString
default String debugToString()
-
-