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) |
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 © 2014. All rights reserved.