Interface DataInterpreter<T>
- All Superinterfaces:
BiConsumer<T, DataOutput>, DataReader.Deserializer<T>, DataWriter.Serializer<T>, Function<DataInput, T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataInterpreter<byte[]> static final DataInterpreter<String> Deprecated.v56 Use one of the other alternativesstatic final DataInterpreter<String> static final DataInterpreter<String> static final DataInterpreter<String> -
Method Summary
Modifier and TypeMethodDescriptionstatic <N extends Comparable<N>>
DataInterpreter<ArrayAnyD<N>> newIDX(DenseArray.Factory<N, ?> denseArray) default DataReader<T> default DataReader<T> newReader(File file, OperatorWithException<InputStream> filter) static <T> DataInterpreter<EntryPair.KeyedPrimitive<KeyValue.Dual<T>>> newScoredDual(DataInterpreter<T> keyInterpreter) default DataWriter<T> default DataWriter<T> newWriter(File file, OperatorWithException<OutputStream> filter) static bytetoByte(byte[] bytes) static byte[]toBytes(byte value) static byte[]toBytes(char value) static byte[]toBytes(double value) static byte[]toBytes(float value) static byte[]toBytes(int value) static byte[]toBytes(long value) static byte[]toBytes(short value) static chartoChar(byte[] bytes) static doubletoDouble(byte[] bytes) static floattoFloat(byte[] bytes) static inttoInt(byte[] bytes) static longtoLong(byte[] bytes) static shorttoShort(byte[] bytes) Methods inherited from interface BiConsumer
andThenMethods inherited from interface DataReader.Deserializer
apply, deserializeMethods inherited from interface DataWriter.Serializer
accept, serialize
-
Field Details
-
BYTES
-
STRING_BYTES
-
STRING_CHARS
-
STRING_UTF
-
STRING
Deprecated.v56 Use one of the other alternatives
-
-
Method Details
-
newIDX
static <N extends Comparable<N>> DataInterpreter<ArrayAnyD<N>> newIDX(DenseArray.Factory<N, ?> denseArray) -
newScoredDual
static <T> DataInterpreter<EntryPair.KeyedPrimitive<KeyValue.Dual<T>>> newScoredDual(DataInterpreter<T> keyInterpreter) -
toByte
static byte toByte(byte[] bytes) -
toBytes
static byte[] toBytes(byte value) -
toBytes
static byte[] toBytes(char value) -
toBytes
static byte[] toBytes(double value) -
toBytes
static byte[] toBytes(float value) -
toBytes
static byte[] toBytes(int value) -
toBytes
static byte[] toBytes(long value) -
toBytes
static byte[] toBytes(short value) -
toChar
static char toChar(byte[] bytes) -
toDouble
static double toDouble(byte[] bytes) -
toFloat
static float toFloat(byte[] bytes) -
toInt
static int toInt(byte[] bytes) -
toLong
static long toLong(byte[] bytes) -
toShort
static short toShort(byte[] bytes) -
newReader
-
newReader
-
newWriter
-
newWriter
-