Class PinotNonNativeOrderLBuffer
- java.lang.Object
-
- org.apache.pinot.segment.spi.memory.PinotDataBuffer
-
- org.apache.pinot.segment.spi.memory.BasePinotLBuffer
-
- org.apache.pinot.segment.spi.memory.PinotNonNativeOrderLBuffer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
@ThreadSafe public class PinotNonNativeOrderLBuffer extends BasePinotLBuffer
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.spi.memory.BasePinotLBuffer
_buffer
-
Fields inherited from class org.apache.pinot.segment.spi.memory.PinotDataBuffer
BULK_BYTES_PROCESSING_THRESHOLD, NATIVE_ORDER, NON_NATIVE_ORDER
-
-
Method Summary
Modifier and Type Method Description chargetChar(int offset)chargetChar(long offset)doublegetDouble(int offset)doublegetDouble(long offset)floatgetFloat(int offset)floatgetFloat(long offset)intgetInt(int offset)intgetInt(long offset)longgetLong(int offset)longgetLong(long offset)shortgetShort(int offset)shortgetShort(long offset)static PinotNonNativeOrderLBuffermapFile(File file, boolean readOnly, long offset, long size)ByteOrderorder()voidputChar(int offset, char value)voidputChar(long offset, char value)voidputDouble(int offset, double value)voidputDouble(long offset, double value)voidputFloat(int offset, float value)voidputFloat(long offset, float value)voidputInt(int offset, int value)voidputInt(long offset, int value)voidputLong(int offset, long value)voidputLong(long offset, long value)voidputShort(int offset, short value)voidputShort(long offset, short value)-
Methods inherited from class org.apache.pinot.segment.spi.memory.BasePinotLBuffer
copyTo, copyTo, flush, getByte, getByte, putByte, putByte, readFrom, readFrom, readFrom, release, size, toDirectByteBuffer, view
-
Methods inherited from class org.apache.pinot.segment.spi.memory.PinotDataBuffer
allocateDirect, close, copyTo, getAllocationFailureCount, getBufferInfo, getDirectBufferCount, getDirectBufferUsage, getMmapBufferCount, getMmapBufferUsage, loadBigEndianFile, loadFile, mapFile, mapReadOnlyBigEndianFile, readFrom, toDirectByteBuffer, view
-
-
-
-
Method Detail
-
mapFile
public static PinotNonNativeOrderLBuffer mapFile(File file, boolean readOnly, long offset, long size) throws IOException
- Throws:
IOException
-
getChar
public char getChar(int offset)
- Specified by:
getCharin classPinotDataBuffer
-
getChar
public char getChar(long offset)
- Specified by:
getCharin classPinotDataBuffer
-
putChar
public void putChar(int offset, char value)- Specified by:
putCharin classPinotDataBuffer
-
putChar
public void putChar(long offset, char value)- Specified by:
putCharin classPinotDataBuffer
-
getShort
public short getShort(int offset)
- Specified by:
getShortin classPinotDataBuffer
-
getShort
public short getShort(long offset)
- Specified by:
getShortin classPinotDataBuffer
-
putShort
public void putShort(int offset, short value)- Specified by:
putShortin classPinotDataBuffer
-
putShort
public void putShort(long offset, short value)- Specified by:
putShortin classPinotDataBuffer
-
getInt
public int getInt(int offset)
- Specified by:
getIntin classPinotDataBuffer
-
getInt
public int getInt(long offset)
- Specified by:
getIntin classPinotDataBuffer
-
putInt
public void putInt(int offset, int value)- Specified by:
putIntin classPinotDataBuffer
-
putInt
public void putInt(long offset, int value)- Specified by:
putIntin classPinotDataBuffer
-
getLong
public long getLong(int offset)
- Specified by:
getLongin classPinotDataBuffer
-
getLong
public long getLong(long offset)
- Specified by:
getLongin classPinotDataBuffer
-
putLong
public void putLong(int offset, long value)- Specified by:
putLongin classPinotDataBuffer
-
putLong
public void putLong(long offset, long value)- Specified by:
putLongin classPinotDataBuffer
-
getFloat
public float getFloat(int offset)
- Specified by:
getFloatin classPinotDataBuffer
-
getFloat
public float getFloat(long offset)
- Specified by:
getFloatin classPinotDataBuffer
-
putFloat
public void putFloat(int offset, float value)- Specified by:
putFloatin classPinotDataBuffer
-
putFloat
public void putFloat(long offset, float value)- Specified by:
putFloatin classPinotDataBuffer
-
getDouble
public double getDouble(int offset)
- Specified by:
getDoublein classPinotDataBuffer
-
getDouble
public double getDouble(long offset)
- Specified by:
getDoublein classPinotDataBuffer
-
putDouble
public void putDouble(int offset, double value)- Specified by:
putDoublein classPinotDataBuffer
-
putDouble
public void putDouble(long offset, double value)- Specified by:
putDoublein classPinotDataBuffer
-
order
public ByteOrder order()
- Specified by:
orderin classPinotDataBuffer
-
-