Record.Fowarding
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
buffer |
private RecordDefinition |
recordDefinition |
Constructor and Description |
---|
ByteBufferRecord(RecordDefinition recordDefinition,
java.nio.ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
private int |
offset(RecordDefinition.Field field) |
long |
size() |
private long |
size(RecordDefinition.Field f) |
java.lang.String |
stringValue(RecordDefinition.Field field,
java.nio.charset.Charset charset) |
int |
uint16Value(RecordDefinition.Field field) |
com.google.common.primitives.UnsignedInteger |
uint32Value(RecordDefinition.Field field) |
com.google.common.primitives.UnsignedLong |
uint64Value(RecordDefinition.Field field) |
private final java.nio.ByteBuffer buffer
private final RecordDefinition recordDefinition
public ByteBufferRecord(RecordDefinition recordDefinition, java.nio.ByteBuffer buffer) throws java.io.IOException
java.io.IOException
public int uint16Value(RecordDefinition.Field field)
uint16Value
in interface Record
public com.google.common.primitives.UnsignedInteger uint32Value(RecordDefinition.Field field)
uint32Value
in interface Record
public com.google.common.primitives.UnsignedLong uint64Value(RecordDefinition.Field field)
uint64Value
in interface Record
public java.lang.String stringValue(RecordDefinition.Field field, java.nio.charset.Charset charset)
stringValue
in interface Record
private int offset(RecordDefinition.Field field)
private long size(RecordDefinition.Field f)