|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||
java.lang.Objectorg.apache.lucene.search.Filter
tot.search.filter.IntegerFilter
public class IntegerFilter
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 |
| 构造函数详细信息 |
|---|
public IntegerFilter(java.lang.String field,
int from,
int to)
f matching Integers between
from and to inclusively.
public IntegerFilter(java.lang.String field,
java.lang.Integer from,
java.lang.Integer to)
f matching Integers between
from and to inclusively.
| 方法详细信息 |
|---|
public static IntegerFilter greaterThan(java.lang.String field,
java.lang.Integer i)
f matching Integers on or
more than Integer.
public static IntegerFilter greaterThan(java.lang.String field,
int i)
f matching Integers on or
more than Integer.
public static IntegerFilter lessThan(java.lang.String field,
java.lang.Integer i)
f matching integers on or
less than Integer.
public static IntegerFilter lessThan(java.lang.String field,
int i)
f matching Integers on or
more than Integer.
public static java.lang.String intToString(int i)
public static int stringToInt(java.lang.String i)
public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
org.apache.lucene.search.Filter 中的 bitsjava.io.IOExceptionpublic java.lang.String toString()
java.lang.Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||