org.apache.activemq.store.kahadb.disk.index
Class BTreeVisitor.OrVisitor<Key,Value>

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.index.BTreeVisitor.PredicateVisitor<Key,Value>
      extended by org.apache.activemq.store.kahadb.disk.index.BTreeVisitor.OrVisitor<Key,Value>
All Implemented Interfaces:
BTreeVisitor<Key,Value>, BTreeVisitor.Predicate<Key>
Enclosing interface:
BTreeVisitor<Key,Value>

public static class BTreeVisitor.OrVisitor<Key,Value>
extends BTreeVisitor.PredicateVisitor<Key,Value>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.activemq.store.kahadb.disk.index.BTreeVisitor
BTreeVisitor.AndVisitor<Key,Value>, BTreeVisitor.BetweenVisitor<Key extends Comparable<Key>,Value>, BTreeVisitor.GTEVisitor<Key extends Comparable<Key>,Value>, BTreeVisitor.GTVisitor<Key extends Comparable<Key>,Value>, BTreeVisitor.LTEVisitor<Key extends Comparable<Key>,Value>, BTreeVisitor.LTVisitor<Key extends Comparable<Key>,Value>, BTreeVisitor.OrVisitor<Key,Value>, BTreeVisitor.Predicate<Key>, BTreeVisitor.PredicateVisitor<Key,Value>
 
Constructor Summary
BTreeVisitor.OrVisitor(List<BTreeVisitor.Predicate<Key>> conditions)
           
 
Method Summary
 boolean isInterestedInKey(Key key)
           
 boolean isInterestedInKeysBetween(Key first, Key second)
          Do you want to visit the range of BTree entries between the first and and second key?
 String toString()
           
 
Methods inherited from class org.apache.activemq.store.kahadb.disk.index.BTreeVisitor.PredicateVisitor
matched, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BTreeVisitor.OrVisitor

public BTreeVisitor.OrVisitor(List<BTreeVisitor.Predicate<Key>> conditions)
Method Detail

isInterestedInKeysBetween

public boolean isInterestedInKeysBetween(Key first,
                                         Key second)
Description copied from interface: BTreeVisitor
Do you want to visit the range of BTree entries between the first and and second key?

Parameters:
first - if null indicates the range of values before the second key.
second - if null indicates the range of values after the first key.
Returns:
true if you want to visit the values between the first and second key.

isInterestedInKey

public boolean isInterestedInKey(Key key)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.