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, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected BinaryValue convert(Long value)
RiakIndexIndex values are stored internally as bytes. Concrete classes implement this method to convert values to bytes.
protected Long convert(BinaryValue value)
RiakIndexIndex 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.