io.tarantool.driver.api.space.options.OperationWithFieldsOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.api.space.options;
import java.util.List;
import java.util.Optional;
/**
* Base interface for all operation options that may have a configurable return.
*
* @author Artyom Dubinin
*/
public interface OperationWithFieldsOptions>
extends Options, Self {
String FIELDS = "fields";
/**
* Specifies list of fields names for getting only a subset of fields.
* By default, all fields are returned.
*
* @param fields list of string field names
* @return this options instance
*/
default T withFields(List fields) {
addOption(FIELDS, fields);
return self();
}
/**
* Return list of fields names for getting only a subset of fields.
*
* @return list of fields string names
*/
default Optional getFields() {
return getOption(FIELDS, List.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy