|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basho.riak.client.query.indexes.RiakIndexes
public class RiakIndexes
Container for the set of index/values for a IRiakObject
Constructor Summary | |
---|---|
RiakIndexes()
|
|
RiakIndexes(Map<BinIndex,Set<String>> binIndexes,
Map<IntIndex,Set<Integer>> intIndexes)
|
Method Summary | |
---|---|
RiakIndexes |
add(String index,
int value)
Add a new IntIndex value to the set |
RiakIndexes |
add(String index,
String value)
Add a new BinIndex value to the set |
static RiakIndexes |
from(RiakIndexes indexes)
Copy a RiakIndexes to a new instance |
Set<String> |
getBinIndex(String name)
Get a copy of the set of values for a given binary index |
Map<BinIndex,Set<String>> |
getBinIndexes()
|
Set<Integer> |
getIntIndex(String name)
Get a copy of the set of values for a given int index |
Map<IntIndex,Set<Integer>> |
getIntIndexes()
|
RiakIndexes |
removeAll(BinIndex index)
Remove a BinIndex |
RiakIndexes |
removeAll(IntIndex index)
Remove the IntIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RiakIndexes(Map<BinIndex,Set<String>> binIndexes, Map<IntIndex,Set<Integer>> intIndexes)
public RiakIndexes()
Method Detail |
---|
public Map<BinIndex,Set<String>> getBinIndexes()
BinIndex
spublic Map<IntIndex,Set<Integer>> getIntIndexes()
IntIndex
spublic RiakIndexes add(String index, String value)
BinIndex
value to the set
index
- the index namevalue
- the value
public RiakIndexes add(String index, int value)
IntIndex
value to the set
name
- name of the indexvalue
- the value
public RiakIndexes removeAll(BinIndex index)
BinIndex
index
- the BinIndex
to removepublic RiakIndexes removeAll(IntIndex index)
index
- the IntIndex
to removepublic static RiakIndexes from(RiakIndexes indexes)
indexes
-
public Set<String> getBinIndex(String name)
name
- the name of the index
public Set<Integer> getIntIndex(String name)
name
- the name of the index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |