Records and Writables
DataVec record format — Writable types, Record, and the data representation layer
The Writable Interface
public interface Writable {
void write(DataOutput out) throws IOException;
void readFields(DataInput in) throws IOException;
double toDouble();
float toFloat();
int toInt();
long toLong();
String toString(); // the human-readable string form of the value
WritableType getType();
}Concrete Writable Types
IntWritable
LongWritable
DoubleWritable
FloatWritable
Text
BooleanWritable
BytesWritable
NDArrayWritable
NullWritable
Record
SequenceRecord
Working with Records Manually
WritableType Enum
Last updated
Was this helpful?