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, waitgetClassId, getFactoryId, getVersionprotected 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
IOExceptionpublic FieldDefinition get(String name)
get in interface ClassDefinitionname - name of the fieldpublic FieldDefinition get(int fieldIndex)
get in interface ClassDefinitionfieldIndex - index of the fieldpublic boolean hasField(String fieldName)
hasField in interface ClassDefinitionfieldName - field namepublic Set<String> getFieldNames()
getFieldNames in interface ClassDefinitionpublic FieldType getFieldType(String fieldName)
getFieldType in interface ClassDefinitionfieldName - name of the fieldpublic int getFieldClassId(String fieldName)
getFieldClassId in interface ClassDefinitionfieldName - name of the fieldpublic int getFieldVersion(String fieldName)
getFieldVersion in interface ClassDefinitionfieldName - name of the fieldpublic int getFieldCount()
getFieldCount in interface ClassDefinitionpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic final int getFactoryId()
getFactoryId in interface ClassDefinitionpublic final int getClassId()
getClassId in interface ClassDefinitionpublic final int getVersion()
getVersion in interface ClassDefinitionpublic final byte[] getBinary()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.