public class MapAttributeConfig extends Object implements IdentifiedDataSerializable
MapConfig
.ValueExtractor
Constructor and Description |
---|
MapAttributeConfig()
Creates an empty MapAttributeConfig.
|
MapAttributeConfig(MapAttributeConfig config) |
MapAttributeConfig(String name,
String extractor)
Creates a MapAttributeConfig with the given attribute and ordered setting.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MapAttributeConfigReadOnly |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
String |
getExtractor()
Gets the full class name of the extractor in a String format, e.g.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getName()
Gets the name of the attribute extracted by the extractor.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
MapAttributeConfig |
setExtractor(String extractor)
Sets the full class name of the extractor in a String format, e.g.
|
MapAttributeConfig |
setName(String name)
Sets the name of the attribute extracted by the extractor.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public MapAttributeConfig()
public MapAttributeConfig(String name, String extractor)
Name may begin with an ascii letter [A-Za-z] or digit [0-9] and may contain ascii letters [A-Za-z], digits [0-9] or underscores later on.
name
- the name given to an attribute that is going to be extractedextractor
- full class name of the extractor used to extract the value of the attributesetName(String)
,
setExtractor(String)
public MapAttributeConfig(MapAttributeConfig config)
public MapAttributeConfigReadOnly getAsReadOnly()
public String getName()
setName(String)
public MapAttributeConfig setName(String name)
name
- the name of the attribute extracted by the extractorIllegalArgumentException
- if attribute is null,an empty or inappropriate stringQueryConstants
public String getExtractor()
com.example.car.SpeedExtractor
.setExtractor(String)
public MapAttributeConfig setExtractor(String extractor)
com.example.car.SpeedExtractor
.extractor
- the full class name of the extractor in a String formatpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.