Class KeyObjectStoreWithKeyTransform
java.lang.Object
org.aksw.commons.store.object.key.impl.KeyObjectStoreDelegateBase
org.aksw.commons.store.object.key.impl.KeyObjectStoreWithKeyTransform
- All Implemented Interfaces:
KeyObjectStore,KeyObjectStoreDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.aksw.commons.store.object.key.impl.KeyObjectStoreDelegateBase
delegate -
Constructor Summary
ConstructorsConstructorDescriptionKeyObjectStoreWithKeyTransform(KeyObjectStore delegate, Function<? super Iterable<String>, ? extends Iterable<String>> keyTransformer) -
Method Summary
Modifier and TypeMethodDescription<T> TcomputeIfAbsent(Iterable<String> keySegments, Callable<T> initializer) <T> Tvoidstatic KeyObjectStorewrap(KeyObjectStore delegate, Function<? super Iterable<String>, ? extends Iterable<String>> keyTransformer) static KeyObjectStorewrapWithPrefix(KeyObjectStore delegate, List<String> prefix) Methods inherited from class org.aksw.commons.store.object.key.impl.KeyObjectStoreDelegateBase
getDelegate
-
Field Details
-
keyTransformer
-
-
Constructor Details
-
KeyObjectStoreWithKeyTransform
-
-
Method Details
-
wrapWithPrefix
-
wrap
public static KeyObjectStore wrap(KeyObjectStore delegate, Function<? super Iterable<String>, ? extends Iterable<String>> keyTransformer) -
get
- Throws:
IOExceptionClassNotFoundException
-
computeIfAbsent
public <T> T computeIfAbsent(Iterable<String> keySegments, Callable<T> initializer) throws IOException, ClassNotFoundException, ExecutionException -
put
- Throws:
IOException
-