Class KeyObjectStoreImpl
java.lang.Object
org.aksw.commons.store.object.key.impl.KeyObjectStoreImpl
- All Implemented Interfaces:
KeyObjectStore
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyObjectStoreImpl(Path rootPath, PathResolver pathResolver, ObjectFileStore objectFileStore) -
Method Summary
Modifier and TypeMethodDescription<T> TcomputeIfAbsent(Iterable<String> keySegments, Callable<T> initializer) static KeyObjectStorecreate(Path rootPath, ObjectFileStore objectFileStore) static KeyObjectStorecreateSimple(Path rootPath) <T> Tprotected <T> Tvoid
-
Field Details
-
rootPath
-
pathResolver
-
objectFileStore
-
-
Constructor Details
-
KeyObjectStoreImpl
public KeyObjectStoreImpl(Path rootPath, PathResolver pathResolver, ObjectFileStore objectFileStore)
-
-
Method Details
-
put
- Specified by:
putin interfaceKeyObjectStore- Throws:
IOException
-
get
- Specified by:
getin interfaceKeyObjectStore- Throws:
IOExceptionClassNotFoundException
-
load
- Throws:
ClassNotFoundExceptionIOException
-
computeIfAbsent
public <T> T computeIfAbsent(Iterable<String> keySegments, Callable<T> initializer) throws ClassNotFoundException, IOException, ExecutionException - Specified by:
computeIfAbsentin interfaceKeyObjectStore- Throws:
ClassNotFoundExceptionIOExceptionExecutionException
-
createSimple
-
create
-