org.apache.accumulo.examples.wikisearch.logic
Class AbstractQueryLogic.UnionIndexRanges

java.lang.Object
  extended by org.apache.accumulo.examples.wikisearch.logic.AbstractQueryLogic.IndexRanges
      extended by org.apache.accumulo.examples.wikisearch.logic.AbstractQueryLogic.UnionIndexRanges
Enclosing class:
AbstractQueryLogic

public static class AbstractQueryLogic.UnionIndexRanges
extends AbstractQueryLogic.IndexRanges

Object that computes the ranges by unioning all of the ranges for all of the terms together. In the case where ranges overlap, the largest range is used.


Field Summary
static String DEFAULT_KEY
           
 
Fields inherited from class org.apache.accumulo.examples.wikisearch.logic.AbstractQueryLogic.IndexRanges
ranges
 
Constructor Summary
AbstractQueryLogic.UnionIndexRanges()
           
 
Method Summary
 void add(String term, Range r)
           
 Set<Range> getRanges()
           
 
Methods inherited from class org.apache.accumulo.examples.wikisearch.logic.AbstractQueryLogic.IndexRanges
getFieldNamesAndValues, getIndexValuesToOriginalValues, getTermCardinality, setFieldNamesAndValues, setIndexValuesToOriginalValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static String DEFAULT_KEY
Constructor Detail

AbstractQueryLogic.UnionIndexRanges

public AbstractQueryLogic.UnionIndexRanges()
Method Detail

getRanges

public Set<Range> getRanges()
Specified by:
getRanges in class AbstractQueryLogic.IndexRanges

add

public void add(String term,
                Range r)
Specified by:
add in class AbstractQueryLogic.IndexRanges


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.