public class RelOptHiveTable
extends org.apache.calcite.plan.RelOptAbstractTable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
RelOptHiveTable(org.apache.calcite.plan.RelOptSchema calciteSchema,
String qualifiedTblName,
org.apache.calcite.rel.type.RelDataType rowType,
Table hiveTblMetadata,
List<ColumnInfo> hiveNonPartitionCols,
List<ColumnInfo> hivePartitionCols,
List<VirtualColumn> hiveVirtualCols,
HiveConf hconf,
Map<String,PrunedPartitionList> partitionCache,
AtomicInteger noColsMissingStats) |
| Modifier and Type | Method and Description |
|---|---|
void |
computePartitionList(HiveConf conf,
org.apache.calcite.rex.RexNode pruneNode) |
boolean |
containsPartitionColumnsOnly(org.apache.calcite.util.ImmutableBitSet cols) |
RelOptHiveTable |
copy(org.apache.calcite.rel.type.RelDataType newRowType) |
List<org.apache.calcite.rel.RelCollation> |
getCollationList() |
List<ColStatistics> |
getColStat(List<Integer> projIndxLst) |
List<ColStatistics> |
getColStat(List<Integer> projIndxLst,
boolean allowNullColumnForMissingStats) |
org.apache.calcite.rel.RelDistribution |
getDistribution() |
Table |
getHiveTableMD() |
Map<Integer,ColumnInfo> |
getNonPartColInfoMap() |
List<ColumnInfo> |
getNonPartColumns() |
int |
getNoOfNonVirtualCols() |
Map<Integer,ColumnInfo> |
getPartColInfoMap() |
List<ColumnInfo> |
getPartColumns() |
double |
getRowCount() |
List<VirtualColumn> |
getVirtualCols() |
boolean |
isKey(org.apache.calcite.util.ImmutableBitSet arg0) |
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,
String qualifiedTblName,
org.apache.calcite.rel.type.RelDataType rowType,
Table hiveTblMetadata,
List<ColumnInfo> hiveNonPartitionCols,
List<ColumnInfo> hivePartitionCols,
List<VirtualColumn> hiveVirtualCols,
HiveConf hconf,
Map<String,PrunedPartitionList> partitionCache,
AtomicInteger noColsMissingStats)
public RelOptHiveTable copy(org.apache.calcite.rel.type.RelDataType newRowType)
public boolean isKey(org.apache.calcite.util.ImmutableBitSet arg0)
isKey in interface org.apache.calcite.plan.RelOptTableisKey in class org.apache.calcite.plan.RelOptAbstractTablepublic org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
toRel in interface org.apache.calcite.plan.RelOptTabletoRel in class org.apache.calcite.plan.RelOptAbstractTablepublic <T> T unwrap(Class<T> arg0)
unwrap in interface org.apache.calcite.plan.RelOptTableunwrap in class org.apache.calcite.plan.RelOptAbstractTablepublic List<org.apache.calcite.rel.RelCollation> getCollationList()
getCollationList in interface org.apache.calcite.plan.RelOptTablegetCollationList in class org.apache.calcite.plan.RelOptAbstractTablepublic org.apache.calcite.rel.RelDistribution getDistribution()
getDistribution in interface org.apache.calcite.plan.RelOptTablegetDistribution in class org.apache.calcite.plan.RelOptAbstractTablepublic double getRowCount()
getRowCount in interface org.apache.calcite.plan.RelOptTablegetRowCount in class org.apache.calcite.plan.RelOptAbstractTablepublic Table getHiveTableMD()
public void computePartitionList(HiveConf conf, org.apache.calcite.rex.RexNode pruneNode)
public List<ColStatistics> getColStat(List<Integer> projIndxLst)
public List<ColStatistics> getColStat(List<Integer> projIndxLst, boolean allowNullColumnForMissingStats)
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()
Copyright © 2017 The Apache Software Foundation. All rights reserved.