public class BlobTableInfo extends java.lang.Object implements TableInfo, ShardedTable, StoredTable
RelationInfo.RelationType
Constructor and Description |
---|
BlobTableInfo(RelationName ident,
java.lang.String index,
int numberOfShards,
org.apache.lucene.util.BytesRef numberOfReplicas,
java.util.Map<java.lang.String,java.lang.Object> tableParameters,
org.apache.lucene.util.BytesRef blobsPath,
Version versionCreated,
Version versionUpgraded,
boolean closed) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.util.BytesRef |
blobsPath() |
ColumnIdent |
clusteredBy() |
java.util.Collection<Reference> |
columns()
returns the top level columns of this table with predictable order
|
java.lang.String[] |
concreteIndices() |
Reference |
getReference(ColumnIdent columnIdent)
returns information about a column with the given ident.
|
Routing |
getRouting(org.elasticsearch.cluster.ClusterState state,
RoutingProvider routingProvider,
WhereClause whereClause,
RoutingProvider.ShardSelection shardSelection,
SessionContext sessionContext)
Retrieve the routing for the table
|
RelationName |
ident() |
boolean |
isClosed() |
java.util.Iterator<Reference> |
iterator() |
org.apache.lucene.util.BytesRef |
numberOfReplicas() |
int |
numberOfShards() |
java.util.Map<java.lang.String,java.lang.Object> |
parameters() |
java.util.List<ColumnIdent> |
primaryKey() |
RelationInfo.RelationType |
relationType() |
RowGranularity |
rowGranularity() |
java.util.Set<Operation> |
supportedOperations() |
TableParameterInfo |
tableParameterInfo() |
Version |
versionCreated() |
Version |
versionUpgraded() |
public BlobTableInfo(RelationName ident, java.lang.String index, int numberOfShards, org.apache.lucene.util.BytesRef numberOfReplicas, java.util.Map<java.lang.String,java.lang.Object> tableParameters, org.apache.lucene.util.BytesRef blobsPath, @Nullable Version versionCreated, @Nullable Version versionUpgraded, boolean closed)
@Nullable public Reference getReference(ColumnIdent columnIdent)
TableInfo
getReference
in interface TableInfo
public java.util.Collection<Reference> columns()
RelationInfo
columns
in interface RelationInfo
public RowGranularity rowGranularity()
rowGranularity
in interface RelationInfo
public RelationName ident()
ident
in interface RelationInfo
public Routing getRouting(org.elasticsearch.cluster.ClusterState state, RoutingProvider routingProvider, WhereClause whereClause, RoutingProvider.ShardSelection shardSelection, SessionContext sessionContext)
TableInfo
Multiple calls to this method return the same routing as long as the same arguments are provided.
getRouting
in interface TableInfo
public java.util.List<ColumnIdent> primaryKey()
primaryKey
in interface RelationInfo
public int numberOfShards()
numberOfShards
in interface ShardedTable
public org.apache.lucene.util.BytesRef numberOfReplicas()
numberOfReplicas
in interface ShardedTable
@Nullable public ColumnIdent clusteredBy()
clusteredBy
in interface ShardedTable
public java.util.Iterator<Reference> iterator()
iterator
in interface java.lang.Iterable<Reference>
public org.apache.lucene.util.BytesRef blobsPath()
public TableParameterInfo tableParameterInfo()
public java.util.Map<java.lang.String,java.lang.Object> parameters()
parameters
in interface RelationInfo
public java.util.Set<Operation> supportedOperations()
supportedOperations
in interface RelationInfo
public RelationInfo.RelationType relationType()
relationType
in interface RelationInfo
public boolean isClosed()
isClosed
in interface ShardedTable
public java.lang.String[] concreteIndices()
concreteIndices
in interface ShardedTable
@Nullable public Version versionCreated()
versionCreated
in interface StoredTable
@Nullable public Version versionUpgraded()
versionUpgraded
in interface StoredTable