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, getAttributeValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic 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.EntrygetKey in class QueryableEntrypublic Object getValue()
getValue in interface Map.EntrygetValue in class QueryableEntrypublic Data getKeyData()
getKeyData in class QueryableEntrypublic Data getValueData()
getValueData in class QueryableEntryprotected Object getTargetObject(boolean key)
getTargetObject in class QueryableEntrypublic boolean equals(Object o)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.