Class MinHashTokenFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder<MinHashTokenFilter.Builder>
co.elastic.clients.elasticsearch._types.analysis.MinHashTokenFilter.Builder
- All Implemented Interfaces:
WithJson<MinHashTokenFilter.Builder>,ObjectBuilder<MinHashTokenFilter>
- Enclosing class:
- MinHashTokenFilter
public static class MinHashTokenFilter.Builder
extends TokenFilterBase.AbstractBuilder<MinHashTokenFilter.Builder>
implements ObjectBuilder<MinHashTokenFilter>
Builder for
MinHashTokenFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketCount(Integer value) Number of buckets to which hashes are assigned.build()Builds aMinHashTokenFilter.Number of ways to hash each token in the stream.hashSetSize(Integer value) Number of hashes to keep from each bucket.protected MinHashTokenFilter.Builderself()withRotation(Boolean value) Iftrue, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if thehash_set_sizeis1.Methods inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase.AbstractBuilder
versionMethods 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
-
bucketCount
Number of buckets to which hashes are assigned. Defaults to512.API name:
bucket_count -
hashCount
Number of ways to hash each token in the stream. Defaults to1.API name:
hash_count -
hashSetSize
Number of hashes to keep from each bucket. Defaults to1. Hashes are retained by ascending size, starting with the bucket’s smallest hash first.API name:
hash_set_size -
withRotation
Iftrue, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if thehash_set_sizeis1. If thebucket_countargument is greater than 1, this parameter defaults totrue. Otherwise, this parameter defaults tofalse.API name:
with_rotation -
self
- Specified by:
selfin classTokenFilterBase.AbstractBuilder<MinHashTokenFilter.Builder>
-
build
Builds aMinHashTokenFilter.- Specified by:
buildin interfaceObjectBuilder<MinHashTokenFilter>- Throws:
NullPointerException- if some of the required fields are null.
-