| Package | Description |
|---|---|
| de.gsi.dataset.serializer | |
| de.gsi.dataset.serializer.spi | |
| de.gsi.dataset.serializer.spi.iobuffer |
| Modifier and Type | Method and Description |
|---|---|
IoBuffer |
IoBuffer.putBoolean(boolean value) |
default IoBuffer |
IoBuffer.putBooleanArray(boolean[] src) |
default IoBuffer |
IoBuffer.putBooleanArray(boolean[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putBooleanArray(boolean[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putByte(byte b) |
default IoBuffer |
IoBuffer.putByteArray(byte[] src) |
default IoBuffer |
IoBuffer.putByteArray(byte[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putByteArray(byte[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putChar(char value) |
default IoBuffer |
IoBuffer.putCharArray(char[] src) |
default IoBuffer |
IoBuffer.putCharArray(char[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putCharArray(char[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putDouble(double value) |
default IoBuffer |
IoBuffer.putDoubleArray(double[] src) |
default IoBuffer |
IoBuffer.putDoubleArray(double[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putDoubleArray(double[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putFloat(float value) |
default IoBuffer |
IoBuffer.putFloatArray(float[] src) |
default IoBuffer |
IoBuffer.putFloatArray(float[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putFloatArray(float[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putInt(int value) |
default IoBuffer |
IoBuffer.putIntArray(int[] src) |
default IoBuffer |
IoBuffer.putIntArray(int[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putIntArray(int[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putLong(long value) |
default IoBuffer |
IoBuffer.putLongArray(long[] src) |
default IoBuffer |
IoBuffer.putLongArray(long[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putLongArray(long[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putShort(short value) |
default IoBuffer |
IoBuffer.putShortArray(short[] src) |
default IoBuffer |
IoBuffer.putShortArray(short[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putShortArray(short[] src,
long offset,
int nToCopy) |
IoBuffer |
IoBuffer.putString(String string) |
default IoBuffer |
IoBuffer.putStringArray(String[] src) |
default IoBuffer |
IoBuffer.putStringArray(String[] src,
int nToCopy) |
IoBuffer |
IoBuffer.putStringArray(String[] src,
long offset,
int nToCopy) |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteBuffer |
class |
FastByteBuffer
FastByteBuffer implementation based on JVM 'Unsafe' Class.
|
| Modifier and Type | Method and Description |
|---|---|
IoBuffer |
FastByteBuffer.clear() |
IoBuffer |
ByteBuffer.clear() |
IoBuffer |
FastByteBuffer.ensureAdditionalCapacity(long capacity) |
IoBuffer |
ByteBuffer.ensureAdditionalCapacity(long capacity) |
IoBuffer |
FastByteBuffer.ensureCapacity(long newCapacity) |
IoBuffer |
ByteBuffer.ensureCapacity(long capacity) |
IoBuffer |
FastByteBuffer.forceCapacity(long length,
long preserve)
Forces FastByteBUffer to contain the given number of entries, preserving just a part of the array.
|
IoBuffer |
ByteBuffer.forceCapacity(long length,
long preserve) |
IoBuffer |
FastByteBuffer.limit(int newLimit) |
IoBuffer |
ByteBuffer.limit(int newLimit) |
IoBuffer |
FastByteBuffer.position(long newPosition) |
IoBuffer |
ByteBuffer.position(long newPosition) |
IoBuffer |
FastByteBuffer.putBoolean(boolean value) |
IoBuffer |
ByteBuffer.putBoolean(boolean value) |
IoBuffer |
FastByteBuffer.putBooleanArray(boolean[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putBooleanArray(boolean[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putByte(byte value) |
IoBuffer |
ByteBuffer.putByte(byte b) |
IoBuffer |
FastByteBuffer.putByteArray(byte[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putByteArray(byte[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putChar(char value) |
IoBuffer |
ByteBuffer.putChar(char value) |
IoBuffer |
FastByteBuffer.putCharArray(char[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putCharArray(char[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putDouble(double value) |
IoBuffer |
ByteBuffer.putDouble(double value) |
IoBuffer |
FastByteBuffer.putDoubleArray(double[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putDoubleArray(double[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putFloat(float value) |
IoBuffer |
ByteBuffer.putFloat(float value) |
IoBuffer |
FastByteBuffer.putFloatArray(float[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putFloatArray(float[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putInt(int value) |
IoBuffer |
ByteBuffer.putInt(int value) |
IoBuffer |
FastByteBuffer.putIntArray(int[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putIntArray(int[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putLong(long value) |
IoBuffer |
ByteBuffer.putLong(long value) |
IoBuffer |
FastByteBuffer.putLongArray(long[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putLongArray(long[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putShort(short value) |
IoBuffer |
ByteBuffer.putShort(short value) |
IoBuffer |
FastByteBuffer.putShortArray(short[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putShortArray(short[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.putString(String string) |
IoBuffer |
ByteBuffer.putString(String string) |
IoBuffer |
FastByteBuffer.putStringArray(String[] values,
long offset,
int nToCopy) |
IoBuffer |
ByteBuffer.putStringArray(String[] src,
long offset,
int nToCopy) |
IoBuffer |
FastByteBuffer.reset() |
IoBuffer |
ByteBuffer.reset() |
IoBuffer |
FastByteBuffer.trim()
Trims the internal buffer array so that the capacity is equal to the size.
|
IoBuffer |
ByteBuffer.trim() |
IoBuffer |
FastByteBuffer.trim(int requestedCapacity)
Trims the internal buffer array if it is too large.
|
IoBuffer |
ByteBuffer.trim(int requestedCapacity) |
| Modifier and Type | Method and Description |
|---|---|
static void |
BinarySerialiser.adjustDataByteSizeBlock(IoBuffer buffer,
long sizeMarkerStart) |
static BinarySerialiser.HeaderInfo |
BinarySerialiser.checkHeaderInfo(IoBuffer readBuffer) |
static int[] |
BinarySerialiser.getArrayDimensions(IoBuffer readBuffer) |
static boolean |
BinarySerialiser.getBoolean(IoBuffer readBuffer) |
static boolean[] |
BinarySerialiser.getBooleanArray(IoBuffer readBuffer) |
static byte |
BinarySerialiser.getByte(IoBuffer readBuffer) |
static byte[] |
BinarySerialiser.getByteArray(IoBuffer readBuffer) |
static char[] |
BinarySerialiser.getCharArray(IoBuffer readBuffer) |
static <E> Collection<E> |
BinarySerialiser.getCollection(IoBuffer readBuffer,
Collection<E> collection) |
static double |
BinarySerialiser.getDouble(IoBuffer readBuffer) |
static double[] |
BinarySerialiser.getDoubleArray(IoBuffer readBuffer) |
static double[] |
BinarySerialiser.getDoubleArray(IoBuffer readBuffer,
DataType dataType) |
static Enum<?> |
BinarySerialiser.getEnum(IoBuffer readBuffer,
Enum<?> enumeration) |
static String |
BinarySerialiser.getEnumTypeList(IoBuffer readBuffer) |
static FieldHeader |
BinarySerialiser.getFieldHeader(IoBuffer readBuffer) |
static float |
BinarySerialiser.getFloat(IoBuffer readBuffer) |
static float[] |
BinarySerialiser.getFloatArray(IoBuffer readBuffer) |
protected static Object[] |
BinarySerialiser.getGenericArrayAsPrimitive(IoBuffer readBuffer,
DataType dataType) |
static int[] |
BinarySerialiser.getIntArray(IoBuffer readBuffer) |
static int |
BinarySerialiser.getInteger(IoBuffer readBuffer) |
static <E> List<E> |
BinarySerialiser.getList(IoBuffer readBuffer,
List<E> collection) |
static long |
BinarySerialiser.getLong(IoBuffer readBuffer) |
static long[] |
BinarySerialiser.getLongArray(IoBuffer readBuffer) |
static <K,V> Map<K,V> |
BinarySerialiser.getMap(IoBuffer readBuffer,
Map<K,V> map) |
static <E> Queue<E> |
BinarySerialiser.getQueue(IoBuffer readBuffer,
Queue<E> collection) |
static <E> Set<E> |
BinarySerialiser.getSet(IoBuffer readBuffer,
Set<E> collection) |
static short |
BinarySerialiser.getShort(IoBuffer readBuffer) |
static short[] |
BinarySerialiser.getShortArray(IoBuffer readBuffer) |
static String |
BinarySerialiser.getString(IoBuffer readBuffer) |
static String[] |
BinarySerialiser.getStringArray(IoBuffer readBuffer) |
static FieldHeader |
BinarySerialiser.parseIoStream(IoBuffer buffer) |
protected static void |
BinarySerialiser.parseIoStream(IoBuffer buffer,
FieldHeader fieldRoot,
int recursionDepth) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
boolean value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
boolean[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
boolean[] arrayValue,
int[] dims) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
byte value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
byte[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
byte[] arrayValue,
int[] dims) |
static <E> void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
Collection<E> collection) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
double value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
double[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
double[] arrayValue,
int[] dims) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
Enum<?> enumeration) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
float value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
float[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
float[] arrayValue,
int[] dims) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
int value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
int[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
int[] arrayValue,
int[] dims) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
long value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
long[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
long[] arrayValue,
int[] dims) |
static <K,V> void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
Map<K,V> map) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
short value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
short[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
short[] arrayValue,
int[] dims) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
String value) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
String[] arrayValue) |
static void |
BinarySerialiser.put(IoBuffer buffer,
String fieldName,
String[] arrayValue,
int[] dims) |
static long |
BinarySerialiser.putArrayHeader(IoBuffer buffer,
String fieldName,
DataType dataType,
int[] dims,
int nElements) |
static void |
BinarySerialiser.putEndMarker(IoBuffer buffer,
String markerName) |
static void |
BinarySerialiser.putFieldHeader(IoBuffer buffer,
String fieldName,
DataType dataType) |
static void |
BinarySerialiser.putFieldHeader(IoBuffer buffer,
String fieldName,
DataType dataType,
int additionalSize) |
static void |
BinarySerialiser.putGenericArrayAsPrimitive(IoBuffer buffer,
DataType dataType,
Object[] data,
int nToCopy) |
static void |
BinarySerialiser.putHeaderInfo(IoBuffer buffer)
Adds header and version information
|
static void |
BinarySerialiser.putStartMarker(IoBuffer buffer,
String markerName) |
static double[][] |
BinaryArrayFactory.readDoubleMatrix(IoBuffer buffer,
FieldHeader fieldHeader) |
protected static void |
BinarySerialiser.swallowRest(IoBuffer readBuffer,
FieldHeader fieldHeader) |
| Modifier and Type | Field and Description |
|---|---|
protected IoBuffer |
IoBufferFieldSerialiser.ioBuffer |
| Modifier and Type | Method and Description |
|---|---|
IoBuffer |
IoBufferFieldSerialiser.getBuffer() |
IoBuffer |
IoBufferSerialiser.getBuffer() |
| Modifier and Type | Method and Description |
|---|---|
protected static Optional<FieldHeader> |
DataSetSerialiser.checkFieldCompatibility(IoBuffer buffer,
List<FieldHeader> fieldHeaderList,
String fieldName,
DataType... requireDataTypes) |
protected static void |
DataSetSerialiser.parseDataLabels(IoBuffer readBuffer,
DataSetBuilder builder,
List<FieldHeader> fieldHeaderList) |
protected static void |
DataSetSerialiser.parseHeader(IoBuffer readBuffer,
DataSetBuilder builder,
List<FieldHeader> fieldHeaderList) |
protected static void |
DataSetSerialiser.parseMetaData(IoBuffer readBuffer,
DataSetBuilder builder,
List<FieldHeader> fieldHeaderList) |
protected static void |
DataSetSerialiser.parseNumericData(IoBuffer readBuffer,
DataSetBuilder builder,
List<FieldHeader> fieldHeaderList) |
static DataSet |
DataSetSerialiser.readDataSetFromByteArray(IoBuffer readBuffer)
Read a Dataset from a byte array containing comma separated values.
The data format is a custom extension of csv with an additional #-commented Metadata Header and a $-commented column header. |
static void |
FieldPrimitveValueArrayHelper.register(AbstractSerialiser serialiser,
IoBuffer ioBuffer)
registers default serialiser for array primitive types (ie.
|
static void |
FieldBoxedValueHelper.register(AbstractSerialiser serialiser,
IoBuffer ioBuffer)
registers default serialiser for primitive array types (ie.
|
static void |
FieldBoxedValueArrayHelper.register(AbstractSerialiser serialiser,
IoBuffer ioBuffer)
registers default serialiser for boxed array primitive types (ie.
|
static void |
FieldDataSetHelper.register(AbstractSerialiser serialiser,
IoBuffer ioBuffer)
registers default DataSet interface and related helper methods
|
static void |
FieldPrimitiveValueHelper.register(AbstractSerialiser serialiser,
IoBuffer ioBuffer)
registers default serialiser for primitive types (ie.
|
protected static void |
DataSetSerialiser.writeDataLabelsToStream(IoBuffer buffer,
DataSet dataSet) |
static void |
DataSetSerialiser.writeDataSetToByteArray(DataSet dataSet,
IoBuffer buffer,
boolean asFloat)
Write data set into byte buffer.
|
protected static void |
DataSetSerialiser.writeHeaderDataToStream(IoBuffer buffer,
DataSet dataSet) |
protected static void |
DataSetSerialiser.writeMetaDataToStream(IoBuffer buffer,
DataSet dataSet) |
protected static void |
DataSetSerialiser.writeNumericBinaryDataToBuffer(IoBuffer buffer,
DataSet dataSet,
boolean asFloat) |
| Constructor and Description |
|---|
FieldListAxisDescription(IoBuffer buffer)
FieldSerialiser implementation for List<AxisDescription> to IoBuffer-backed byte-buffer
|
IoBufferFieldSerialiser(IoBuffer buffer,
FieldSerialiser.FieldSerialiserFunction reader,
FieldSerialiser.FieldSerialiserFunction writer,
Class<?> classPrototype,
Class<?>... classGenericArguments) |
IoBufferSerialiser(IoBuffer buffer)
Initialises new IoBuffer-backed object serialiser
|
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.