com.basho.riak.client.raw.query.indexes
Class AbstractRangeQuery<T>

java.lang.Object
  extended by com.basho.riak.client.raw.query.indexes.AbstractIndexQuery
      extended by com.basho.riak.client.raw.query.indexes.AbstractRangeQuery<T>
Type Parameters:
T - the Type for the query index parameters
All Implemented Interfaces:
IndexQuery, RangeQuery<T>
Direct Known Subclasses:
BinRangeQuery, IntRangeQuery

public abstract class AbstractRangeQuery<T>
extends AbstractIndexQuery
implements RangeQuery<T>

Base, common, generic RangeQuery implementation

Author:
russell

Constructor Summary
protected AbstractRangeQuery(String indexName, String bucket, T from, T to)
          Called by concrete implementations
 
Method Summary
 boolean equals(Object obj)
           
 T from()
          The start value for the range query
 int hashCode()
           
 T to()
          The end value for the range query
 
Methods inherited from class com.basho.riak.client.raw.query.indexes.AbstractIndexQuery
getBucket, getIndex
 
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
getBucket, getIndex, write
 

Constructor Detail

AbstractRangeQuery

protected AbstractRangeQuery(String indexName,
                             String bucket,
                             T from,
                             T to)
Called by concrete implementations

Parameters:
indexName - the full name (including suffix) of the index
bucket - the bucket to query
Method Detail

from

public T from()
The start value for the range query

Specified by:
from in interface RangeQuery<T>
Returns:
the from

to

public T to()
The end value for the range query

Specified by:
to in interface RangeQuery<T>
Returns:
the to

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractIndexQuery

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractIndexQuery


Copyright © 2012. All Rights Reserved.