public class CoreDataStore extends CrailStore
| Constructor and Description |
|---|
CoreDataStore(CrailConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
DirectoryInputStream |
_listEntries(String name,
boolean randomize) |
CrailBuffer |
allocateBuffer() |
void |
closeFile(FileInfo fileInfo) |
void |
closeFileSystem() |
Upcoming<CrailNode> |
create(String path,
CrailNodeType type,
CrailStorageClass storageClass,
CrailLocationClass locationClass,
boolean enumerable) |
Upcoming<CrailNode> |
delete(String path,
boolean recursive) |
void |
dumpNameNode() |
void |
freeBuffer(CrailBuffer buffer) |
CrailBlockLocation[] |
getBlockLocations(String path,
long start,
long len) |
BufferCache |
getBufferCache() |
BufferCheckpoint |
getBufferCheckpoint() |
int |
getFsId() |
CrailLocationClass |
getLocationClass() |
CrailStatistics |
getStatistics() |
DirectoryInputStream |
listEntries(String name) |
Upcoming<CrailNode> |
lookup(String path) |
void |
ping() |
void |
purgeCache() |
Upcoming<CrailNode> |
rename(String src,
String dst) |
close, newInstancepublic CoreDataStore(CrailConfiguration conf) throws Exception
Exceptionpublic Upcoming<CrailNode> create(String path, CrailNodeType type, CrailStorageClass storageClass, CrailLocationClass locationClass, boolean enumerable) throws Exception
create in class CrailStoreExceptionpublic Upcoming<CrailNode> lookup(String path) throws Exception
lookup in class CrailStoreExceptionpublic Upcoming<CrailNode> rename(String src, String dst) throws Exception
rename in class CrailStoreExceptionpublic Upcoming<CrailNode> delete(String path, boolean recursive) throws Exception
delete in class CrailStoreExceptionpublic DirectoryInputStream listEntries(String name) throws Exception
Exceptionpublic DirectoryInputStream _listEntries(String name, boolean randomize) throws Exception
Exceptionpublic CrailBlockLocation[] getBlockLocations(String path, long start, long len) throws Exception
Exceptionpublic CrailBuffer allocateBuffer() throws IOException
allocateBuffer in class CrailStoreIOExceptionpublic void freeBuffer(CrailBuffer buffer) throws IOException
freeBuffer in class CrailStoreIOExceptionpublic int getFsId()
public CrailLocationClass getLocationClass()
getLocationClass in class CrailStorepublic BufferCheckpoint getBufferCheckpoint()
public CrailStatistics getStatistics()
getStatistics in class CrailStorepublic void closeFileSystem()
throws Exception
closeFileSystem in class CrailStoreExceptionpublic BufferCache getBufferCache()
public void purgeCache()
Copyright © 2018 The Apache Software Foundation. All rights reserved.