Writeable, ToXContent, ToXContentFragmentpublic class IncludeExclude extends java.lang.Object implements Writeable, ToXContentFragment
include is evaluated first and then the exclude.| Modifier and Type | Class | Description |
|---|---|---|
static class |
IncludeExclude.LongFilter |
|
static class |
IncludeExclude.OrdinalsFilter |
|
class |
IncludeExclude.PartitionedLongFilter |
|
static class |
IncludeExclude.SetBackedLongFilter |
|
static class |
IncludeExclude.StringFilter |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static ParseField |
EXCLUDE_FIELD |
|
static ParseField |
INCLUDE_FIELD |
|
static ParseField |
NUM_PARTITIONS_FIELD |
|
static ParseField |
PARTITION_FIELD |
EMPTY_PARAMS| Constructor | Description |
|---|---|
IncludeExclude(double[] includeValues,
double[] excludeValues) |
|
IncludeExclude(int partition,
int numPartitions) |
|
IncludeExclude(long[] includeValues,
long[] excludeValues) |
|
IncludeExclude(java.lang.String[] includeValues,
java.lang.String[] excludeValues) |
|
IncludeExclude(java.lang.String include,
java.lang.String exclude) |
|
IncludeExclude(java.util.SortedSet<org.apache.lucene.util.BytesRef> includeValues,
java.util.SortedSet<org.apache.lucene.util.BytesRef> excludeValues) |
|
IncludeExclude(org.apache.lucene.util.automaton.RegExp include,
org.apache.lucene.util.automaton.RegExp exclude) |
|
IncludeExclude(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | 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 |
isPartitionBased() |
|
boolean |
isRegexBased() |
|
static IncludeExclude |
merge(IncludeExclude include,
IncludeExclude exclude) |
|
static IncludeExclude |
parseExclude(XContentParser parser) |
|
static IncludeExclude |
parseInclude(XContentParser parser) |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final ParseField INCLUDE_FIELD
public static final ParseField EXCLUDE_FIELD
public static final ParseField PARTITION_FIELD
public static final ParseField NUM_PARTITIONS_FIELD
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(int partition,
int numPartitions)
public IncludeExclude(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static IncludeExclude merge(IncludeExclude include, IncludeExclude exclude)
public static IncludeExclude parseInclude(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic static IncludeExclude parseExclude(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic boolean isRegexBased()
public boolean isPartitionBased()
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 ToXContentjava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object