Class MutableOffHeapByteArrayStore
- java.lang.Object
-
- org.apache.pinot.segment.local.io.writer.impl.MutableOffHeapByteArrayStore
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MutableOffHeapByteArrayStore extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description MutableOffHeapByteArrayStore(PinotDataBufferMemoryManager memoryManager, String allocationContext, int numArrays, int avgArrayLen)
-
Method Summary
Modifier and Type Method Description intadd(byte[] value)voidclose()booleanequalsValueAt(byte[] value, int index)byte[]get(int index)longgetAvgValueSize()intgetStartSize()longgetTotalOffHeapMemUsed()
-
-
-
Constructor Detail
-
MutableOffHeapByteArrayStore
public MutableOffHeapByteArrayStore(PinotDataBufferMemoryManager memoryManager, String allocationContext, int numArrays, int avgArrayLen)
-
-
Method Detail
-
getStartSize
public int getStartSize()
-
get
public byte[] get(int index)
-
add
public int add(byte[] value)
-
equalsValueAt
public boolean equalsValueAt(byte[] value, int index)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getTotalOffHeapMemUsed
public long getTotalOffHeapMemUsed()
-
getAvgValueSize
public long getAvgValueSize()
-
-