Package com.hazelcast.config
Class PartitioningAttributeConfig
java.lang.Object
com.hazelcast.config.PartitioningAttributeConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Contains the configuration for attributes used to create
AttributePartitioningStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the attribute.intReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.inthashCode()voidReads fields from the input streamvoidsetAttributeName(String attributeName) Sets the name of the attribute.toString()voidWrites object fields to output stream
-
Constructor Details
-
PartitioningAttributeConfig
public PartitioningAttributeConfig() -
PartitioningAttributeConfig
-
PartitioningAttributeConfig
-
-
Method Details
-
getAttributeName
Returns the name of the attribute.- Returns:
- string with the name of the attribute
-
setAttributeName
Sets the name of the attribute. Used internally only.- Parameters:
attributeName- - name of the attribute to set.
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
equals
-
hashCode
public int hashCode() -
toString
-