|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.ConverterCollections.ConverterMap
com.tangosol.util.ConverterCollections.ConverterQueryMap
public static class ConverterCollections.ConverterQueryMap
A Converter QueryMap views an underlying QueryMap through a set of key and value Converters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tangosol.util.QueryMap |
---|
QueryMap.Entry |
Field Summary |
---|
Fields inherited from class com.tangosol.util.ConverterCollections.ConverterMap |
---|
m_convKeyDown, m_convKeyUp, m_convValDown, m_convValUp, m_map, m_set |
Constructor Summary | |
---|---|
ConverterCollections.ConverterQueryMap(QueryMap map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown) Constructor. |
Method Summary | |
---|---|
void |
addIndex(ValueExtractor extractor, boolean fOrdered, Comparator comparator) Add an index to this QueryMap. |
Set |
entrySet(Filter filter) Return a set view of the entries contained in this map that satisfy the criteria expressed by the filter. |
Set |
entrySet(Filter filter, Comparator comparator) Return a set view of the entries contained in this map that satisfy the criteria expressed by the filter. |
QueryMap |
getQueryMap() Return the underlying QueryMap. |
Set |
keySet(Filter filter) Return a set view of the keys contained in this map for entries that satisfy the criteria expressed by the filter. |
void |
removeIndex(ValueExtractor extractor) Remove an index from this QueryMap. |
Methods inherited from class com.tangosol.util.ConverterCollections.ConverterMap |
---|
clear, containsKey, containsValue, entrySet, get, getConverterKeyDown, getConverterKeyUp, getConverterValueDown, getConverterValueUp, getMap, instantiateCollection, instantiateEntrySet, instantiateMap, instantiateSet, isEmpty, keySet, put, putAll, remove, size, toString, values |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public ConverterCollections.ConverterQueryMap(QueryMap map, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)
map
- the underlying QueryMapconvKeyUp
- the Converter to view the underlying QueryMap's keys throughconvKeyDown
- the Converter to use to pass keys down to the underlying QueryMapconvValUp
- the Converter to view the underlying QueryMap's values throughconvValDown
- the Converter to use to pass values down to the underlying QueryMapMethod Detail |
---|
public Set keySet(Filter filter)
Map.keySet()
method, the set returned by this method may not be backed by the map, so changes to the set may not reflected in the map, and vice-versa. <p/> Note: When using the Coherence Enterprise Edition or Grid Edition, the Partitioned Cache implements the QueryMap interface using the Parallel Query feature. When using Coherence Standard Edition, the Parallel Query feature is not available, resulting in lower performance for most queries, and particularly when querying large data sets.keySet
in interface QueryMap
filter
- the Filter object representing the criteria that the entries of this map should satisfypublic Set entrySet(Filter filter)
Map.Entry
. <p/> Unlike the Map.entrySet()
method, the set returned by this method may not be backed by the map, so changes to the set may not be reflected in the map, and vice-versa. <p/> Note: When using the Coherence Enterprise Edition or Grid Edition, the Partitioned Cache implements the QueryMap interface using the Parallel Query feature. When using Coherence Standard Edition, the Parallel Query feature is not available, resulting in lower performance for most queries, and particularly when querying large data sets.entrySet
in interface QueryMap
filter
- the Filter object representing the criteria that the entries of this map should satisfypublic Set entrySet(Filter filter, Comparator comparator)
Map.Entry
. It is further guaranteed that its iterator will traverse the set in such a way that the entry values come up in ascending order, sorted by the specified Comparator or according to the natural ordering (see Comparable
). <p/> Unlike the Map.entrySet()
method, the set returned by this method may not be backed by the map, so changes to the set may not be reflected in the map, and vice-versa. <p/> Note: When using the Coherence Enterprise Edition or Grid Edition, the Partitioned Cache implements the QueryMap interface using the Parallel Query feature. When using Coherence Standard Edition, the Parallel Query feature is not available, resulting in lower performance for most queries, and particularly when querying large data sets.entrySet
in interface QueryMap
filter
- the Filter object representing the criteria that the entries of this map should satisfycomparator
- the Comparator object which imposes an ordering on entries in the resulting set; or null if the entries' values natural ordering should be usedChainedComparator
public void addIndex(ValueExtractor extractor, boolean fOrdered, Comparator comparator)
addIndex
in interface QueryMap
extractor
- the ValueExtractor object that is used to extract an indexable Object from a value stored in the indexed Map. Must not be null.fOrdered
- true iff the contents of the indexed information should be ordered; false otherwisecomparator
- the Comparator object which imposes an ordering on entries in the indexed map; or null if the entries' values natural ordering should be usedReflectionExtractor
, ChainedComparator
public void removeIndex(ValueExtractor extractor)
removeIndex
in interface QueryMap
extractor
- the ValueExtractor object that is used to extract an indexable Object from a value stored in the Map.public QueryMap getQueryMap()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |