Writeable
, ToXContent
, ToXContentFragment
DateHistogramValuesSourceBuilder
, HistogramValuesSourceBuilder
, TermsValuesSourceBuilder
public abstract class CompositeValuesSourceBuilder<AB extends CompositeValuesSourceBuilder<AB>> extends java.lang.Object implements Writeable, ToXContentFragment
ValuesSource
builder for CompositeAggregationBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
name |
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig |
build(SearchContext context) |
|
protected abstract void |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
field() |
Gets the field to use for this source
|
AB |
field(java.lang.String field) |
Sets the field to use for this source
|
java.lang.String |
format() |
Gets the format to use for the output of the aggregation.
|
AB |
format(java.lang.String format) |
Sets the format to use for the output of the aggregation.
|
int |
hashCode() |
|
protected abstract org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig |
innerBuild(SearchContext context,
ValuesSourceConfig<?> config) |
Creates a
CompositeValuesSourceConfig for this source. |
protected abstract boolean |
innerEquals(AB builder) |
|
protected abstract int |
innerHashCode() |
|
protected abstract void |
innerWriteTo(StreamOutput out) |
|
java.lang.Object |
missing() |
|
AB |
missing(java.lang.Object missing) |
Sets the value to use when the source finds a missing value in a
document
|
java.lang.String |
name() |
|
SortOrder |
order() |
Gets the
SortOrder to use to sort values produced this source |
AB |
order(java.lang.String order) |
Sets the
SortOrder to use to sort values produced this source |
AB |
order(SortOrder order) |
Sets the
SortOrder to use to sort values produced this source |
Script |
script() |
Gets the script to use for this source
|
AB |
script(Script script) |
Sets the script to use for this source
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
ValueType |
valueType() |
Gets the
ValueType for the value produced by this source |
AB |
valueType(ValueType valueType) |
Sets the
ValueType for the value produced by this source |
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public final void writeTo(StreamOutput out) throws java.io.IOException
Writeable
protected abstract void innerWriteTo(StreamOutput out) throws java.io.IOException
java.io.IOException
protected abstract void doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public final int hashCode()
hashCode
in class java.lang.Object
protected abstract int innerHashCode()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected abstract boolean innerEquals(AB builder)
public java.lang.String name()
public AB field(java.lang.String field)
public java.lang.String field()
public Script script()
public AB valueType(ValueType valueType)
ValueType
for the value produced by this sourcepublic AB missing(java.lang.Object missing)
public java.lang.Object missing()
public AB order(java.lang.String order)
SortOrder
to use to sort values produced this sourcepublic AB order(SortOrder order)
SortOrder
to use to sort values produced this sourcepublic AB format(java.lang.String format)
public java.lang.String format()
protected abstract org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig innerBuild(SearchContext context, ValuesSourceConfig<?> config) throws java.io.IOException
CompositeValuesSourceConfig
for this source.context
- The search context for this source.config
- The ValuesSourceConfig
for this source.java.io.IOException
public final org.elasticsearch.search.aggregations.bucket.composite.CompositeValuesSourceConfig build(SearchContext context) throws java.io.IOException
java.io.IOException