public class JetOssNativeFileSystemStore extends Object implements NativeFileSystemStore
构造器和说明 |
---|
JetOssNativeFileSystemStore() |
限定符和类型 | 方法和说明 |
---|---|
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 recurse) |
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) |
public void initialize(URI uri, org.apache.hadoop.conf.Configuration conf) throws Exception
initialize
在接口中 NativeFileSystemStore
Exception
public void storeFile(String key, File file, boolean append) throws IOException
storeFile
在接口中 NativeFileSystemStore
IOException
public void storeFiles(String key, List<File> files, boolean append) throws IOException
storeFiles
在接口中 NativeFileSystemStore
IOException
public void storeEmptyFile(String key) throws IOException
storeEmptyFile
在接口中 NativeFileSystemStore
IOException
public FileMetadata retrieveMetadata(String key) throws IOException
retrieveMetadata
在接口中 NativeFileSystemStore
IOException
public InputStream retrieve(String key) throws IOException
retrieve
在接口中 NativeFileSystemStore
IOException
public InputStream retrieve(String key, long byteRangeStart) throws IOException
retrieve
在接口中 NativeFileSystemStore
IOException
public InputStream retrieve(String key, long byteRangeStart, long length) throws IOException
retrieve
在接口中 NativeFileSystemStore
IOException
public PartialListing list(String prefix, int maxListingLength) throws IOException
list
在接口中 NativeFileSystemStore
IOException
public PartialListing list(String prefix, int maxListingLength, String priorLastKey, boolean recurse) throws IOException
list
在接口中 NativeFileSystemStore
IOException
public void delete(String key) throws IOException
delete
在接口中 NativeFileSystemStore
IOException
public void copy(String srcKey, String dstKey) throws IOException
copy
在接口中 NativeFileSystemStore
IOException
public void purge(String prefix) throws IOException
NativeFileSystemStore
purge
在接口中 NativeFileSystemStore
IOException
public void dump() throws IOException
NativeFileSystemStore
dump
在接口中 NativeFileSystemStore
IOException
Copyright © 2016. All Rights Reserved.