Class ResizeRequest

    • Constructor Detail

      • ResizeRequest

        public ResizeRequest​(java.lang.String targetIndex,
                             java.lang.String sourceIndex)
    • Method Detail

      • setSourceIndex

        public void setSourceIndex​(java.lang.String 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
      • getSourceIndex

        public java.lang.String getSourceIndex()
        Returns the source index name
      • setWaitForActiveShards

        public void setWaitForActiveShards​(ActiveShardCount waitForActiveShards)
        Sets the number of shard copies that should be active for creation of the new shrunken index to return. Defaults to ActiveShardCount.DEFAULT, which will wait for one shard copy (the primary) to become active. Set this value to ActiveShardCount.ALL to wait for all shards (primary and all replicas) to be active before returning. Otherwise, use ActiveShardCount.from(int) to set this value to any non-negative integer, up to the number of copies per shard (number of replicas + 1), to wait for the desired amount of shard copies to become active before returning. Index creation will only wait up until the timeout value for the number of shard copies to be active before returning. Check ShardsAcknowledgedResponse.isShardsAcknowledged() to determine if the requisite shard copies were all started before returning or timing out.
        waitForActiveShards - number of active shard copies to wait on
      • setResizeType

        public void setResizeType​(ResizeType type)
        The type of the resize operation
      • getResizeType

        public ResizeType getResizeType()
        Returns the type of the resize operation
      • setCopySettings

        public void setCopySettings​(java.lang.Boolean copySettings)
      • getCopySettings

        public java.lang.Boolean getCopySettings()
      • fromXContent

        public void fromXContent​(XContentParser parser)