public final class BinaryClassDefinitionProxy extends Object implements ClassDefinition
Modifier and Type | Field and Description |
---|---|
protected int |
classId |
protected int |
factoryId |
protected int |
version |
Constructor and Description |
---|
BinaryClassDefinitionProxy(int factoryId,
int classId,
int version,
byte[] binary) |
Modifier and Type | Method and Description |
---|---|
FieldDefinition |
get(int fieldIndex) |
FieldDefinition |
get(String name) |
byte[] |
getBinary() |
int |
getClassId() |
int |
getFactoryId() |
int |
getFieldClassId(String fieldName) |
int |
getFieldCount() |
Set<String> |
getFieldNames() |
FieldType |
getFieldType(String fieldName) |
int |
getFieldVersion(String fieldName) |
int |
getVersion() |
boolean |
hasField(String fieldName) |
void |
readData(com.hazelcast.nio.ObjectDataInput in)
Reads fields from the input stream
|
ClassDefinition |
toReal(PortableContext context) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out)
Writes object fields to output stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassId, getFactoryId, getVersion
protected int factoryId
protected int classId
protected int version
public BinaryClassDefinitionProxy(int factoryId, int classId, int version, byte[] binary)
public ClassDefinition toReal(PortableContext context) throws IOException
IOException
public FieldDefinition get(String name)
get
in interface ClassDefinition
name
- name of the fieldpublic FieldDefinition get(int fieldIndex)
get
in interface ClassDefinition
fieldIndex
- index of the fieldpublic boolean hasField(String fieldName)
hasField
in interface ClassDefinition
fieldName
- field namepublic Set<String> getFieldNames()
getFieldNames
in interface ClassDefinition
public FieldType getFieldType(String fieldName)
getFieldType
in interface ClassDefinition
fieldName
- name of the fieldpublic int getFieldClassId(String fieldName)
getFieldClassId
in interface ClassDefinition
fieldName
- name of the fieldpublic int getFieldVersion(String fieldName)
getFieldVersion
in interface ClassDefinition
fieldName
- name of the fieldpublic int getFieldCount()
getFieldCount
in interface ClassDefinition
public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(com.hazelcast.nio.ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public final int getFactoryId()
getFactoryId
in interface ClassDefinition
public final int getClassId()
getClassId
in interface ClassDefinition
public final int getVersion()
getVersion
in interface ClassDefinition
public final byte[] getBinary()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.