public class AttributeConfig extends Object implements IdentifiedDataSerializable
MapConfig
.ValueExtractor
Constructor and Description |
---|
AttributeConfig()
Creates an empty AttributeConfig.
|
AttributeConfig(AttributeConfig config) |
AttributeConfig(String name,
String extractorClassName)
Creates a AttributeConfig with the given attribute and ordered setting.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
String |
getExtractorClassName()
Gets the full class name of the extractor in a String format, e.g.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID 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
|
AttributeConfig |
setExtractorClassName(String extractorClassName)
Sets the full class name of the extractor in a String format, e.g.
|
AttributeConfig |
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 AttributeConfig()
public AttributeConfig(String name, String extractorClassName)
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 extractedextractorClassName
- full class name of the extractor used to extract the value of the attributesetName(String)
,
(String)
public AttributeConfig(AttributeConfig config)
public String getName()
setName(String)
public AttributeConfig setName(String name)
name
- the name of the attribute extracted by the extractorIllegalArgumentException
- if attribute is null,an empty or inappropriate stringQueryConstants
public String getExtractorClassName()
com.example.car.SpeedExtractor
.(String)
public AttributeConfig setExtractorClassName(String extractorClassName)
com.example.car.SpeedExtractor
.extractorClassName
- the full class name of the extractor in a String formatpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
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 © 2023 Hazelcast, Inc.. All rights reserved.