public class FileBlobStoreImpl extends Object
Very basic blob store impl with no ACL handling.
Modifier and Type | Class and Description |
---|---|
class |
FileBlobStoreImpl.KeyInHashDirIterator |
Constructor and Description |
---|
FileBlobStoreImpl(File path,
Map<String,Object> conf) |
Modifier and Type | Method and Description |
---|---|
protected void |
delete(File path) |
void |
deleteKey(String key)
Delete a key from the blob store
|
boolean |
exists(String key)
Check if the key exists in the blob store.
|
void |
fullCleanup(long age) |
protected Iterator<LocalFsBlobStoreFile> |
listBlobStoreFiles(File path) |
Iterator<String> |
listKeys() |
protected Iterator<String> |
listKeys(File path) |
LocalFsBlobStoreFile |
read(String key)
Get an input stream for reading a part.
|
void |
shutdown() |
LocalFsBlobStoreFile |
write(String key,
boolean create)
Get an object tied to writing the data.
|
public FileBlobStoreImpl(File path, Map<String,Object> conf) throws IOException
IOException
public Iterator<String> listKeys() throws IOException
IOException
- on any error.public LocalFsBlobStoreFile read(String key) throws IOException
Get an input stream for reading a part.
key
- the key of the part to read.IOException
- on any errorpublic LocalFsBlobStoreFile write(String key, boolean create) throws IOException
Get an object tied to writing the data.
key
- the key of the part to write to.IOException
- on any errorpublic boolean exists(String key)
Check if the key exists in the blob store.
key
- the key to check forpublic void deleteKey(String key) throws IOException
Delete a key from the blob store
key
- the key to deleteIOException
- on any errorpublic void fullCleanup(long age) throws IOException
IOException
protected Iterator<LocalFsBlobStoreFile> listBlobStoreFiles(File path) throws IOException
IOException
protected Iterator<String> listKeys(File path) throws IOException
IOException
protected void delete(File path) throws IOException
IOException
public void shutdown()
Copyright © 2022 The Apache Software Foundation. All rights reserved.