public class S3PrestoFileSystem
extends org.apache.flink.runtime.fs.hdfs.HadoopFileSystem
implements org.apache.flink.core.fs.EntropyInjectingFileSystem
FileSystem interface for S3.
This class implements the common behavior implemented directly by Flink and delegates
common calls to an implementation of Hadoop's filesystem abstraction.| Constructor and Description |
|---|
S3PrestoFileSystem(com.facebook.presto.hive.PrestoS3FileSystem prestoFs)
Creates a S3PrestoFileSystem based on the given Presto S3 file system.
|
S3PrestoFileSystem(com.facebook.presto.hive.PrestoS3FileSystem prestoFs,
String entropyInjectionKey,
int entropyLength)
Creates a FlinkS3FileSystem based on the given Hadoop S3 file system.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateEntropy() |
String |
getEntropyInjectionKey() |
org.apache.flink.core.fs.FileSystemKind |
getKind() |
create, create, createRecoverableWriter, delete, exists, getDefaultBlockSize, getFileBlockLocations, getFileStatus, getHadoopFileSystem, getHomeDirectory, getUri, getWorkingDirectory, isDistributedFS, listStatus, mkdirs, open, open, renamepublic S3PrestoFileSystem(com.facebook.presto.hive.PrestoS3FileSystem prestoFs)
public S3PrestoFileSystem(com.facebook.presto.hive.PrestoS3FileSystem prestoFs,
@Nullable
String entropyInjectionKey,
int entropyLength)
This constructor additionally configures the entropy injection for the file system.
prestoFs - The Presto S3 File System that will be used under the hood.entropyInjectionKey - The substring that will be replaced by entropy or removed.entropyLength - The number of random alphanumeric characters to inject as entropy.@Nullable public String getEntropyInjectionKey()
getEntropyInjectionKey in interface org.apache.flink.core.fs.EntropyInjectingFileSystempublic String generateEntropy()
generateEntropy in interface org.apache.flink.core.fs.EntropyInjectingFileSystempublic org.apache.flink.core.fs.FileSystemKind getKind()
getKind in class org.apache.flink.runtime.fs.hdfs.HadoopFileSystemCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.