All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.pds.registry.common.connection.aws.CreateIndexRespWrap Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package gov.nasa.pds.registry.common.connection.aws;

import org.opensearch.client.opensearch.indices.CreateIndexResponse;
import gov.nasa.pds.registry.common.Response;

class CreateIndexRespWrap implements Response.CreatedIndex {
  final private CreateIndexResponse parent;
  CreateIndexRespWrap(CreateIndexResponse parent) {
    this.parent = parent;
  }
  @Override
  public boolean acknowledge() {
    return this.parent.acknowledged();
  }
  @Override
  public boolean acknowledgeShards() {
    return this.parent.shardsAcknowledged();
  }
  @Override
  public String getIndex() {
    return this.parent.index();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy