public class WeightBuilder extends ScoreFunctionBuilder<WeightBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
EMPTY_PARAMS
Constructor and Description |
---|
WeightBuilder()
Standard constructor.
|
WeightBuilder(StreamInput in)
Read from a stream.
|
Modifier and Type | Method and 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.
|
equals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeTo
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final java.lang.String NAME
public WeightBuilder()
public WeightBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
ScoreFunctionBuilder
doWriteTo
in class ScoreFunctionBuilder<WeightBuilder>
java.io.IOException
public java.lang.String getName()
ScoreFunctionBuilder
getName
in class ScoreFunctionBuilder<WeightBuilder>
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ScoreFunctionBuilder
doXContent
in class ScoreFunctionBuilder<WeightBuilder>
java.io.IOException
protected boolean doEquals(WeightBuilder functionBuilder)
ScoreFunctionBuilder
doEquals
in class ScoreFunctionBuilder<WeightBuilder>
protected int doHashCode()
ScoreFunctionBuilder
doHashCode
in class ScoreFunctionBuilder<WeightBuilder>
protected ScoreFunction doToFunction(QueryShardContext context) throws java.io.IOException
ScoreFunctionBuilder
doToFunction
in class ScoreFunctionBuilder<WeightBuilder>
java.io.IOException