Class IntervalsAllOf.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IntervalsAllOf.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.IntervalsAllOf.Builder
- All Implemented Interfaces:
WithJson<IntervalsAllOf.Builder>,ObjectBuilder<IntervalsAllOf>
- Enclosing class:
- IntervalsAllOf
public static class IntervalsAllOf.Builder
extends WithJsonObjectBuilderBase<IntervalsAllOf.Builder>
implements ObjectBuilder<IntervalsAllOf>
Builder for
IntervalsAllOf.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIntervalsAllOf.final IntervalsAllOf.Builderfilter(IntervalsFilter value) Rule used to filter returned intervals.final IntervalsAllOf.BuilderRule used to filter returned intervals.final IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderMaximum number of positions between the matching terms.final IntervalsAllOf.BuilderIftrue, intervals produced by the rules should appear in the order in which they are specified.protected IntervalsAllOf.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
intervals
Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds all elements of
listtointervals. -
intervals
Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds one or more values to
intervals. -
intervals
public final IntervalsAllOf.Builder intervals(Function<Intervals.Builder, ObjectBuilder<Intervals>> fn) Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds a value to
intervalsusing a builder lambda. -
maxGaps
Maximum number of positions between the matching terms. Intervals produced by the rules further apart than this are not considered matches.API name:
max_gaps -
ordered
Iftrue, intervals produced by the rules should appear in the order in which they are specified.API name:
ordered -
filter
Rule used to filter returned intervals.API name:
filter -
filter
public final IntervalsAllOf.Builder filter(Function<IntervalsFilter.Builder, ObjectBuilder<IntervalsFilter>> fn) Rule used to filter returned intervals.API name:
filter -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IntervalsAllOf.Builder>
-
build
Builds aIntervalsAllOf.- Specified by:
buildin interfaceObjectBuilder<IntervalsAllOf>- Throws:
NullPointerException- if some of the required fields are null.
-