public class UploadFilesFromurlRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.uploadFilesFromurl(UploadFilesFromurlRequest)
.
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(ShowDirectoriesRequest)
. 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() |
Map<String,String> |
getOptions() |
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() |
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) |
UploadFilesFromurlRequest |
setOptions(Map<String,String> options) |
UploadFilesFromurlRequest |
setUrls(List<String> urls) |
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()
public UploadFilesFromurlRequest setFileNames(List<String> fileNames)
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.this
to mimic the builder pattern.public List<String> getUrls()
fileNames
.public UploadFilesFromurlRequest setUrls(List<String> urls)
urls
- List of URLs to upload, for each respective file in fileNames
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.public UploadFilesFromurlRequest setOptions(Map<String,String> options)
options
- Optional parameters. The default value is an empty
Map
.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 © 2024. All rights reserved.