public abstract class BinaryObjectExImpl extends Object implements BinaryObjectEx
| Constructor and Description |
|---|
BinaryObjectExImpl() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
array() |
BinaryObject |
clone()
Copies this binary object.
|
protected abstract BinarySchema |
createSchema()
Create schema for object.
|
int |
enumOrdinal()
Get ordinal for this enum object.
|
boolean |
equals(Object other) |
protected abstract <F> F |
field(BinaryReaderHandles ctx,
String fieldName) |
abstract <F> F |
field(int fieldId)
Gets field value.
|
protected abstract <F> F |
fieldByOrder(int fieldOffset)
Get field by offset.
|
protected abstract boolean |
hasArray() |
abstract int |
length() |
abstract long |
offheapAddress() |
protected abstract int |
schemaId()
Get schema ID.
|
abstract int |
start() |
BinaryObjectBuilder |
toBuilder()
Creates a new
BinaryObjectBuilder based on this binary object. |
String |
toString() |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrawType, typeIddeserialize, field, hasField, typepublic abstract int length()
public abstract int start()
protected abstract boolean hasArray()
True if object is array based.public abstract byte[] array()
null.public abstract long offheapAddress()
@Nullable
public abstract <F> F field(int fieldId)
throws BinaryObjectException
fieldId - Field ID.BinaryObjectException - In case of any other error.public int enumOrdinal()
throws BinaryObjectException
BinaryType.isEnum() to check if object is of enum type.enumOrdinal in interface BinaryObjectBinaryObjectException - If object is not enum.@Nullable protected abstract <F> F fieldByOrder(int fieldOffset)
fieldOffset - Field offset.@Nullable protected abstract <F> F field(BinaryReaderHandles ctx, String fieldName)
ctx - Reader context.fieldName - Field name.protected abstract int schemaId()
protected abstract BinarySchema createSchema()
public BinaryObjectBuilder toBuilder() throws BinaryObjectException
BinaryObjectBuilder based on this binary object. The following code
BinaryObjectBuilder builder = binaryObject.toBuilder();is equivalent to
BinaryObjectBuilder builder = ignite.binary().builder(binaryObject);
toBuilder in interface BinaryObjectBinaryObjectException - If builder cannot be created.public BinaryObject clone() throws CloneNotSupportedException
clone in interface BinaryObjectclone in class ObjectCloneNotSupportedException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016