Class SingleShardRequest<Request extends SingleShardRequest<Request>>

    • Field Detail

      • index

        @Nullable
        protected java.lang.String index
        The concrete index name Whether index property is optional depends on the concrete implementation. If index property is required the concrete implementation should use validateNonNullIndex() to check if the index property has been set
    • Constructor Detail

      • SingleShardRequest

        public SingleShardRequest()
      • SingleShardRequest

        protected SingleShardRequest​(java.lang.String index)
    • Method Detail

      • validateNonNullIndex

        protected ActionRequestValidationException validateNonNullIndex()
        Returns:
        a validation exception if the index property hasn't been set
      • index

        @Nullable
        public java.lang.String index()
        Returns:
        The concrete index this request is targeted for or null if index is optional. Whether index property is optional depends on the concrete implementation. If index property is required the concrete implementation should use validateNonNullIndex() to check if the index property has been set
      • index

        public final Request index​(java.lang.String index)
        Sets the index.
      • indices

        public java.lang.String[] indices()
        Description copied from interface: IndicesRequest
        Returns the array of indices that the action relates to
        Specified by:
        indices in interface IndicesRequest
      • indicesOptions

        public IndicesOptions indicesOptions()
        Description copied from interface: IndicesRequest
        Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.
        Specified by:
        indicesOptions in interface IndicesRequest