public class CompressedDataBuffer extends BaseDataBuffer
DataBuffer.AllocationMode, DataBuffer.TypeEx| Modifier and Type | Field and Description |
|---|---|
protected CompressionDescriptor |
compressionDescriptor |
allocationMode, attached, constant, elementSize, indexer, length, offset, originalBuffer, originalOffset, parentWorkspace, pointer, referenced, released, TO_STRING_MAX_ELEMENTS, type, underlyingLength, workspaceGenerationId, wrappedDataBuffer| Constructor and Description |
|---|
CompressedDataBuffer(org.bytedeco.javacpp.Pointer pointer,
@NonNull CompressionDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
org.bytedeco.javacpp.Pointer |
addressPointer()
Returns the address of the pointer wrapped in a Pointer
|
DataBuffer |
create(double[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(float[] data)
Create the data buffer
with respect to the given byte buffer
|
DataBuffer |
create(int[] data)
Create the data buffer
with respect to the given byte buffer
|
protected DataBuffer |
create(long length)
Create with length
|
DataBuffer |
dup()
Return a copy of this buffer
|
protected double |
getDoubleUnsynced(long index) |
protected float |
getFloatUnsynced(long index) |
protected int |
getIntUnsynced(long index) |
protected long |
getLongUnsynced(long index) |
protected void |
initTypeAndSize()
Initialize the opType of this buffer
|
long |
length()
Returns the length of the buffer
|
void |
pointerIndexerByCurrentType(DataType currentType) |
static DataBuffer |
readUnknown(DataInputStream s,
DataBuffer.AllocationMode allocMode,
long length,
DataType type)
Drop-in replacement wrapper for BaseDataBuffer.read() method, aware of CompressedDataBuffer
|
DataBuffer |
reallocate(long length)
Reallocate the native memory of the buffer
|
protected void |
setIndexer(org.bytedeco.javacpp.indexer.Indexer indexer) |
void |
syncToPrimary()
This method synchronizes host memory
|
void |
syncToSpecial()
This method synchronizes device memory
|
void |
write(DataOutputStream out) |
addReferencing, address, allocationMode, array, asBytes, asDouble, asFloat, asInt, asLong, asNio, asNioDouble, asNioFloat, asNioInt, asNioLong, assign, assign, assign, assign, assign, assign, assign, assign, assign, assign, capacity, close, closeable, copyAtStride, dataType, destroy, dirty, doReadObject, equals, fillPointerWithZero, flush, fromFloat, getDouble, getDoublesAt, getDoublesAt, getElementSize, getFloat, getFloatsAt, getFloatsAt, getGenerationId, getInt, getIntsAt, getIntsAt, getLong, getLongsAt, getLongsAt, getNumber, getParentWorkspace, getShort, hashCode, indexer, isAttached, isConstant, isInScope, isPersist, markReleased, offset, originalDataBuffer, originalOffset, persist, pickReferent, platformAddress, pointer, put, put, put, put, put, putByDestinationType, read, read, readContent, readHeader, references, release, removeReferencing, sameUnderlyingData, setConstant, setData, setData, setData, setData, setData, setData, setData, setNioBuffer, toFloat, toString, underlyingDataBuffer, underlyingLength, unPersist, wasClosed, wrappedBuffer, writeprotected CompressionDescriptor compressionDescriptor
public CompressedDataBuffer(org.bytedeco.javacpp.Pointer pointer,
@NonNull
@NonNull CompressionDescriptor descriptor)
protected void initTypeAndSize()
initTypeAndSize in class BaseDataBufferpublic void write(DataOutputStream out) throws IOException
write in interface DataBufferwrite in class BaseDataBufferIOExceptionprotected void setIndexer(org.bytedeco.javacpp.indexer.Indexer indexer)
setIndexer in class BaseDataBufferpublic org.bytedeco.javacpp.Pointer addressPointer()
DataBufferaddressPointer in interface DataBufferaddressPointer in class BaseDataBufferpublic static DataBuffer readUnknown(DataInputStream s, DataBuffer.AllocationMode allocMode, long length, DataType type)
s - public DataBuffer dup()
DataBufferdup in interface DataBufferdup in class BaseDataBufferpublic long length()
DataBufferlength in interface DataBufferlength in class BaseDataBufferprotected DataBuffer create(long length)
create in class BaseDataBufferlength - a databuffer of the same opType as
this with the given lengthpublic DataBuffer create(double[] data)
create in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(float[] data)
create in class BaseDataBufferdata - the buffer to createpublic DataBuffer create(int[] data)
create in class BaseDataBufferdata - the buffer to createpublic void pointerIndexerByCurrentType(DataType currentType)
pointerIndexerByCurrentType in class BaseDataBufferpublic DataBuffer reallocate(long length)
DataBufferreallocate in interface DataBufferreallocate in class BaseDataBufferlength - the new length of the bufferpublic void syncToPrimary()
BaseDataBuffersyncToPrimary in class BaseDataBufferpublic void syncToSpecial()
BaseDataBuffersyncToSpecial in class BaseDataBufferprotected double getDoubleUnsynced(long index)
getDoubleUnsynced in class BaseDataBufferprotected float getFloatUnsynced(long index)
getFloatUnsynced in class BaseDataBufferprotected long getLongUnsynced(long index)
getLongUnsynced in class BaseDataBufferprotected int getIntUnsynced(long index)
getIntUnsynced in class BaseDataBufferCopyright © 2021. All rights reserved.