com.hazelcast.nio.serialization
Class BinaryClassDefinitionProxy

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

public final class BinaryClassDefinitionProxy
extends Object
implements ClassDefinition


Constructor Summary
BinaryClassDefinitionProxy(int factoryId, int classId, int version)
           
BinaryClassDefinitionProxy(int factoryId, int classId, int version, byte[] binary)
           
 
Method Summary
 byte[] getBinary()
           
 int getClassId()
           
 int getFactoryId()
           
 FieldDefinition getField(int fieldIndex)
           
 FieldDefinition getField(String name)
           
 int getFieldClassId(String fieldName)
           
 int getFieldCount()
           
 Set<String> getFieldNames()
           
 FieldType getFieldType(String fieldName)
           
 int getFieldVersion(String fieldName)
           
 int getVersion()
           
 boolean hasField(String fieldName)
           
 
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
 

Constructor Detail

BinaryClassDefinitionProxy

public BinaryClassDefinitionProxy(int factoryId,
                                  int classId,
                                  int version)

BinaryClassDefinitionProxy

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

getField

public FieldDefinition getField(String name)
Specified by:
getField in interface ClassDefinition
Parameters:
name - name of the field
Returns:
field definition by given name or null

getField

public FieldDefinition getField(int fieldIndex)
Specified by:
getField in interface ClassDefinition
Parameters:
fieldIndex - index of the field
Returns:
field definition by given index

hasField

public boolean hasField(String fieldName)
Specified by:
hasField in interface ClassDefinition
Parameters:
fieldName - field name
Returns:
true if this class definition contains a field named by given name

getFieldNames

public Set<String> getFieldNames()
Specified by:
getFieldNames in interface ClassDefinition
Returns:
all field names contained in this class definition

getFieldType

public FieldType getFieldType(String fieldName)
Specified by:
getFieldType in interface ClassDefinition
Parameters:
fieldName - name of the field
Returns:
type of given field

getFieldClassId

public int getFieldClassId(String fieldName)
Specified by:
getFieldClassId in interface ClassDefinition
Parameters:
fieldName - name of the field
Returns:
class id of given field

getFieldVersion

public int getFieldVersion(String fieldName)

getFieldCount

public int getFieldCount()
Specified by:
getFieldCount in interface ClassDefinition
Returns:
total field count

getFactoryId

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

getClassId

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

getVersion

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

getBinary

public final byte[] getBinary()


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