本文整理汇总了Java中org.eigenbase.reltype.RelDataTypeField.getName方法的典型用法代码示例。如果您正苦于以下问题:Java RelDataTypeField.getName方法的具体用法?Java RelDataTypeField.getName怎么用?Java RelDataTypeField.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eigenbase.reltype.RelDataTypeField
的用法示例。
在下文中一共展示了RelDataTypeField.getName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildColumnRowType
import org.eigenbase.reltype.RelDataTypeField; //导入方法依赖的package包/类
private ColumnRowType buildColumnRowType() {
List<TblColRef> columns = new ArrayList<TblColRef>();
List<Set<TblColRef>> sourceColumns = new ArrayList<Set<TblColRef>>();
OLAPRel olapChild = (OLAPRel) getChild();
ColumnRowType inputColumnRowType = olapChild.getColumnRowType();
for (int i = 0; i < this.rewriteProjects.size(); i++) {
RexNode rex = this.rewriteProjects.get(i);
RelDataTypeField columnField = this.rowType.getFieldList().get(i);
String fieldName = columnField.getName();
Set<TblColRef> sourceCollector = new HashSet<TblColRef>();
TblColRef column = translateRexNode(rex, inputColumnRowType, fieldName, sourceCollector);
columns.add(column);
sourceColumns.add(sourceCollector);
}
return new ColumnRowType(columns, sourceColumns);
}
示例2: fillbackOptimizedColumn
import org.eigenbase.reltype.RelDataTypeField; //导入方法依赖的package包/类
private void fillbackOptimizedColumn() {
// some aggcall will be optimized out in sub-query (e.g. tableau generated sql)
// we need to fill them back
RelDataType inputAggRow = getChild().getRowType();
RelDataType outputAggRow = getRowType();
if (inputAggRow.getFieldCount() != outputAggRow.getFieldCount()) {
for (RelDataTypeField inputField : inputAggRow.getFieldList()) {
String inputFieldName = inputField.getName();
if (outputAggRow.getField(inputFieldName, true) == null) {
TblColRef column = this.columnRowType.getColumnByIndex(inputField.getIndex());
this.context.metricsColumns.add(column);
}
}
}
}
示例3: getReturnType
import org.eigenbase.reltype.RelDataTypeField; //导入方法依赖的package包/类
public RelDataType getReturnType() {
final RelDataTypeFactory.FieldInfoBuilder builder = new RelDataTypeFactory.FieldInfoBuilder();
for (RelDataTypeField field : super.deriveRowType().getFieldList()) {
String name = field.getName();
int index = super.deriveRowType().getFieldOrdinal(name);
builder.add(new RelDataTypeFieldImpl(name, index, getCluster().getTypeFactory().createJavaType(List.class)));
}
return getCluster().getTypeFactory().createStructType(builder);
}
示例4: visitInputRef
import org.eigenbase.reltype.RelDataTypeField; //导入方法依赖的package包/类
@Override
public ChildVisitor visitInputRef(RexInputRef inputRef) {
final int index = inputRef.getIndex();
final RelDataTypeField field = input.getRowType().getFieldList().get(index);
return new Field(field.getName());
}