com.basho.riak.client.query.filter
Class BetweenFilter

java.lang.Object
  extended by com.basho.riak.client.query.filter.BetweenFilter
All Implemented Interfaces:
KeyFilter

public class BetweenFilter
extends Object
implements KeyFilter

Key filter that matches keys in a range delimited by from - to

Author:
russell

Constructor Summary
BetweenFilter(double from, double to)
          Include keys whose value falls between from and to
BetweenFilter(int from, int to)
          Include keys whose value falls between from and to
BetweenFilter(long from, long to)
          Include keys whose value falls between from and to
BetweenFilter(String from, String to)
          Include keys that are alphabetically between from and to
 
Method Summary
 Object[] asArray()
          A view of the key filter as an Object array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BetweenFilter

public BetweenFilter(String from,
                     String to)
Include keys that are alphabetically between from and to

Parameters:
from -
to -

BetweenFilter

public BetweenFilter(int from,
                     int to)
Include keys whose value falls between from and to

Parameters:
from -
to -

BetweenFilter

public BetweenFilter(long from,
                     long to)
Include keys whose value falls between from and to

Parameters:
from -
to -

BetweenFilter

public BetweenFilter(double from,
                     double to)
Include keys whose value falls between from and to

Parameters:
from -
to -
Method Detail

asArray

public Object[] asArray()
Description copied from interface: KeyFilter
A view of the key filter as an Object array.

Specified by:
asArray in interface KeyFilter
Returns:
an Object[]


Copyright © 2011. All Rights Reserved.