public interface NativeFileSystemStore
An abstraction for a key-based File
store.
限定符和类型 | 方法和说明 |
---|---|
void |
copy(String srcKey,
String dstKey) |
void |
delete(String key) |
void |
dump()
Diagnostic method to dump state to the console.
|
void |
initialize(URI uri,
org.apache.hadoop.conf.Configuration conf) |
PartialListing |
list(String prefix,
int maxListingLength) |
PartialListing |
list(String prefix,
int maxListingLength,
String priorLastKey,
boolean recursive) |
void |
purge(String prefix)
Delete all keys with the given prefix.
|
InputStream |
retrieve(String key) |
InputStream |
retrieve(String key,
long byteRangeStart) |
InputStream |
retrieve(String key,
long byteRangeStart,
long length) |
FileMetadata |
retrieveMetadata(String key) |
void |
storeEmptyFile(String key) |
void |
storeFile(String key,
File file,
boolean append) |
void |
storeFiles(String key,
List<File> files,
boolean append) |
void initialize(URI uri, org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
void storeFile(String key, File file, boolean append) throws IOException
IOException
void storeFiles(String key, List<File> files, boolean append) throws IOException
IOException
void storeEmptyFile(String key) throws IOException
IOException
FileMetadata retrieveMetadata(String key) throws IOException
IOException
InputStream retrieve(String key) throws IOException
IOException
InputStream retrieve(String key, long byteRangeStart) throws IOException
IOException
InputStream retrieve(String key, long byteRangeStart, long length) throws IOException
IOException
PartialListing list(String prefix, int maxListingLength) throws IOException
IOException
PartialListing list(String prefix, int maxListingLength, String priorLastKey, boolean recursive) throws IOException
IOException
void delete(String key) throws IOException
IOException
void copy(String srcKey, String dstKey) throws IOException
IOException
void purge(String prefix) throws IOException
IOException
void dump() throws IOException
IOException
Copyright © 2016. All Rights Reserved.