public class RiakIndexes extends Object
IRiakObject| Constructor and Description |
|---|
RiakIndexes() |
RiakIndexes(Map<BinIndex,Set<String>> binIndexes,
Map<IntIndex,Set<Long>> intIndexes) |
| Modifier and Type | Method and Description |
|---|---|
RiakIndexes |
add(String index,
long value)
Add a new
IntIndex value to the set |
RiakIndexes |
add(String index,
String value)
Add a new
BinIndex value to the set |
RiakIndexes |
addBinSet(String index,
Set<String> newValues)
Add a new
BinIndex set of values to the set |
RiakIndexes |
addIntSet(String index,
Set<? extends Number> newValues)
Add a new set of
IntIndex values 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<Long> |
getIntIndex(String name)
Get a copy of the set of values for a given int index
|
Map<IntIndex,Set<Long>> |
getIntIndexes() |
RiakIndexes |
removeAll(BinIndex index)
Remove a
BinIndex |
RiakIndexes |
removeAll(IntIndex index)
Remove the IntIndex
|
public RiakIndexes(Map<BinIndex,Set<String>> binIndexes, Map<IntIndex,Set<Long>> intIndexes)
public RiakIndexes()
public Map<BinIndex,Set<String>> getBinIndexes()
BinIndexspublic Map<IntIndex,Set<Long>> getIntIndexes()
IntIndexspublic RiakIndexes add(String index, String value)
BinIndex value to the setindex - the index namevalue - the valuepublic RiakIndexes addBinSet(String index, Set<String> newValues)
BinIndex set of values to the setindex - the index namevalues - the set of valuespublic RiakIndexes add(String index, long value)
IntIndex value to the setname - name of the indexvalue - the valuepublic RiakIndexes addIntSet(String index, Set<? extends Number> newValues)
IntIndex values to the setname - name of the indexvalues - the set of valuespublic RiakIndexes removeAll(BinIndex index)
BinIndexindex - 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 indexCopyright © 2014. All Rights Reserved.