NamedWriteable, Writeable, ToXContent, ToXContentFragmentpublic class WeightBuilder extends ScoreFunctionBuilder<WeightBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS| Constructor | Description |
|---|---|
WeightBuilder() |
Standard constructor.
|
WeightBuilder(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(WeightBuilder functionBuilder) |
Check that two instances of the same subclass of ScoreFunctionBuilder are equal.
|
protected int |
doHashCode() |
Hashcode for fields defined in this subclass of ScoreFunctionBuilder.
|
protected ScoreFunction |
doToFunction(QueryShardContext context) |
Build the Lucene ScoreFunction for this builder.
|
protected void |
doWriteTo(StreamOutput out) |
Write the subclass's components into the stream.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
Convert this subclass's data into XContent.
|
java.lang.String |
getName() |
The name of this score function.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeToisFragmentpublic static final java.lang.String NAME
public WeightBuilder()
public WeightBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
ScoreFunctionBuilderdoWriteTo in class ScoreFunctionBuilder<WeightBuilder>java.io.IOExceptionpublic java.lang.String getName()
ScoreFunctionBuildergetName in class ScoreFunctionBuilder<WeightBuilder>protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ScoreFunctionBuilderdoXContent in class ScoreFunctionBuilder<WeightBuilder>java.io.IOExceptionprotected boolean doEquals(WeightBuilder functionBuilder)
ScoreFunctionBuilderdoEquals in class ScoreFunctionBuilder<WeightBuilder>protected int doHashCode()
ScoreFunctionBuilderdoHashCode in class ScoreFunctionBuilder<WeightBuilder>protected ScoreFunction doToFunction(QueryShardContext context) throws java.io.IOException
ScoreFunctionBuilderdoToFunction in class ScoreFunctionBuilder<WeightBuilder>java.io.IOException