R - value type returned by the visitorpublic interface DataStorageVisitor<R>
DataBuffer instances.| Modifier and Type | Method and Description |
|---|---|
R |
fallback()
Fallback method called if the visitor implementation does not support the type of backing storage
for a given
DataBuffer |
default R |
visit(BitSet bitSet,
int offset,
long numBits)
Visit the bit set backing a given instance of a
DataBuffer |
default R |
visit(boolean[] array,
int offset,
int length)
Visit the boolean array backing a given instance of a
DataBuffer |
default R |
visit(ByteBuffer buffer)
Visit the
ByteBuffer backing a given instance of a DataBuffer |
default R |
visit(DoubleBuffer buffer)
Visit the
DoubleBuffer backing a given instance of a DataBuffer |
default R |
visit(FloatBuffer buffer)
Visit the
FloatBuffer backing a given instance of a DataBuffer |
default R |
visit(IntBuffer buffer)
Visit the
IntBuffer backing a given instance of a DataBuffer |
default R |
visit(LongBuffer buffer)
Visit the
LongBuffer backing a given instance of a DataBuffer |
default R |
visit(long address,
long length,
long scale)
Visit the raw memory segment of a given instance of a
DataBuffer |
default R |
visit(Object[] array,
int offset,
int length)
Visit the object array backing a given instance of a
DataBuffer |
default R |
visit(ShortBuffer buffer)
Visit the
ShortBuffer backing a given instance of a DataBuffer |
default R visit(ByteBuffer buffer)
ByteBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(ShortBuffer buffer)
ShortBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(IntBuffer buffer)
IntBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(LongBuffer buffer)
LongBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(FloatBuffer buffer)
FloatBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(DoubleBuffer buffer)
DoubleBuffer backing a given instance of a DataBufferbuffer - underlying bufferDataBuffer.accept(DataStorageVisitor)default R visit(boolean[] array, int offset, int length)
DataBufferarray - underlying arrayoffset - offset of the buffer within the arraylength - length of the buffer within the arrayDataBuffer.accept(DataStorageVisitor)default R visit(BitSet bitSet, int offset, long numBits)
DataBufferbitSet - underlying bit setoffset - offset of the buffer within the bit setnumBits - number of bits used to represent the buffer within the bit setDataBuffer.accept(DataStorageVisitor)default R visit(Object[] array, int offset, int length)
DataBufferarray - underlying arrayoffset - offset of the buffer within the arraylength - length of the buffer within the arrayDataBuffer.accept(DataStorageVisitor)default R visit(long address, long length, long scale)
DataBufferaddress - native address of the bufferlength - length of the bufferscale - number of bytes required to store a single value of this bufferDataBuffer.accept(DataStorageVisitor)R fallback()
DataBuffer
The implementor of this interface must override the visit methods for type of storage
it supports. If DataBuffer.accept(DataStorageVisitor) is called on a buffer
using a different type of storage, the invocation will fallback to this method.
Copyright © 2015–2020. All rights reserved.