public class DefaultIndex extends AbstractIndex implements InternalIndex
AbstractIndex.Count, AbstractIndex.Search| Constructor and Description |
|---|
DefaultIndex(String name,
org.elasticsearch.common.settings.Settings settings,
Esi4JStore store) |
| Modifier and Type | Method and Description |
|---|---|
DefaultIndex |
addTypeMapping(TypeMapping typeMapping) |
org.elasticsearch.action.ListenableActionFuture<BulkResponseWrapper> |
bulkIndex(Iterable<?> iterable) |
void |
close() |
org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> |
delete(Class<?> type,
Object id) |
org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> |
delete(Object object) |
org.elasticsearch.action.ListenableActionFuture<BulkResponseWrapper> |
executeBulk(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.bulk.BulkResponse>> bulkOperation) |
org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> |
executeDelete(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.delete.DeleteResponse>> deleteOperation) |
org.elasticsearch.action.ListenableActionFuture<GetResponseWrapper> |
executeGet(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.get.GetResponse>> getOperation) |
org.elasticsearch.action.ListenableActionFuture<IndexResponseWrapper> |
executeIndex(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.index.IndexResponse>> indexOperation) |
String |
findIndexName(Class<?> type) |
TypeMapping |
findTypeMapping(Class<?> type) |
TypeMapping |
findTypeMapping(Object o) |
TypeMapping |
findTypeMapping(String indexName,
String typeAlias) |
org.elasticsearch.action.ListenableActionFuture<GetResponseWrapper> |
get(Class<?> type,
Object id) |
Esi4JIndexManager |
getIndexManager() |
Class<?>[] |
getMappedTypes() |
String |
getName() |
org.elasticsearch.common.settings.Settings |
getSettings() |
Esi4JStore |
getStore() |
org.elasticsearch.action.ListenableActionFuture<IndexResponseWrapper> |
index(Object o) |
boolean |
isMapped(Class<?> type) |
boolean |
isMapped(Object o) |
protected void |
putMapping(TypeMapping typeMapping) |
void |
refresh()
refresh elasticsearch index, see Refresh API
|
void |
setIndexManager(Esi4JIndexManager indexManager) |
void |
setStore(Esi4JStore store)
replaces index store and sets store's index
|
void |
updateMapping(Class<?> type) |
void |
updateMapping(String typeAlias) |
count, execute, executeCount, executeMultiGet, executeMultiSearch, executeSearch, multiGet, read, read, search, searchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, execute, executeCount, executeMultiGet, executeMultiSearch, executeSearch, multiGet, search, searchreadreadpublic DefaultIndex(String name, org.elasticsearch.common.settings.Settings settings, Esi4JStore store)
public String getName()
getName in interface Esi4JIndexgetName in interface Esi4JSearchIndexpublic org.elasticsearch.common.settings.Settings getSettings()
getSettings in interface InternalIndexpublic Esi4JStore getStore()
getStore in interface InternalIndexgetStore in class AbstractIndexEsi4JStore backing this index, never nullpublic void setStore(Esi4JStore store)
InternalIndexsetStore in interface InternalIndexstore - new store for this indexEsi4JStore.setIndex(Esi4JIndex)public void close()
close in interface Esi4JIndexpublic String findIndexName(Class<?> type)
findIndexName in interface Esi4JOperation.OperationContextpublic TypeMapping findTypeMapping(Object o)
findTypeMapping in interface Esi4JOperation.OperationContextpublic TypeMapping findTypeMapping(Class<?> type)
findTypeMapping in interface Esi4JOperation.OperationContextpublic TypeMapping findTypeMapping(String indexName, String typeAlias)
findTypeMapping in interface Esi4JOperation.OperationContextindexName - ES index nametypeAlias - ES typepublic DefaultIndex addTypeMapping(TypeMapping typeMapping)
addTypeMapping in interface InternalIndexpublic void updateMapping(Class<?> type)
updateMapping in interface InternalIndexpublic boolean isMapped(Class<?> type)
isMapped in interface Esi4JSearchIndexpublic boolean isMapped(Object o)
isMapped in interface Esi4JSearchIndexpublic void updateMapping(String typeAlias)
updateMapping in interface InternalIndexpublic Class<?>[] getMappedTypes()
getMappedTypes in interface Esi4JSearchIndexprotected void putMapping(TypeMapping typeMapping)
public org.elasticsearch.action.ListenableActionFuture<IndexResponseWrapper> index(Object o)
index in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<IndexResponseWrapper> executeIndex(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.index.IndexResponse>> indexOperation)
executeIndex in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<GetResponseWrapper> get(Class<?> type, Object id)
get in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<GetResponseWrapper> executeGet(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.get.GetResponse>> getOperation)
executeGet in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> executeDelete(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.delete.DeleteResponse>> deleteOperation)
executeDelete in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> delete(Object object)
delete in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<DeleteResponseWrapper> delete(Class<?> type, Object id)
delete in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<BulkResponseWrapper> bulkIndex(Iterable<?> iterable)
bulkIndex in interface Esi4JIndexpublic org.elasticsearch.action.ListenableActionFuture<BulkResponseWrapper> executeBulk(Esi4JOperation<org.elasticsearch.action.ListenableActionFuture<org.elasticsearch.action.bulk.BulkResponse>> bulkOperation)
executeBulk in interface Esi4JIndexpublic void refresh()
Esi4JIndexrefresh in interface Esi4JIndexpublic Esi4JIndexManager getIndexManager()
getIndexManager in interface Esi4JManagedIndexpublic void setIndexManager(Esi4JIndexManager indexManager)
setIndexManager in interface Esi4JManagedIndexCopyright © 2015 Molindo GmbH. All Rights Reserved.