Class Term.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.termvectors.Term.Builder
- All Implemented Interfaces:
CopyableBuilder<Term.Builder,,Term> MutableBuilder<Term.Builder,,Term> ObjectBuilder<Term>
- Enclosing class:
Term
public static class Term.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Term.Builder,Term>
Builder for
Term.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTerm.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Term.BuilderAPI name:doc_freqfinal Term.BuilderAPI name:scorefinal Term.BuildertermFreq(int value) Required - API name:term_freqfinal Term.BuilderAPI name:tokensfinal Term.BuilderAPI name:tokensfinal Term.BuilderAPI name:tokensfinal Term.BuilderAPI name:ttfMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Term.Builder,Term> - Returns:
- a new builder instance.
-
docFreq
API name:doc_freq -
score
API name:score -
termFreq
Required - API name:term_freq -
tokens
API name:tokensAdds all elements of
listtotokens. -
tokens
API name:tokensAdds one or more values to
tokens. -
tokens
API name:tokensAdds a value to
tokensusing a builder lambda. -
ttf
API name:ttf -
build
Builds aTerm.- Specified by:
buildin interfaceObjectBuilder<Term>- Throws:
NullPointerException- if some of the required fields are null.
-