Class IndexSettingsStore.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexSettingsStore.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexSettingsStore.Builder,,IndexSettingsStore> MutableBuilder<IndexSettingsStore.Builder,,IndexSettingsStore> ObjectBuilder<IndexSettingsStore>
- Enclosing class:
IndexSettingsStore
public static class IndexSettingsStore.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexSettingsStore.Builder,IndexSettingsStore>
Builder for
IndexSettingsStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhether memory-mapping is allowed.build()Builds aIndexSettingsStore.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:fsfs(IndexSettingsStoreFs value) API name:fsAPI name:hybridhybrid(IndexSettingsStoreHybrid value) API name:hybridThe list of files to preload into memory.The list of files to preload into memory.API name:stats_refresh_intervalstatsRefreshInterval(Time value) API name:stats_refresh_intervalRequired - API name:typetype(StorageType value) Required - API name:typeMethods 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<IndexSettingsStore.Builder,IndexSettingsStore> - Returns:
- a new builder instance.
-
allowMmap
Whether memory-mapping is allowed. You can restrict the use of themmapfsand the relatedhybridfsstore types with the settingnode.store.allow_mmap. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.API name:
allow_mmap -
fs
API name:fs -
fs
@Nonnull public final IndexSettingsStore.Builder fs(Function<IndexSettingsStoreFs.Builder, ObjectBuilder<IndexSettingsStoreFs>> fn) API name:fs -
hybrid
API name:hybrid -
hybrid
@Nonnull public final IndexSettingsStore.Builder hybrid(Function<IndexSettingsStoreHybrid.Builder, ObjectBuilder<IndexSettingsStoreHybrid>> fn) API name:hybrid -
preload
The list of files to preload into memory.API name:
preloadAdds all elements of
listtopreload. -
preload
The list of files to preload into memory.API name:
preloadAdds one or more values to
preload. -
statsRefreshInterval
API name:stats_refresh_interval -
statsRefreshInterval
@Nonnull public final IndexSettingsStore.Builder statsRefreshInterval(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:stats_refresh_interval -
type
Required - API name:type -
type
@Nonnull public final IndexSettingsStore.Builder type(Function<StorageType.Builder, ObjectBuilder<StorageType>> fn) Required - API name:type -
build
Builds aIndexSettingsStore.- Specified by:
buildin interfaceObjectBuilder<IndexSettingsStore>- Throws:
NullPointerException- if some of the required fields are null.
-