gov.nasa.pds.registry.common.connection.aws.MGetImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of registry-common Show documentation
Show all versions of registry-common Show documentation
Common code used by Harvest and Registry Manager.
The newest version!
package gov.nasa.pds.registry.common.connection.aws;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.opensearch.client.opensearch.core.MgetRequest;
import gov.nasa.pds.registry.common.Request.Get;
import gov.nasa.pds.registry.common.Request.MGet;
class MGetImpl implements MGet {
final MgetRequest.Builder craftsman = new MgetRequest.Builder();
@Override
public Get excludeField(String field) {
this.craftsman.sourceExcludes(field);
return this;
}
@Override
public Get excludeFields(List fields) {
this.craftsman.sourceExcludes(fields);
return this;
}
@Override
public Get includeField(String field) {
this.craftsman.sourceIncludes(field);
return this;
}
@Override
public Get includeFields(List fields) {
this.craftsman.sourceIncludes(fields);
return this;
}
@Override
public Get setId(String id) {
this.craftsman.ids(id);
return this;
}
@Override
public Get setIndex(String index) {
this.craftsman.index(index);
return this;
}
@Override
public MGet setIds(Collection ids) {
this.craftsman.ids(new ArrayList(ids));
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy