Package com.gpudb.protocol
Class DownloadFilesRequest
java.lang.Object
com.gpudb.protocol.DownloadFilesRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.downloadFiles.
Downloads one or more files from KiFS.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theDownloadFilesRequestparameteroptions.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.An array of the file names to download from KiFS.Optional parameters.Array of number of bytes to read from each respective file infileNames.An array of starting byte offsets from which to read each respective file infileNames.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.setFileNames(List<String> fileNames) An array of the file names to download from KiFS.setOptions(Map<String, String> options) Optional parameters.setReadLengths(List<Long> readLengths) Array of number of bytes to read from each respective file infileNames.setReadOffsets(List<Long> readOffsets) An array of starting byte offsets from which to read each respective file infileNames.toString()
Constructor Details
DownloadFilesRequest
public DownloadFilesRequest()Constructs a DownloadFilesRequest object with default parameters.DownloadFilesRequest
public DownloadFilesRequest(List<String> fileNames, List<Long> readOffsets, List<Long> readLengths, Map<String, String> options) Constructs a DownloadFilesRequest object with the specified parameters.Parameters:fileNames- An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter. Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.readOffsets- An array of starting byte offsets from which to read each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readLengthsmust also not be empty.readLengths- Array of number of bytes to read from each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readOffsetsmust also not be empty.options- Optional parameters.FILE_ENCODING: Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this asBASE64. Supported values:BASE64: Apply base64 encoding to the output file data.NONE: Do not apply any encoding to the output file data.
NONE.
Map.
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.getFileNames
An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter.Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
Returns:The current value offileNames.setFileNames
An array of the file names to download from KiFS. File paths may contain wildcard characters after the KiFS directory delimiter.Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
Parameters:fileNames- The new value forfileNames.Returns:thisto mimic the builder pattern.getReadOffsets
An array of starting byte offsets from which to read each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readLengthsmust also not be empty.Returns:The current value ofreadOffsets.setReadOffsets
An array of starting byte offsets from which to read each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readLengthsmust also not be empty.Parameters:readOffsets- The new value forreadOffsets.Returns:thisto mimic the builder pattern.getReadLengths
Array of number of bytes to read from each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readOffsetsmust also not be empty.Returns:The current value ofreadLengths.setReadLengths
Array of number of bytes to read from each respective file infileNames. Must either be empty or the same length asfileNames. If empty, files are downloaded in their entirety. If not empty,readOffsetsmust also not be empty.Parameters:readLengths- The new value forreadLengths.Returns:thisto mimic the builder pattern.getOptions
Optional parameters.FILE_ENCODING: Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this asBASE64. Supported values:BASE64: Apply base64 encoding to the output file data.NONE: Do not apply any encoding to the output file data.
NONE.
Map.Returns:The current value ofoptions.setOptions
Optional parameters.FILE_ENCODING: Encoding to be applied to the output file data. When using JSON serialization it is recommended to specify this asBASE64. Supported values:BASE64: Apply base64 encoding to the output file data.NONE: Do not apply any encoding to the output file data.
NONE.
Map.Parameters:options- The new value foroptions.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: