public class UploadFilesFromurlRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.uploadFilesFromurl
.
Uploads one or more files to KiFS.
Each file path must reside in a top-level KiFS directory, i.e. one of the
directories listed in GPUdb.showDirectories
. The user must have write permission on the
directory. Nested directories are permitted in file name paths. Directories
are deliniated with the directory separator of '/'. For example, given the
file path '/a/b/c/d.txt', 'a' must be a KiFS directory.
These characters are allowed in file name paths: letters, numbers, spaces, the path delimiter of '/', and the characters: '.' '-' ':' '[' ']' '(' ')' '#' '='.
Constructor and Description |
---|
UploadFilesFromurlRequest()
Constructs an UploadFilesFromurlRequest object with default parameters.
|
UploadFilesFromurlRequest(List<String> fileNames,
List<String> urls,
Map<String,String> options)
Constructs an UploadFilesFromurlRequest 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 full file name paths to be used for the files uploaded to
KiFS.
|
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
List<String> |
getUrls()
List of URLs to upload, for each respective file in
fileNames . |
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.
|
UploadFilesFromurlRequest |
setFileNames(List<String> fileNames)
An array of full file name paths to be used for the files uploaded to
KiFS.
|
UploadFilesFromurlRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
UploadFilesFromurlRequest |
setUrls(List<String> urls)
List of URLs to upload, for each respective file in
fileNames . |
String |
toString() |
public UploadFilesFromurlRequest()
public UploadFilesFromurlRequest(List<String> fileNames, List<String> urls, Map<String,String> options)
fileNames
- An array of full file name paths to be used for the
files uploaded to KiFS. File names may have any number
of nested directories in their paths, but the
top-level directory must be an existing KiFS
directory. Each file must reside in or under a
top-level directory. A full file name path cannot be
larger than 1024 characters.urls
- List of URLs to upload, for each respective file in fileNames
.options
- Optional parameters. The default value is an empty
Map
.public static org.apache.avro.Schema getClassSchema()
public List<String> getFileNames()
fileNames
.public UploadFilesFromurlRequest setFileNames(List<String> fileNames)
fileNames
- The new value for fileNames
.this
to mimic the builder pattern.public List<String> getUrls()
fileNames
.urls
.public UploadFilesFromurlRequest setUrls(List<String> urls)
fileNames
.urls
- The new value for urls
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public UploadFilesFromurlRequest setOptions(Map<String,String> options)
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.