public class RelOptHiveTable extends Object implements org.apache.calcite.plan.RelOptTable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
RelOptHiveTable(org.apache.calcite.plan.RelOptSchema calciteSchema,
org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
List<String> qualifiedTblName,
org.apache.calcite.rel.type.RelDataType rowType,
Table hiveTblMetadata,
List<ColumnInfo> hiveNonPartitionCols,
List<ColumnInfo> hivePartitionCols,
List<VirtualColumn> hiveVirtualCols,
HiveConf hconf,
Hive db,
ParsedQueryTables tabNameToTabObject,
Map<String,PrunedPartitionList> partitionCache,
Map<String,ColumnStatsList> colStatsCache,
AtomicInteger noColsMissingStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
computePartitionList(HiveConf conf,
org.apache.calcite.rex.RexNode pruneNode,
Set<Integer> partOrVirtualCols) |
boolean |
containsPartitionColumnsOnly(org.apache.calcite.util.ImmutableBitSet cols) |
RelOptHiveTable |
copy(org.apache.calcite.rel.type.RelDataType newRowType) |
boolean |
equals(Object obj) |
org.apache.calcite.plan.RelOptTable |
extend(List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields) |
List<org.apache.calcite.rel.RelCollation> |
getCollationList() |
List<ColStatistics> |
getColStat(List<Integer> projIndxLst) |
List<ColStatistics> |
getColStat(List<Integer> projIndxLst,
boolean allowMissingStats)
Note: DOES NOT CHECK txn stats.
|
List<org.apache.calcite.schema.ColumnStrategy> |
getColumnStrategies() |
org.apache.calcite.rel.RelDistribution |
getDistribution() |
org.apache.calcite.linq4j.tree.Expression |
getExpression(Class clazz) |
Table |
getHiveTableMD() |
List<org.apache.calcite.util.ImmutableBitSet> |
getKeys() |
String |
getName() |
List<org.apache.calcite.util.ImmutableBitSet> |
getNonNullableKeys() |
Map<Integer,ColumnInfo> |
getNonPartColInfoMap() |
List<ColumnInfo> |
getNonPartColumns() |
int |
getNoOfNonVirtualCols() |
Map<Integer,ColumnInfo> |
getPartColInfoMap() |
List<ColumnInfo> |
getPartColumns() |
String |
getPartitionListKey() |
List<String> |
getQualifiedName() |
List<org.apache.calcite.rel.RelReferentialConstraint> |
getReferentialConstraints() |
org.apache.calcite.plan.RelOptSchema |
getRelOptSchema() |
double |
getRowCount() |
org.apache.calcite.rel.type.RelDataType |
getRowType() |
org.apache.calcite.rel.type.RelDataTypeFactory |
getTypeFactory() |
List<VirtualColumn> |
getVirtualCols() |
int |
hashCode() |
boolean |
hasReferentialConstraints() |
boolean |
isKey(org.apache.calcite.util.ImmutableBitSet columns) |
boolean |
isNonNullableKey(org.apache.calcite.util.ImmutableBitSet columns) |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context) |
<T> T |
unwrap(Class<T> arg0) |
public RelOptHiveTable(org.apache.calcite.plan.RelOptSchema calciteSchema,
org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
List<String> qualifiedTblName,
org.apache.calcite.rel.type.RelDataType rowType,
Table hiveTblMetadata,
List<ColumnInfo> hiveNonPartitionCols,
List<ColumnInfo> hivePartitionCols,
List<VirtualColumn> hiveVirtualCols,
HiveConf hconf,
Hive db,
ParsedQueryTables tabNameToTabObject,
Map<String,PrunedPartitionList> partitionCache,
Map<String,ColumnStatsList> colStatsCache,
AtomicInteger noColsMissingStats)
public String getName()
public List<String> getQualifiedName()
getQualifiedName in interface org.apache.calcite.plan.RelOptTablepublic org.apache.calcite.rel.type.RelDataType getRowType()
getRowType in interface org.apache.calcite.plan.RelOptTablepublic org.apache.calcite.plan.RelOptSchema getRelOptSchema()
getRelOptSchema in interface org.apache.calcite.plan.RelOptTablepublic org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()
public org.apache.calcite.linq4j.tree.Expression getExpression(Class clazz)
getExpression in interface org.apache.calcite.plan.RelOptTablepublic List<org.apache.calcite.util.ImmutableBitSet> getNonNullableKeys()
public org.apache.calcite.plan.RelOptTable extend(List<org.apache.calcite.rel.type.RelDataTypeField> extendedFields)
extend in interface org.apache.calcite.plan.RelOptTablepublic List<org.apache.calcite.schema.ColumnStrategy> getColumnStrategies()
getColumnStrategies in interface org.apache.calcite.plan.RelOptTablepublic RelOptHiveTable copy(org.apache.calcite.rel.type.RelDataType newRowType)
public boolean isNonNullableKey(org.apache.calcite.util.ImmutableBitSet columns)
public boolean isKey(org.apache.calcite.util.ImmutableBitSet columns)
isKey in interface org.apache.calcite.plan.RelOptTablepublic boolean hasReferentialConstraints()
public List<org.apache.calcite.util.ImmutableBitSet> getKeys()
getKeys in interface org.apache.calcite.plan.RelOptTablepublic List<org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()
getReferentialConstraints in interface org.apache.calcite.plan.RelOptTablepublic org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
toRel in interface org.apache.calcite.plan.RelOptTablepublic <T> T unwrap(Class<T> arg0)
unwrap in interface org.apache.calcite.schema.Wrapperpublic List<org.apache.calcite.rel.RelCollation> getCollationList()
getCollationList in interface org.apache.calcite.plan.RelOptTablepublic org.apache.calcite.rel.RelDistribution getDistribution()
getDistribution in interface org.apache.calcite.plan.RelOptTablepublic double getRowCount()
getRowCount in interface org.apache.calcite.plan.RelOptTablepublic Table getHiveTableMD()
public void computePartitionList(HiveConf conf, org.apache.calcite.rex.RexNode pruneNode, Set<Integer> partOrVirtualCols)
public List<ColStatistics> getColStat(List<Integer> projIndxLst)
public List<ColStatistics> getColStat(List<Integer> projIndxLst, boolean allowMissingStats)
public boolean containsPartitionColumnsOnly(org.apache.calcite.util.ImmutableBitSet cols)
public List<VirtualColumn> getVirtualCols()
public List<ColumnInfo> getPartColumns()
public List<ColumnInfo> getNonPartColumns()
public int getNoOfNonVirtualCols()
public Map<Integer,ColumnInfo> getPartColInfoMap()
public Map<Integer,ColumnInfo> getNonPartColInfoMap()
public String getPartitionListKey()
Copyright © 2024 The Apache Software Foundation. All rights reserved.