public class Indices extends Object implements IndexManagement
| Modifier and Type | Class and Description |
|---|---|
static interface |
Indices.Factory |
| Constructor and Description |
|---|
Indices(org.elasticsearch.client.Client client,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
aliasExists(String alias) |
String |
aliasTarget(String alias) |
String |
allIndicesAlias() |
void |
close(String indexName) |
boolean |
create(String indexName) |
void |
delete(String indexName) |
boolean |
exists(String index) |
void |
flush(String index) |
Map<String,org.elasticsearch.action.admin.indices.stats.IndexStats> |
getAll() |
Set<String> |
getAllMessageFields() |
com.google.common.collect.ImmutableMap<String,org.elasticsearch.cluster.metadata.IndexMetaData> |
getMetadata() |
long |
getTotalNumberOfMessages() |
long |
getTotalSize() |
boolean |
isReopened(String indexName) |
void |
move(String source,
String target) |
long |
numberOfMessages(String indexName) |
void |
setReadOnly(String index) |
public Indices(org.elasticsearch.client.Client client,
Configuration configuration)
public void delete(String indexName)
delete in interface IndexManagementpublic void close(String indexName)
close in interface IndexManagementpublic long numberOfMessages(String indexName) throws IndexNotFoundException
IndexNotFoundExceptionpublic long getTotalNumberOfMessages()
public long getTotalSize()
public String allIndicesAlias()
public boolean exists(String index)
public boolean aliasExists(String alias)
public boolean create(String indexName)
public com.google.common.collect.ImmutableMap<String,org.elasticsearch.cluster.metadata.IndexMetaData> getMetadata()
public void setReadOnly(String index)
public void flush(String index)
public boolean isReopened(String indexName)
Copyright © 2012–2014 TORCH GmbH. All rights reserved.