Package org.apache.druid.segment.data
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intget(int index) Returns the value at the given index into the column.voidget(int[] out, int[] indexes, int length) voidget(int[] out, int start, int length) voidget(int[] out, int offset, int start, int length) voidinspectRuntimeShape(RuntimeShapeInspector inspector) Implementations of this method should callinspector.visit()with all fields of this class, which meet two conditions: 1.protected voidloadBuffer(int bufferNum) intsize()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.segment.data.IndexedInts
debugToString, forEach
-
Constructor Details
-
CompressedVSizeColumnarInts
public CompressedVSizeColumnarInts()
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceIndexedInts
-
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:
getin interfaceIndexedInts- 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:
getin interfaceIndexedInts
-
get
public void get(int[] out, int offset, int start, int length) - Specified by:
getin interfaceColumnarInts
-
get
public void get(int[] out, int[] indexes, int length) - Specified by:
getin interfaceIndexedInts
-
loadBuffer
protected void loadBuffer(int bufferNum) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toString
-
inspectRuntimeShape
Description copied from interface:HotLoopCalleeImplementations of this method should callinspector.visit()with all fields of this class, which meet two conditions: 1. They are used in methods of this class, annotated withCalledFromHotLoop2. 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 typeSetcould beHashSetorTreeSetin 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:
inspectRuntimeShapein interfaceHotLoopCallee
-