Package com.hazelcast.config
Class PartitioningAttributeConfig
- java.lang.Object
-
- com.hazelcast.config.PartitioningAttributeConfig
-
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class PartitioningAttributeConfig extends java.lang.Object implements IdentifiedDataSerializable
Contains the configuration for attributes used to createAttributePartitioningStrategy
-
-
Constructor Summary
Constructors Constructor Description PartitioningAttributeConfig()
PartitioningAttributeConfig(PartitioningAttributeConfig config)
PartitioningAttributeConfig(java.lang.String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAttributeName()
Returns the name of the attribute.int
getClassId()
Returns type identifier for this class.int
getFactoryId()
Returns DataSerializableFactory factory ID for this class.int
hashCode()
void
readData(ObjectDataInput in)
Reads fields from the input streamvoid
setAttributeName(java.lang.String attributeName)
Sets the name of the attribute.java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream
-
-
-
Constructor Detail
-
PartitioningAttributeConfig
public PartitioningAttributeConfig()
-
PartitioningAttributeConfig
public PartitioningAttributeConfig(PartitioningAttributeConfig config)
-
PartitioningAttributeConfig
public PartitioningAttributeConfig(java.lang.String attributeName)
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
Returns the name of the attribute.- Returns:
- string with the name of the attribute
-
setAttributeName
public void setAttributeName(java.lang.String attributeName)
Sets the name of the attribute. Used internally only.- Parameters:
attributeName
- - name of the attribute to set.
-
writeData
public void writeData(ObjectDataOutput out) throws java.io.IOException
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
public void readData(ObjectDataInput in) throws java.io.IOException
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()
Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()
Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-