Class CreateIndexResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Direct Known Subclasses:
ResizeResponse

public class CreateIndexResponse
extends ShardsAcknowledgedResponse
A response for a create index action.
  • Constructor Details

    • CreateIndexResponse

      protected CreateIndexResponse​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • CreateIndexResponse

      public CreateIndexResponse​(boolean acknowledged, boolean shardsAcknowledged, java.lang.String index)
  • Method Details

    • declareFields

      protected static <T extends CreateIndexResponse> void declareFields​(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,​java.lang.Void> objectParser)
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedResponse
      Throws:
      java.io.IOException
    • index

      public java.lang.String index()
    • addCustomFields

      protected void addCustomFields​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Overrides:
      addCustomFields in class ShardsAcknowledgedResponse
      Throws:
      java.io.IOException
    • fromXContent

      public static CreateIndexResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class ShardsAcknowledgedResponse
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ShardsAcknowledgedResponse