public class DocIndexMetaData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ColumnIdent |
ID_IDENT |
Constructor and Description |
---|
DocIndexMetaData(org.elasticsearch.cluster.metadata.IndexMetaData metaData,
TableIdent ident) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
aliases() |
com.google.common.collect.ImmutableMap<ColumnIdent,java.lang.String> |
analyzers() |
DocIndexMetaData |
build() |
ColumnPolicy |
columnPolicy() |
com.google.common.collect.ImmutableList<ReferenceInfo> |
columns() |
java.lang.String |
concreteIndexName() |
static DataType |
getColumnDataType(java.util.Map<java.lang.String,java.lang.Object> columnProperties)
extract dataType from given columnProperties
|
boolean |
hasAutoGeneratedPrimaryKey() |
com.google.common.collect.ImmutableMap<ColumnIdent,IndexReferenceInfo> |
indices() |
boolean |
isAlias() |
protected DocIndexMetaData |
merge(DocIndexMetaData other,
org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction,
boolean thisIsCreatedFromTemplate) |
org.apache.lucene.util.BytesRef |
numberOfReplicas() |
int |
numberOfShards() |
com.google.common.collect.ImmutableList<ColumnIdent> |
partitionedBy() |
com.google.common.collect.ImmutableList<ReferenceInfo> |
partitionedByColumns() |
com.google.common.collect.ImmutableList<ColumnIdent> |
primaryKey() |
com.google.common.collect.ImmutableMap<ColumnIdent,ReferenceInfo> |
references() |
ColumnIdent |
routingCol() |
boolean |
schemaEquals(DocIndexMetaData other)
Returns true if the schema of this and
other is the same,
this includes the table name, as this is reflected in the ReferenceIdents of
the columns. |
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> |
tableParameters() |
public static final ColumnIdent ID_IDENT
public DocIndexMetaData(org.elasticsearch.cluster.metadata.IndexMetaData metaData, TableIdent ident) throws java.io.IOException
java.io.IOException
public static DataType getColumnDataType(java.util.Map<java.lang.String,java.lang.Object> columnProperties)
columnProperties
- map of String to Object containing column propertiespublic DocIndexMetaData build()
public com.google.common.collect.ImmutableMap<ColumnIdent,ReferenceInfo> references()
public com.google.common.collect.ImmutableList<ReferenceInfo> columns()
public com.google.common.collect.ImmutableMap<ColumnIdent,IndexReferenceInfo> indices()
public com.google.common.collect.ImmutableList<ReferenceInfo> partitionedByColumns()
public com.google.common.collect.ImmutableList<ColumnIdent> primaryKey()
public ColumnIdent routingCol()
public boolean schemaEquals(DocIndexMetaData other)
other
is the same,
this includes the table name, as this is reflected in the ReferenceIdents of
the columns.protected DocIndexMetaData merge(DocIndexMetaData other, org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction transportPutIndexTemplateAction, boolean thisIsCreatedFromTemplate) throws java.io.IOException
java.io.IOException
public java.lang.String concreteIndexName()
public boolean isAlias()
public java.util.Set<java.lang.String> aliases()
public boolean hasAutoGeneratedPrimaryKey()
public int numberOfShards()
public org.apache.lucene.util.BytesRef numberOfReplicas()
public com.google.common.collect.ImmutableList<ColumnIdent> partitionedBy()
public ColumnPolicy columnPolicy()
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Object> tableParameters()
public com.google.common.collect.ImmutableMap<ColumnIdent,java.lang.String> analyzers()