public class RawIndex extends RiakIndex<BinaryValue>
RiakIndex
implementation used to access a Riak _int
or _bin
Secondary Index using BinaryValue
(byte[]
) values.
Data in Riak including secondary indexes is stored as bytes. This implementation
of RiakIndex
provides direct access to those bytes.
Modifier and Type | Class and Description |
---|---|
static class |
RawIndex.Name
Encapsulates the name and
IndexType for a RawIndex |
Modifier and Type | Method and Description |
---|---|
protected BinaryValue |
convert(BinaryValue value)
Convert bytes to a value type.
|
static RawIndex.Name |
named(String name,
IndexType type) |
add, add, equals, getFullname, getName, getType, hashCode, hasValue, isEmpty, iterator, rawValues, remove, remove, removeAll, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected BinaryValue convert(BinaryValue value)
RiakIndex
Index values are stored internally as bytes. Concrete classes implement this method to convert bytes to values.
convert
in class RiakIndex<BinaryValue>
value
- the value to convertpublic static RawIndex.Name named(String name, IndexType type)
Copyright © 2016. All rights reserved.