com.hazelcast.query.impl
public class QueryEntry extends Object implements QueryableEntry
Constructor and Description |
---|
QueryEntry() |
QueryEntry(SerializationService serializationService,
Data indexKey,
Object key,
Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Comparable |
getAttribute(String attributeName) |
AttributeType |
getAttributeType(String attributeName) |
Data |
getIndexKey() |
Object |
getKey() |
Data |
getKeyData() |
Object |
getValue() |
Data |
getValueData() |
int |
hashCode() |
void |
init(SerializationService serializationService,
Data indexKey,
Object key,
Object value)
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: |
boolean |
isKey(String attributeName) |
Object |
setValue(Object value) |
public QueryEntry()
public QueryEntry(SerializationService serializationService, Data indexKey, Object key, Object value)
public void init(SerializationService serializationService, Data indexKey, Object key, Object value)
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 getValue()
getValue
in interface QueryableEntry
getValue
in interface Map.Entry
public Object getKey()
getKey
in interface QueryableEntry
getKey
in interface Map.Entry
public Comparable getAttribute(String attributeName) throws QueryException
getAttribute
in interface QueryableEntry
QueryException
public AttributeType getAttributeType(String attributeName)
getAttributeType
in interface QueryableEntry
public boolean isKey(String attributeName)
public Data getKeyData()
getKeyData
in interface QueryResultEntry
public Data getValueData()
getValueData
in interface QueryResultEntry
public Data getIndexKey()
getIndexKey
in interface QueryResultEntry
public boolean equals(Object o)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.