com.basho.riak.client.query.indexes
Class RiakIndex<T>

java.lang.Object
  extended by 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

Constructor Summary
protected RiakIndex(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFullname()
           
 String getName()
           
protected abstract  String getSuffix()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiakIndex

protected RiakIndex(String name)
Parameters:
name -
fullname -
Method Detail

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.