public class WhereClause extends QueryClause implements org.elasticsearch.common.io.stream.Streamable
Modifier and Type | Field and Description |
---|---|
static WhereClause |
MATCH_ALL |
static WhereClause |
NO_MATCH |
noMatch, query
Constructor and Description |
---|
WhereClause(org.elasticsearch.common.io.stream.StreamInput in) |
WhereClause(Symbol query) |
WhereClause(Symbol normalizedQuery,
DocKeys docKeys,
java.util.List<java.lang.String> partitions) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<java.util.Set<Symbol>> |
clusteredBy() |
void |
clusteredBy(java.util.Set<Symbol> clusteredBy) |
com.google.common.base.Optional<DocKeys> |
docKeys() |
void |
docKeys(DocKeys docKeys) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
hasVersions() |
WhereClause |
normalize(EvaluatingNormalizer normalizer) |
java.util.List<java.lang.String> |
partitions()
Returns a predefined list of partitions this query can be executed on
instead of the entire partition set.
|
void |
partitions(java.util.List<Literal> partitions) |
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
java.util.Set<java.lang.String> |
routingValues() |
java.lang.String |
toString() |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
canMatch, hasQuery, noMatch, query
public static final WhereClause MATCH_ALL
public static final WhereClause NO_MATCH
public WhereClause(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
public WhereClause(@Nullable Symbol normalizedQuery, @Nullable DocKeys docKeys, @Nullable java.util.List<java.lang.String> partitions)
public WhereClause(@Nullable Symbol query)
public WhereClause normalize(EvaluatingNormalizer normalizer)
public com.google.common.base.Optional<java.util.Set<Symbol>> clusteredBy()
@Nullable public java.util.Set<java.lang.String> routingValues()
public void clusteredBy(@Nullable java.util.Set<Symbol> clusteredBy)
public void partitions(java.util.List<Literal> partitions)
public void docKeys(@Nullable DocKeys docKeys)
public com.google.common.base.Optional<DocKeys> docKeys()
public java.util.List<java.lang.String> partitions()
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readFrom
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
writeTo
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasVersions()