Interface BinaryFieldEx
-
- All Superinterfaces:
BinaryField
- All Known Implementing Classes:
BinaryFieldImpl
public interface BinaryFieldEx extends BinaryField
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <F> FreadField(ByteBuffer buf)Reads field value from the given byte buffer.inttypeId()booleanwriteField(BinaryObject obj, ByteBuffer buf)Writes field value to the given byte buffer.-
Methods inherited from interface org.apache.ignite.binary.BinaryField
exists, name, value
-
-
-
-
Method Detail
-
typeId
int typeId()
- Returns:
- Type ID this field relates to.
-
writeField
boolean writeField(BinaryObject obj, ByteBuffer buf)
Writes field value to the given byte buffer.- Parameters:
obj- Object from which the field should be extracted.buf- Buffer to write the field value to.- Returns:
Trueif the value was successfully written,falseif there is not enough space for the field in the buffer.
-
readField
<F> F readField(ByteBuffer buf)
Reads field value from the given byte buffer.- Parameters:
buf- Buffer to read value from.- Returns:
- Field value.
-
-