Interface IndexedInts

All Superinterfaces:
HotLoopCallee
All Known Subinterfaces:
ColumnarInts
All Known Implementing Classes:
ArrayBasedIndexedInts, CompressedVSizeColumnarIntsSupplier.CompressedVSizeColumnarInts, RangeIndexedInts, SingleIndexedInt, SliceIndexedInts, VSizeColumnarInts, ZeroIndexedInts

public interface IndexedInts extends HotLoopCallee
Get a int an index (array or list lookup abstraction without boxing). Doesn't extend Iterable (or IntIterable to avoid accidental for-each iteration with boxing.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     
     
    default void
     
    int
    get(int index)
     
    default void
    get(int[] out, int[] indexes, int length)
     
    default void
    get(int[] out, int start, int length)
     
    int
     

    Methods inherited from interface org.apache.druid.query.monomorphicprocessing.HotLoopCallee

    inspectRuntimeShape
  • Method Details

    • 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()