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

java.lang.Object
  extended by com.basho.riak.client.raw.query.indexes.AbstractIndexQuery
      extended by com.basho.riak.client.raw.query.indexes.AbstractValueQuery<T>
All Implemented Interfaces:
IndexQuery, ValueQuery<T>
Direct Known Subclasses:
BinValueQuery, IntValueQuery

public abstract class AbstractValueQuery<T>
extends AbstractIndexQuery
implements ValueQuery<T>

Common, base, generic implementation for value match index queries.

Author:
russell

Constructor Summary
protected AbstractValueQuery(String indexName, String bucket, T value)
          Called by concrete subclasses
 
Method Summary
 boolean equals(Object obj)
           
 T getValue()
          The value to match
 int hashCode()
           
 
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

AbstractValueQuery

protected AbstractValueQuery(String indexName,
                             String bucket,
                             T value)
Called by concrete subclasses

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

getValue

public T getValue()
Description copied from interface: ValueQuery
The value to match

Specified by:
getValue in interface ValueQuery<T>
Returns:
a value of type T

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.