public interface ContextAccessors
This is used to avoid giving any explicit reference to the owning FS in the store context; there are enough calls that using lambda-expressions gets over-complex.
Modifier and Type | Method and Description |
---|---|
File |
createTempFile(String prefix,
long size)
Create a temporary file.
|
org.apache.hadoop.fs.store.audit.AuditSpan |
getActiveAuditSpan()
Return the active audit span.
|
String |
getBucketLocation()
Get the region of a bucket.
|
RequestFactory |
getRequestFactory()
Get the request factory.
|
org.apache.hadoop.fs.Path |
keyToPath(String key)
Convert a key to a fully qualified path.
|
org.apache.hadoop.fs.Path |
makeQualified(org.apache.hadoop.fs.Path path)
Qualify a path.
|
String |
pathToKey(org.apache.hadoop.fs.Path path)
Turns a path (relative or otherwise) into an S3 key.
|
org.apache.hadoop.fs.Path keyToPath(String key)
key
- input keyString pathToKey(org.apache.hadoop.fs.Path path)
path
- input path, may be relative to the working dirFile createTempFile(String prefix, long size) throws IOException
prefix
- prefix for the temporary filesize
- the size of the file that is going to be writtenIOException
- IO problems@Retries.RetryTranslated String getBucketLocation() throws IOException
AccessDeniedException
- if the caller lacks permission.IOException
- on any failure.org.apache.hadoop.fs.Path makeQualified(org.apache.hadoop.fs.Path path)
path
- path to qualify/normalizeorg.apache.hadoop.fs.store.audit.AuditSpan getActiveAuditSpan()
RequestFactory getRequestFactory()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.