edu.mayo.informatics.indexer.lucene
Class NumericFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by edu.mayo.informatics.indexer.lucene.NumericFilter
All Implemented Interfaces:
java.io.Serializable

public class NumericFilter
extends org.apache.lucene.search.Filter
implements java.io.Serializable

This implements a filter for lucene that will filter on numeric fields.

Author:
Dan Armbrust
See Also:
Serialized Form

Constructor Summary
NumericFilter(java.lang.String field, java.lang.String from, java.lang.String to)
           
 
Method Summary
static NumericFilter After(java.lang.String field, java.lang.String date)
           
static NumericFilter Before(java.lang.String field, java.lang.String date)
           
 java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.lucene.search.Filter
getDocIdSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericFilter

public NumericFilter(java.lang.String field,
                     java.lang.String from,
                     java.lang.String to)
Method Detail

Before

public static NumericFilter Before(java.lang.String field,
                                   java.lang.String date)

After

public static NumericFilter After(java.lang.String field,
                                  java.lang.String date)

bits

public final java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
                            throws java.io.IOException
Overrides:
bits in class org.apache.lucene.search.Filter
Throws:
java.io.IOException

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.