public class IncludeExclude extends java.lang.Object implements Writeable, ToXContent
include
is evaluated first and then the exclude
.Modifier and Type | Class and Description |
---|---|
static class |
IncludeExclude.LongFilter |
static class |
IncludeExclude.OrdinalsFilter |
static class |
IncludeExclude.Parser |
static class |
IncludeExclude.StringFilter |
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
IncludeExclude(double[] includeValues,
double[] excludeValues) |
IncludeExclude(long[] includeValues,
long[] excludeValues) |
IncludeExclude(org.apache.lucene.util.automaton.RegExp include,
org.apache.lucene.util.automaton.RegExp exclude) |
IncludeExclude(java.util.SortedSet<org.apache.lucene.util.BytesRef> includeValues,
java.util.SortedSet<org.apache.lucene.util.BytesRef> excludeValues) |
IncludeExclude(StreamInput in)
Read from a stream.
|
IncludeExclude(java.lang.String[] includeValues,
java.lang.String[] excludeValues) |
IncludeExclude(java.lang.String include,
java.lang.String exclude) |
Modifier and Type | Method and Description |
---|---|
IncludeExclude.LongFilter |
convertToDoubleFilter() |
IncludeExclude.LongFilter |
convertToLongFilter(DocValueFormat format) |
IncludeExclude.OrdinalsFilter |
convertToOrdinalsFilter(DocValueFormat format) |
IncludeExclude.StringFilter |
convertToStringFilter(DocValueFormat format) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isRegexBased() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public IncludeExclude(org.apache.lucene.util.automaton.RegExp include, org.apache.lucene.util.automaton.RegExp exclude)
include
- The regular expression pattern for the terms to be includedexclude
- The regular expression pattern for the terms to be excludedpublic IncludeExclude(java.lang.String include, java.lang.String exclude)
public IncludeExclude(java.util.SortedSet<org.apache.lucene.util.BytesRef> includeValues, java.util.SortedSet<org.apache.lucene.util.BytesRef> excludeValues)
includeValues
- The terms to be includedexcludeValues
- The terms to be excludedpublic IncludeExclude(java.lang.String[] includeValues, java.lang.String[] excludeValues)
public IncludeExclude(double[] includeValues, double[] excludeValues)
public IncludeExclude(long[] includeValues, long[] excludeValues)
public IncludeExclude(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public boolean isRegexBased()
public IncludeExclude.StringFilter convertToStringFilter(DocValueFormat format)
public IncludeExclude.OrdinalsFilter convertToOrdinalsFilter(DocValueFormat format)
public IncludeExclude.LongFilter convertToLongFilter(DocValueFormat format)
public IncludeExclude.LongFilter convertToDoubleFilter()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object