public class QueryEntry extends QueryableEntry
extractors, serializationService
Constructor and Description |
---|
QueryEntry() |
QueryEntry(InternalSerializationService 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(InternalSerializationService 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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public QueryEntry()
public QueryEntry(InternalSerializationService serializationService, Data key, Object value, Extractors extractors)
public void init(InternalSerializationService 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 © 2018 Hazelcast, Inc.. All Rights Reserved.