public class DownloadFilesRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.downloadFiles(DownloadFilesRequest).
Downloads one or more files from KiFS.
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadFilesRequest.Options
Optional parameters.
|
| Constructor and Description |
|---|
DownloadFilesRequest()
Constructs a DownloadFilesRequest object with default parameters.
|
DownloadFilesRequest(List<String> fileNames,
List<Long> readOffsets,
List<Long> readLengths,
Map<String,String> options)
Constructs a DownloadFilesRequest object with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<String> |
getFileNames() |
Map<String,String> |
getOptions() |
List<Long> |
getReadLengths() |
List<Long> |
getReadOffsets() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
DownloadFilesRequest |
setFileNames(List<String> fileNames) |
DownloadFilesRequest |
setOptions(Map<String,String> options) |
DownloadFilesRequest |
setReadLengths(List<Long> readLengths) |
DownloadFilesRequest |
setReadOffsets(List<Long> readOffsets) |
String |
toString() |
public DownloadFilesRequest()
public DownloadFilesRequest(List<String> fileNames, List<Long> readOffsets, List<Long> readLengths, Map<String,String> options)
fileNames - An array of the file names to download from KiFS. File
paths may contain wildcard characters after the KiFS
directory delimeter.
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 in fileNames. Must either be
empty or the same length
as fileNames. If empty, files are downloaded
in their entirety. If not
empty, readLengths must also not be empty.readLengths - Array of number of bytes to read from each
respective file
in fileNames. Must either be empty or the
same length as
fileNames. If empty, files are downloaded in
their entirety. If not
empty, readOffsets must 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 as base64.
Supported values:
BASE64: Apply base64 encoding to the output file data.
NONE: Do not apply any encoding to the output file
data.
NONE.
Map.public static org.apache.avro.Schema getClassSchema()
public List<String> getFileNames()
public DownloadFilesRequest setFileNames(List<String> fileNames)
fileNames - An array of the file names to download from KiFS. File
paths may contain wildcard characters after the KiFS
directory delimeter.
Accepted wildcard characters are asterisk (*) to
represent any string of zero or more characters, and
question mark (?) to indicate a single character.this to mimic the builder pattern.public List<Long> getReadOffsets()
fileNames. Must either be empty or
the same length
as fileNames. If empty, files are downloaded in their
entirety. If not
empty, readLengths must also not be empty.public DownloadFilesRequest setReadOffsets(List<Long> readOffsets)
readOffsets - An array of starting byte offsets from which to read
each
respective file in fileNames. Must either be
empty or the same length
as fileNames. If empty, files are downloaded
in their entirety. If not
empty, readLengths must also not be empty.this to mimic the builder pattern.public List<Long> getReadLengths()
fileNames. Must either be empty or the same length as
fileNames. If empty, files are downloaded in their
entirety. If not
empty, readOffsets must also not be empty.public DownloadFilesRequest setReadLengths(List<Long> readLengths)
readLengths - Array of number of bytes to read from each
respective file
in fileNames. Must either be empty or the
same length as
fileNames. If empty, files are downloaded in
their entirety. If not
empty, readOffsets must also not be empty.this to mimic the builder pattern.public Map<String,String> getOptions()
FILE_ENCODING: Encoding to be applied to the output file data.
When using JSON serialization it is recommended to specify this
as base64.
Supported values:
BASE64:
Apply base64 encoding to the output file data.
NONE: Do
not apply any encoding to the output file data.
NONE.
Map.public DownloadFilesRequest setOptions(Map<String,String> options)
options - Optional parameters.
FILE_ENCODING: Encoding to be applied to the output
file data. When using JSON serialization it is
recommended to specify this as base64.
Supported values:
BASE64: Apply base64 encoding to the output file data.
NONE: Do not apply any encoding to the output file
data.
NONE.
Map.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2024. All rights reserved.