Class OriginalIndices

  • All Implemented Interfaces:
    IndicesRequest

    public final class OriginalIndices
    extends java.lang.Object
    implements IndicesRequest
    Used to keep track of original indices within internal (e.g. shard level) requests
    • Constructor Detail

      • OriginalIndices

        public OriginalIndices​(IndicesRequest indicesRequest)
      • OriginalIndices

        public OriginalIndices​(java.lang.String[] indices,
                               IndicesOptions indicesOptions)
    • Method Detail

      • 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
      • readOriginalIndices

        public static OriginalIndices readOriginalIndices​(StreamInput in)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeOriginalIndices

        public static void writeOriginalIndices​(OriginalIndices originalIndices,
                                                StreamOutput out)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object