public class IncludeExclude extends Object
include is evaluated first and then the exclude.| Modifier and Type | Class and Description |
|---|---|
static class |
IncludeExclude.LongFilter |
static class |
IncludeExclude.Parser |
| Constructor and Description |
|---|
IncludeExclude(Pattern include,
Pattern exclude,
Set<org.apache.lucene.util.BytesRef> includeValues,
Set<org.apache.lucene.util.BytesRef> excludeValues) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.lucene.util.BytesRef value)
Returns whether the given value is accepted based on the
include & exclude patterns. |
org.apache.lucene.util.LongBitSet |
acceptedGlobalOrdinals(org.apache.lucene.index.RandomAccessOrds globalOrdinals,
ValuesSource.Bytes.WithOrdinals valueSource)
Computes which global ordinals are accepted by this IncludeExclude instance.
|
IncludeExclude.LongFilter |
convertToDoubleFilter() |
IncludeExclude.LongFilter |
convertToLongFilter() |
boolean |
isRegexBased() |
public IncludeExclude(Pattern include, Pattern exclude, Set<org.apache.lucene.util.BytesRef> includeValues, Set<org.apache.lucene.util.BytesRef> excludeValues)
include - The regular expression pattern for the terms to be included
(may only be null if one of the other arguments is none-null.includeValues - The terms to be included
(may only be null if one of the other arguments is none-null.exclude - The regular expression pattern for the terms to be excluded
(may only be null if one of the other arguments is none-null.excludeValues - The terms to be excluded
(may only be null if one of the other arguments is none-null.public boolean accept(org.apache.lucene.util.BytesRef value)
include & exclude patterns.public org.apache.lucene.util.LongBitSet acceptedGlobalOrdinals(org.apache.lucene.index.RandomAccessOrds globalOrdinals,
ValuesSource.Bytes.WithOrdinals valueSource)
public boolean isRegexBased()
public IncludeExclude.LongFilter convertToLongFilter()
public IncludeExclude.LongFilter convertToDoubleFilter()
Copyright © 2009–2016. All rights reserved.