public class LuceneSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LuceneSerializer |
DEFAULT |
Constructor and Description |
---|
LuceneSerializer(boolean lowerCase,
boolean splitTerms) |
LuceneSerializer(boolean lowerCase,
boolean splitTerms,
java.util.Locale sortLocale) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.Query |
between(Operation<?> operation,
QueryMetadata metadata) |
protected java.lang.String[] |
convert(Path<?> leftHandSide,
Expression<?> rightHandSide,
QueryMetadata metadata)
template method
|
protected java.lang.String[] |
convert(Path<?> leftHandSide,
java.lang.Object rightHandSide)
template method
|
protected org.apache.lucene.search.Query |
endsWith(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
eq(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
eq(java.lang.String field,
java.lang.String[] terms,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
ge(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
gt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
in(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
le(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
like(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
lt(Operation<?> operation,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
ne(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected <N extends java.lang.Number> |
numericRange(java.lang.Class<N> clazz,
java.lang.String field,
N min,
N max,
boolean minInc,
boolean maxInc) |
protected org.apache.lucene.search.Query |
range(Path<?> leftHandSide,
java.lang.String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
protected org.apache.lucene.search.Query |
startsWith(QueryMetadata metadata,
Operation<?> operation,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
stringContains(Operation<?> operation,
QueryMetadata metadata,
boolean ignoreCase) |
protected org.apache.lucene.search.Query |
stringRange(Path<?> leftHandSide,
java.lang.String field,
Expression<?> min,
Expression<?> max,
boolean minInc,
boolean maxInc,
QueryMetadata metadata) |
protected java.lang.String |
toField(Path<?> path)
template method, override to customize
|
org.apache.lucene.search.Query |
toQuery(Expression<?> expr,
QueryMetadata metadata) |
org.apache.lucene.search.Sort |
toSort(java.util.List<? extends OrderSpecifier<?>> orderBys) |
public static final LuceneSerializer DEFAULT
public LuceneSerializer(boolean lowerCase, boolean splitTerms)
public LuceneSerializer(boolean lowerCase, boolean splitTerms, java.util.Locale sortLocale)
protected org.apache.lucene.search.Query like(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query eq(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query eq(java.lang.String field, java.lang.String[] terms, boolean ignoreCase)
protected org.apache.lucene.search.Query in(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query ne(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query startsWith(QueryMetadata metadata, Operation<?> operation, boolean ignoreCase)
protected org.apache.lucene.search.Query stringContains(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query endsWith(Operation<?> operation, QueryMetadata metadata, boolean ignoreCase)
protected org.apache.lucene.search.Query between(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query lt(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query gt(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query le(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query ge(Operation<?> operation, QueryMetadata metadata)
protected org.apache.lucene.search.Query range(Path<?> leftHandSide, java.lang.String field, @Nullable Expression<?> min, @Nullable Expression<?> max, boolean minInc, boolean maxInc, QueryMetadata metadata)
protected <N extends java.lang.Number> org.apache.lucene.search.NumericRangeQuery<?> numericRange(java.lang.Class<N> clazz, java.lang.String field, @Nullable N min, @Nullable N max, boolean minInc, boolean maxInc)
protected org.apache.lucene.search.Query stringRange(Path<?> leftHandSide, java.lang.String field, @Nullable Expression<?> min, @Nullable Expression<?> max, boolean minInc, boolean maxInc, QueryMetadata metadata)
protected java.lang.String toField(Path<?> path)
path
- protected java.lang.String[] convert(Path<?> leftHandSide, Expression<?> rightHandSide, QueryMetadata metadata)
leftHandSide
- rightHandSide
- protected java.lang.String[] convert(Path<?> leftHandSide, java.lang.Object rightHandSide)
leftHandSide
- rightHandSide
- public org.apache.lucene.search.Query toQuery(Expression<?> expr, QueryMetadata metadata)
public org.apache.lucene.search.Sort toSort(java.util.List<? extends OrderSpecifier<?>> orderBys)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.