Package org.gridgain.dr.conversion
Interface BinaryObjectReader
public interface BinaryObjectReader
A reader interface for accessing binary object data in a structured format.
-
Method Details
-
typeName
String typeName()Returns the name of the type being read. -
fieldNames
Returns a list of all field names available in this object.The returned list contains the names of all fields that can be accessed via
readField(String).- Returns:
- A list of field names, never
null.
-
hasField
Checks whether field exists in the object.- Returns:
trueif the object contains field with given name, returnsfalseotherwise.
-
readField
Reads and returns the value of the specified field.If the field exists but contains a
nullvalue, this method returnsnull. If the field does not exist, this method also returnsnull. Callers should usehasField(String)orfieldNames()to distinguish between these cases if necessary.- Parameters:
name- The name of the field to read; should not benull.- Returns:
- The field value, or
nullif the field does not exist, or the field value isnull.
-