tot.search.filter
类 IntegerFilter

java.lang.Object
  继承者 org.apache.lucene.search.Filter
      继承者 tot.search.filter.IntegerFilter
所有已实现的接口:
java.io.Serializable

public class IntegerFilter
extends org.apache.lucene.search.Filter

A Filter that restricts search results to a range of integer.

For this to work, documents must have been indexed with a

另请参见:
序列化表格

构造函数摘要
IntegerFilter(java.lang.String field, java.lang.Integer from, java.lang.Integer to)
          Constructs a filter for field f matching Integers between from and to inclusively.
IntegerFilter(java.lang.String field, int from, int to)
          Constructs a filter for field f matching Integers between from and to inclusively.
 
方法摘要
 java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
          Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
static IntegerFilter greaterThan(java.lang.String field, int i)
          Constructs a filter for field f matching Integers on or more than Integer.
static IntegerFilter greaterThan(java.lang.String field, java.lang.Integer i)
          Constructs a filter for field f matching Integers on or more than Integer.
static java.lang.String intToString(int i)
           
static IntegerFilter lessThan(java.lang.String field, int i)
          Constructs a filter for field f matching Integers on or more than Integer.
static IntegerFilter lessThan(java.lang.String field, java.lang.Integer i)
          Constructs a filter for field f matching integers on or less than Integer.
static int stringToInt(java.lang.String i)
           
 java.lang.String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造函数详细信息

IntegerFilter

public IntegerFilter(java.lang.String field,
                     int from,
                     int to)
Constructs a filter for field f matching Integers between from and to inclusively.


IntegerFilter

public IntegerFilter(java.lang.String field,
                     java.lang.Integer from,
                     java.lang.Integer to)
Constructs a filter for field f matching Integers between from and to inclusively.

方法详细信息

greaterThan

public static IntegerFilter greaterThan(java.lang.String field,
                                        java.lang.Integer i)
Constructs a filter for field f matching Integers on or more than Integer.


greaterThan

public static IntegerFilter greaterThan(java.lang.String field,
                                        int i)
Constructs a filter for field f matching Integers on or more than Integer.


lessThan

public static IntegerFilter lessThan(java.lang.String field,
                                     java.lang.Integer i)
Constructs a filter for field f matching integers on or less than Integer.


lessThan

public static IntegerFilter lessThan(java.lang.String field,
                                     int i)
Constructs a filter for field f matching Integers on or more than Integer.


intToString

public static java.lang.String intToString(int i)

stringToInt

public static int stringToInt(java.lang.String i)

bits

public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
                      throws java.io.IOException
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.

指定者:
org.apache.lucene.search.Filter 中的 bits
抛出:
java.io.IOException

toString

public java.lang.String toString()
覆盖:
java.lang.Object 中的 toString