public class DefaultStore extends Object implements Esi4JStore
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultStore.DynamicSettingsBean |
Esi4JStore.StoreOperation<T>| Constructor and Description |
|---|
DefaultStore(Esi4JClient client,
String indexName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
execute(Esi4JStore.StoreOperation<T> operation)
the esi4j index currently using this store (must not change)
|
Esi4JClient |
getClient() |
Esi4JIndex |
getIndex() |
String |
getIndexName()
elasticsearch index name (must not change)
|
protected void |
init(Esi4JIndex index)
called after assigning a store to a new index
|
void |
setIndex(Esi4JIndex index) |
public DefaultStore(Esi4JClient client, String indexName)
public Esi4JClient getClient()
getClient in interface Esi4JStoreEsi4JClient used by this store (must not change)public String getIndexName()
Esi4JStoregetIndexName in interface Esi4JStorepublic Esi4JIndex getIndex()
public void setIndex(Esi4JIndex index)
setIndex in interface Esi4JStoreprotected void init(Esi4JIndex index)
index - the new index (same as _index)public <T> T execute(Esi4JStore.StoreOperation<T> operation)
Esi4JStoreexecute in interface Esi4JStorepublic void close()
close in interface Esi4JStoreCopyright © 2013 Molindo GmbH. All Rights Reserved.