public class QueryEntry extends QueryableEntry
extractors, serializationService
Constructor and Description |
---|
QueryEntry() |
QueryEntry(SerializationService serializationService,
Data key,
Object value,
Extractors extractors) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getKey() |
Data |
getKeyData() |
protected Object |
getTargetObject(boolean key) |
Object |
getValue() |
Data |
getValueData() |
int |
hashCode() |
void |
init(SerializationService serializationService,
Data key,
Object value,
Extractors extractors)
It may be useful to use this
init method in some cases that same instance of this class can be used
instead of creating a new one for every iteration when scanning large data sets, for example: |
Object |
setValue(Object value) |
getAttributeType, getAttributeValue
public QueryEntry()
public QueryEntry(SerializationService serializationService, Data key, Object value, Extractors extractors)
public void init(SerializationService serializationService, Data key, Object value, Extractors extractors)
init
method in some cases that same instance of this class can be used
instead of creating a new one for every iteration when scanning large data sets, for example:
Predicate predicate = ...
QueryEntry entry = new QueryEntry()
for (i == 0; i < HUGE_NUMBER; i++) {
entry.init(...)
boolean valid = predicate.apply(queryEntry);
if (valid) {
....
}
}
public Object getKey()
getKey
in interface Map.Entry
getKey
in class QueryableEntry
public Object getValue()
getValue
in interface Map.Entry
getValue
in class QueryableEntry
public Data getKeyData()
getKeyData
in class QueryableEntry
public Data getValueData()
getValueData
in class QueryableEntry
protected Object getTargetObject(boolean key)
getTargetObject
in class QueryableEntry
public boolean equals(Object o)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.