com.basho.riak.client.query.indexes
Class RiakIndex<T>
java.lang.Object
com.basho.riak.client.query.indexes.RiakIndex<T>
- Direct Known Subclasses:
- BinIndex, IntIndex
public abstract class RiakIndex<T>
- extends Object
Models a secondary index name.
In Riak you must specify the type of the index with a suffix _bin for binary
and _int for integer. This class will do that for you.
- Author:
- russell
RiakIndex
protected RiakIndex(String name)
- Parameters:
name
- fullname
-
getName
public String getName()
- Returns:
- the name
getFullname
public String getFullname()
- Returns:
- the fullname
getSuffix
protected abstract String getSuffix()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2012. All Rights Reserved.