Package com.gpudb.protocol
Class AlterDirectoryRequest
java.lang.Object
com.gpudb.protocol.AlterDirectoryRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.alterDirectory.
Alters an existing directory in KiFS.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theAlterDirectoryRequestparameterdirectoryUpdatesMap.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Name of the directory in KiFS to be altered.Map containing the properties of the directory to be altered.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setDirectoryName(String directoryName) Name of the directory in KiFS to be altered.setDirectoryUpdatesMap(Map<String, String> directoryUpdatesMap) Map containing the properties of the directory to be altered.setOptions(Map<String, String> options) Optional parameters.toString()
Constructor Details
AlterDirectoryRequest
public AlterDirectoryRequest()Constructs an AlterDirectoryRequest object with default parameters.AlterDirectoryRequest
public AlterDirectoryRequest(String directoryName, Map<String, String> directoryUpdatesMap, Map<String, String> options) Constructs an AlterDirectoryRequest object with the specified parameters.Parameters:directoryName- Name of the directory in KiFS to be altered.directoryUpdatesMap- Map containing the properties of the directory to be altered. Error if empty.DATA_LIMIT: The maximum capacity, in bytes, to apply to the directory. Set to -1 to indicate no upper limit.
options- Optional parameters. The default value is an emptyMap.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setDirectoryName
Name of the directory in KiFS to be altered.Parameters:directoryName- The new value fordirectoryName.Returns:thisto mimic the builder pattern.getDirectoryUpdatesMap
Map containing the properties of the directory to be altered. Error if empty.DATA_LIMIT: The maximum capacity, in bytes, to apply to the directory. Set to -1 to indicate no upper limit.
Returns:The current value ofdirectoryUpdatesMap.setDirectoryUpdatesMap
Map containing the properties of the directory to be altered. Error if empty.DATA_LIMIT: The maximum capacity, in bytes, to apply to the directory. Set to -1 to indicate no upper limit.
Parameters:directoryUpdatesMap- The new value fordirectoryUpdatesMap.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: