public class DocSchemaInfo extends java.lang.Object implements SchemaInfo, org.elasticsearch.cluster.ClusterStateListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
DocSchemaInfo(org.elasticsearch.cluster.ClusterService clusterService,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction,
Functions functions)
DocSchemaInfo constructor for the default (doc) schema.
|
DocSchemaInfo(java.lang.String schemaName,
java.util.concurrent.ExecutorService executorService,
org.elasticsearch.cluster.ClusterService clusterService,
org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction,
Functions functions)
constructor used for custom schemas
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
clusterChanged(org.elasticsearch.cluster.ClusterChangedEvent event) |
DocTableInfo |
getTableInfo(java.lang.String name) |
void |
invalidateTableCache(java.lang.String tableName) |
java.util.Iterator<TableInfo> |
iterator() |
java.lang.String |
name() |
boolean |
systemSchema() |
java.util.Collection<java.lang.String> |
tableNames() |
java.lang.String |
toString() |
public static final java.lang.String NAME
@Inject public DocSchemaInfo(org.elasticsearch.cluster.ClusterService clusterService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction, Functions functions)
public DocSchemaInfo(java.lang.String schemaName, java.util.concurrent.ExecutorService executorService, org.elasticsearch.cluster.ClusterService clusterService, org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction, Functions functions)
public DocTableInfo getTableInfo(java.lang.String name)
getTableInfo
in interface SchemaInfo
public java.util.Collection<java.lang.String> tableNames()
public java.lang.String name()
name
in interface SchemaInfo
public boolean systemSchema()
systemSchema
in interface SchemaInfo
public void invalidateTableCache(java.lang.String tableName)
invalidateTableCache
in interface SchemaInfo
public void clusterChanged(org.elasticsearch.cluster.ClusterChangedEvent event)
clusterChanged
in interface org.elasticsearch.cluster.ClusterStateListener
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<TableInfo> iterator()
iterator
in interface java.lang.Iterable<TableInfo>
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception