com.basho.riak.client.raw.query.indexes
Class AbstractIndexQuery

java.lang.Object
  extended by com.basho.riak.client.raw.query.indexes.AbstractIndexQuery
All Implemented Interfaces:
IndexQuery
Direct Known Subclasses:
AbstractRangeQuery, AbstractValueQuery

public abstract class AbstractIndexQuery
extends Object
implements IndexQuery

Base implementation of common behaviour for an IndexQuery

Author:
russell

Constructor Summary
protected AbstractIndexQuery(String indexName, String bucket)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBucket()
           
 String getIndex()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.basho.riak.client.raw.query.indexes.IndexQuery
write
 

Constructor Detail

AbstractIndexQuery

protected AbstractIndexQuery(String indexName,
                             String bucket)
Parameters:
indexName -
bucket -
Method Detail

getIndex

public String getIndex()
Specified by:
getIndex in interface IndexQuery
Returns:
the full name of the index to query (including type suffix)

getBucket

public String getBucket()
Specified by:
getBucket in interface IndexQuery
Returns:
the name of the bucket to query

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.