Class StoreBuilder
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.tree.store.StoreBuilder
-
public class StoreBuilder extends Object
A helper class to build storage backends for a tree store.
-
-
Constructor Summary
Constructors Constructor Description StoreBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Store
build(String config)
Build a store.static Store
build(Properties config)
static Properties
subProperties(Properties p, String prefix)
-
-
-
Method Detail
-
build
public static Store build(String config) throws IllegalArgumentException
Build a store. The configuration options are passed as a list of properties. - empty string or null: in-memory. - "type=memory" - "type=file": file system, with "dir" directory - "type=stats.another": statistics wrapper around another - "type=slow.another": slow wrapper around another (to simulate slowness) - "type=pack": pack file, with "file" file name - "type=log.another": log wrapper around another (to analyze problems) - "maxFileSizeBytes=16000000": the maximum file size in bytes- Parameters:
config
- the config- Returns:
- a store
- Throws:
IllegalArgumentException
-
build
public static Store build(Properties config)
-
subProperties
public static Properties subProperties(Properties p, String prefix)
-
-