public class LongIntIndex extends RiakIndex<Long>
RiakIndex
implementation used to access a Riak _int
Secondary Index using Long
values.
Data in Riak including secondary indexes is stored as bytes. This implementation
of RiakIndex
provides access to those bytes by converting to
and from Long
values. Its type is IndexType.INT
RiakIndexes
,
RiakObject.getIndexes()
Modifier and Type | Class and Description |
---|---|
static class |
LongIntIndex.Name
Encapsulates the name and
IndexType for a LongIntIndex |
Modifier and Type | Method and Description |
---|---|
protected Long |
convert(BinaryValue value)
Convert bytes to a value type.
|
protected BinaryValue |
convert(Long value)
Convert a value to a BinaryValue.
|
static LongIntIndex.Name |
named(String name) |
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(Long value)
RiakIndex
Index values are stored internally as bytes. Concrete classes implement this method to convert values to bytes.
protected Long convert(BinaryValue value)
RiakIndex
Index values are stored internally as bytes. Concrete classes implement this method to convert bytes to values.
public static LongIntIndex.Name named(String name)
Copyright © 2016. All rights reserved.