public class BinarySchema extends Object implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
BinarySchema.Builder
Schema builder.
|
static class |
BinarySchema.Confirmation
Order confirmation result.
|
Modifier and Type | Field and Description |
---|---|
static int |
ORDER_NOT_FOUND
Order returned if field is not found.
|
Constructor and Description |
---|
BinarySchema()
Externalizable support. |
BinarySchema(int schemaId,
List<Integer> fieldIds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clarifyFieldName(int order,
String name)
Add field name.
|
BinarySchema.Confirmation |
confirmOrder(int expOrder,
String expName)
Try speculatively confirming order for the given field name.
|
boolean |
equals(Object o) |
int |
fieldId(int order)
Get field ID by order in footer.
|
int[] |
fieldIds()
Gets field ids array.
|
int |
hashCode() |
int |
order(int id)
Get field order in footer by field ID.
|
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInput in)
The object implements the readFrom method to restore its
contents by calling the methods of DataInput for primitive
types and strings or calling readFrom for other objects.
|
int |
schemaId() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutput out)
The object implements the writeTo method to save its contents
by calling the methods of DataOutput for its primitive values and strings or
calling the writeTo method for other objects.
|
public static final int ORDER_NOT_FOUND
public BinarySchema()
Externalizable
support.public int schemaId()
public BinarySchema.Confirmation confirmOrder(int expOrder, String expName)
expOrder
- Expected order.expName
- Expected name.public void clarifyFieldName(int order, String name)
order
- Order.name
- Name.public int fieldId(int order)
order
- Order.public int order(int id)
id
- Field ID.0
if there is no such field.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void writeTo(DataOutput out) throws IOException
out
- the stream to write the object to.IOException
- Includes any I/O exceptions that may occur.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void readFrom(DataInput in) throws IOException
in
- the stream to read data from in order to restore the objectIOException
- if I/O errors occurpublic int[] fieldIds()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021