Class Source
java.lang.Object
org.opensearch.client.opensearch.core.reindex.Source
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Source.Builder,Source>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Source
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Source.Builder,Source>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Source> Json deserializer forSource -
Method Summary
Modifier and TypeMethodDescriptionstatic Source.Builderbuilder()booleaninthashCode()index()Required - API name:indexstatic Sourcefinal Queryquery()API name:queryfinal RemoteSourceremote()API name:remotevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of documents to index per batch.final SlicedScrollslice()API name:slicefinal List<SortOptions> sort()API name:sortAPI name:_sourceCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forSource
-
-
Method Details
-
of
-
index
Required - API name:index -
query
API name:query -
remote
API name:remote -
size
The number of documents to index per batch. Use thesizesetting when indexing from a remote cluster. This ensures that batches fit in the on-heap buffer. The buffer defaults to a maximum size of100MB.API name:
size -
slice
API name:slice -
sort
API name:sort -
sourceFields
API name:_source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Source.Builder,Source> - Returns:
- a new builder instance.
-
builder
-
setupSourceDeserializer
-
hashCode
public int hashCode() -
equals
-