| Package | Description |
|---|---|
| org.apache.hadoop.fs.swift.http | |
| org.apache.hadoop.fs.swift.snative | |
| org.apache.hadoop.fs.swift.util |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SwiftRestClient.copyObject(SwiftObjectPath src,
SwiftObjectPath dst,
org.apache.http.Header... headers)
Copy an object.
|
boolean |
SwiftRestClient.delete(SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Deletes object from swift.
|
byte[] |
SwiftRestClient.findObjectsByPrefix(SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Find objects under a prefix.
|
long |
SwiftRestClient.getContentLength(SwiftObjectPath path)
Get the length of the remote object.
|
HttpBodyContent |
SwiftRestClient.getData(SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Get the path contents as an input stream.
|
HttpBodyContent |
SwiftRestClient.getData(SwiftObjectPath path,
long offset,
long length)
Make an HTTP GET request to Swift to get a range of data in the object.
|
byte[] |
SwiftRestClient.getObjectLocation(SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Returns object location as byte[].
|
org.apache.http.Header[] |
SwiftRestClient.headRequest(String reason,
SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Issue a head request.
|
byte[] |
SwiftRestClient.listDeepObjectsInDirectory(SwiftObjectPath path,
boolean listDeep,
org.apache.http.Header... requestHeaders)
Find objects in a directory.
|
static URI |
SwiftRestClient.pathToURI(SwiftObjectPath path,
URI endpointURI)
Converts Swift path to URI to make request.
|
int |
SwiftRestClient.putRequest(SwiftObjectPath path,
org.apache.http.Header... requestHeaders)
Issue a put request.
|
void |
SwiftRestClient.upload(SwiftObjectPath path,
InputStream data,
long length,
org.apache.http.Header... requestHeaders)
Uploads file as Input Stream to Swift.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SwiftNativeFileSystemStore.objectExists(SwiftObjectPath path)
Does the object exist
|
| Modifier and Type | Method and Description |
|---|---|
static SwiftObjectPath |
SwiftObjectPath.fromPath(URI uri,
org.apache.hadoop.fs.Path path)
Create a path tuple of (container, path), where the container is
chosen from the host of the URI.
|
static SwiftObjectPath |
SwiftObjectPath.fromPath(URI uri,
org.apache.hadoop.fs.Path path,
boolean addTrailingSlash)
Create a path tuple of (container, path), where the container is
chosen from the host of the URI.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SwiftObjectPath.isEqualToOrParentOf(SwiftObjectPath possibleChild)
Query to see if the possibleChild object is a child path of this.
|
static boolean |
SwiftUtils.isRootDir(SwiftObjectPath swiftObject)
Predicate: Is a swift object referring to the root directory?
|
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.