public class DownloadFilesRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.downloadFiles
.
Downloads one or more files from KiFS.
Modifier and Type | Class and Description |
---|---|
static class |
DownloadFilesRequest.Options
A set of string constants for the
DownloadFilesRequest parameter
options . |
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()
An array of the file names to download from KiFS.
|
Map<String,String> |
getOptions()
Optional parameters.
|
List<Long> |
getReadLengths()
Array of number of bytes to read from each respective file in
fileNames . |
List<Long> |
getReadOffsets()
An array of starting byte offsets from which to read each respective
file in
fileNames . |
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)
An array of the file names to download from KiFS.
|
DownloadFilesRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
DownloadFilesRequest |
setReadLengths(List<Long> readLengths)
Array of number of bytes to read from each respective file in
fileNames . |
DownloadFilesRequest |
setReadOffsets(List<Long> readOffsets)
An array of starting byte offsets from which to read each respective
file in
fileNames . |
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()
Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
fileNames
.public DownloadFilesRequest setFileNames(List<String> fileNames)
Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character.
fileNames
- The new value for fileNames
.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.readOffsets
.public DownloadFilesRequest setReadOffsets(List<Long> readOffsets)
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.readOffsets
- The new value for readOffsets
.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.readLengths
.public DownloadFilesRequest setReadLengths(List<Long> readLengths)
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.readLengths
- The new value for readLengths
.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
.options
.public DownloadFilesRequest setOptions(Map<String,String> options)
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
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.