com.hazelcast.nio.serialization
Class BinaryClassDefinitionProxy

java.lang.Object
  extended by com.hazelcast.nio.serialization.BinaryClassDefinitionProxy
All Implemented Interfaces:
ClassDefinition, DataSerializable

public final class BinaryClassDefinitionProxy
extends Object
implements ClassDefinition

Author:
mdogan 1/3/13

Field Summary
protected  int classId
           
protected  int factoryId
           
protected  int version
           
 
Constructor Summary
BinaryClassDefinitionProxy(int factoryId, int classId, int version, byte[] binary)
           
 
Method Summary
 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 getVersion()
           
 boolean hasField(String fieldName)
           
 void readData(com.hazelcast.nio.ObjectDataInput in)
           
 ClassDefinition toReal(SerializationContext context)
           
 void writeData(com.hazelcast.nio.ObjectDataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.nio.serialization.ClassDefinition
getClassId, getFactoryId, getVersion
 

Field Detail

factoryId

protected int factoryId

classId

protected int classId

version

protected int version
Constructor Detail

BinaryClassDefinitionProxy

public BinaryClassDefinitionProxy(int factoryId,
                                  int classId,
                                  int version,
                                  byte[] binary)
Method Detail

toReal

public ClassDefinition toReal(SerializationContext context)
                       throws IOException
Throws:
IOException

get

public FieldDefinition get(String name)
Specified by:
get in interface ClassDefinition

get

public FieldDefinition get(int fieldIndex)
Specified by:
get in interface ClassDefinition

hasField

public boolean hasField(String fieldName)
Specified by:
hasField in interface ClassDefinition

getFieldNames

public Set<String> getFieldNames()
Specified by:
getFieldNames in interface ClassDefinition

getFieldType

public FieldType getFieldType(String fieldName)
Specified by:
getFieldType in interface ClassDefinition

getFieldClassId

public int getFieldClassId(String fieldName)
Specified by:
getFieldClassId in interface ClassDefinition

getFieldCount

public int getFieldCount()
Specified by:
getFieldCount in interface ClassDefinition

writeData

public void writeData(com.hazelcast.nio.ObjectDataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(com.hazelcast.nio.ObjectDataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

getFactoryId

public final int getFactoryId()
Specified by:
getFactoryId in interface ClassDefinition

getClassId

public final int getClassId()
Specified by:
getClassId in interface ClassDefinition

getVersion

public final int getVersion()
Specified by:
getVersion in interface ClassDefinition

getBinary

public final byte[] getBinary()


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.