Class CompressedVSizeColumnarIntsSupplier.CompressedVSizeColumnarInts

java.lang.Object
org.apache.druid.segment.data.CompressedVSizeColumnarIntsSupplier.CompressedVSizeColumnarInts
All Implemented Interfaces:
Closeable, AutoCloseable, HotLoopCallee, ColumnarInts, IndexedInts
Enclosing class:
CompressedVSizeColumnarIntsSupplier

public class CompressedVSizeColumnarIntsSupplier.CompressedVSizeColumnarInts extends Object implements ColumnarInts
  • Constructor Details

    • CompressedVSizeColumnarInts

      public CompressedVSizeColumnarInts()
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface IndexedInts
    • getCompressionStrategy

      public CompressionStrategy getCompressionStrategy()
    • get

      public int get(int index)
      Returns the value at the given index into the column.

      Assumes the number of entries in each decompression buffers is a power of two.

      Specified by:
      get in interface IndexedInts
      Parameters:
      index - index of the value in the column
      Returns:
      the value at the given index
    • get

      public void get(int[] out, int start, int length)
      Specified by:
      get in interface IndexedInts
    • get

      public void get(int[] out, int offset, int start, int length)
      Specified by:
      get in interface ColumnarInts
    • get

      public void get(int[] out, int[] indexes, int length)
      Specified by:
      get in interface IndexedInts
    • loadBuffer

      protected void loadBuffer(int bufferNum)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • inspectRuntimeShape

      public void inspectRuntimeShape(RuntimeShapeInspector inspector)
      Description copied from interface: HotLoopCallee
      Implementations of this method should call inspector.visit() with all fields of this class, which meet two conditions: 1. They are used in methods of this class, annotated with CalledFromHotLoop 2. They are either: a. Nullable objects b. Instances of HotLoopCallee c. Objects, which don't always have a specific class in runtime. For example, a field of type Set could be HashSet or TreeSet in runtime, depending on how this instance (the instance on which inspectRuntimeShape() is called) is configured. d. ByteBuffer or similar objects, where byte order matters e. boolean flags, affecting branch taking f. Arrays of objects, meeting any of conditions a-e.
      Specified by:
      inspectRuntimeShape in interface HotLoopCallee