Class GetRequest.AbstractBuilder<BuilderT extends GetRequest.AbstractBuilder<BuilderT>>

java.lang.Object
co.elastic.clients.elasticsearch._core.GetRequest.AbstractBuilder<BuilderT>
Direct Known Subclasses:
GetRequest.Builder, GetSourceRequest.Builder
Enclosing class:
GetRequest

protected abstract static class GetRequest.AbstractBuilder<BuilderT extends GetRequest.AbstractBuilder<BuilderT>>
extends java.lang.Object
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected AbstractBuilder()  
  • Method Summary

    Modifier and Type Method Description
    BuilderT addSourceExcludes​(java.lang.String value)
    Add a value to sourceExcludes(List), creating the list if needed.
    BuilderT addSourceIncludes​(java.lang.String value)
    Add a value to sourceIncludes(List), creating the list if needed.
    BuilderT addStoredFields​(java.lang.String value)
    Add a value to storedFields(List), creating the list if needed.
    BuilderT id​(java.lang.String value)
    Required - Unique identifier of the document.
    BuilderT index​(java.lang.String value)
    Required - Name of the index that contains the document.
    BuilderT preference​(java.lang.String value)
    Specifies the node or shard the operation should be performed on.
    BuilderT realtime​(java.lang.Boolean value)
    Boolean) If true, the request is real-time as opposed to near-real-time.
    BuilderT refresh​(java.lang.Boolean value)
    If true, Elasticsearch refreshes the affected shards to make this operation visible to search.
    BuilderT routing​(java.lang.String value)
    Target the specified primary shard.
    protected abstract BuilderT self()  
    BuilderT source​(jakarta.json.JsonValue value)
    True or false to return the _source field or not, or a list of fields to return.
    BuilderT sourceExcludes​(java.lang.String... value)
    A comma-separated list of source fields to exclude in the response.
    BuilderT sourceExcludes​(java.util.List<java.lang.String> value)
    A comma-separated list of source fields to exclude in the response.
    BuilderT sourceIncludes​(java.lang.String... value)
    A comma-separated list of source fields to include in the response.
    BuilderT sourceIncludes​(java.util.List<java.lang.String> value)
    A comma-separated list of source fields to include in the response.
    BuilderT storedFields​(java.lang.String... value)
    A comma-separated list of stored fields to return in the response
    BuilderT storedFields​(java.util.List<java.lang.String> value)
    A comma-separated list of stored fields to return in the response
    BuilderT type​(java.lang.String value)
    The type of the document (use _all to fetch the first document matching the ID across all types)
    BuilderT version​(java.lang.Long value)
    Explicit version number for concurrency control.
    BuilderT versionType​(VersionType value)
    Specific version type: internal, external, external_gte.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • id

      public BuilderT id​(java.lang.String value)
      Required - Unique identifier of the document.

      API name: id

    • index

      public BuilderT index​(java.lang.String value)
      Required - Name of the index that contains the document.

      API name: index

    • type

      public BuilderT type​(@Nullable java.lang.String value)
      The type of the document (use _all to fetch the first document matching the ID across all types)

      API name: type

    • preference

      public BuilderT preference​(@Nullable java.lang.String value)
      Specifies the node or shard the operation should be performed on. Random by default.

      API name: preference

    • realtime

      public BuilderT realtime​(@Nullable java.lang.Boolean value)
      Boolean) If true, the request is real-time as opposed to near-real-time.

      API name: realtime

    • refresh

      public BuilderT refresh​(@Nullable java.lang.Boolean value)
      If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes.

      API name: refresh

    • routing

      public BuilderT routing​(@Nullable java.lang.String value)
      Target the specified primary shard.

      API name: routing

    • source

      public BuilderT source​(@Nullable jakarta.json.JsonValue value)
      True or false to return the _source field or not, or a list of fields to return.

      API name: _source

    • sourceExcludes

      public BuilderT sourceExcludes​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of source fields to exclude in the response.

      API name: _source_excludes

    • sourceExcludes

      public BuilderT sourceExcludes​(java.lang.String... value)
      A comma-separated list of source fields to exclude in the response.

      API name: _source_excludes

    • addSourceExcludes

      public BuilderT addSourceExcludes​(java.lang.String value)
      Add a value to sourceExcludes(List), creating the list if needed.
    • sourceIncludes

      public BuilderT sourceIncludes​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of source fields to include in the response.

      API name: _source_includes

    • sourceIncludes

      public BuilderT sourceIncludes​(java.lang.String... value)
      A comma-separated list of source fields to include in the response.

      API name: _source_includes

    • addSourceIncludes

      public BuilderT addSourceIncludes​(java.lang.String value)
      Add a value to sourceIncludes(List), creating the list if needed.
    • storedFields

      public BuilderT storedFields​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of stored fields to return in the response

      API name: stored_fields

    • storedFields

      public BuilderT storedFields​(java.lang.String... value)
      A comma-separated list of stored fields to return in the response

      API name: stored_fields

    • addStoredFields

      public BuilderT addStoredFields​(java.lang.String value)
      Add a value to storedFields(List), creating the list if needed.
    • version

      public BuilderT version​(@Nullable java.lang.Long value)
      Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.

      API name: version

    • versionType

      public BuilderT versionType​(@Nullable VersionType value)
      Specific version type: internal, external, external_gte.

      API name: version_type

    • self

      protected abstract BuilderT self()