Tabnine Logo
LogicalTableFunctionScan
Code IndexAdd Tabnine to your IDE (free)

How to use
LogicalTableFunctionScan
in
org.apache.calcite.rel.logical

Best Java code snippets using org.apache.calcite.rel.logical.LogicalTableFunctionScan (Showing top 17 results out of 315)

origin: dremio/dremio-oss

private RelNode copyOf(LogicalTableFunctionScan rel) {
 return new LogicalTableFunctionScan(
  cluster,
  copyOf(rel.getTraitSet()),
  visitAll(rel.getInputs()),
  copyOf(rel.getCall()),
  rel.getElementType(),
  copyOf(rel.getRowType()),
  rel.getColumnMappings()
 );
}
origin: org.apache.calcite/calcite-core

 ImmutableBitSet fieldsUsed,
 Set<RelDataTypeField> extraFields) {
final RelDataType rowType = tabFun.getRowType();
final int fieldCount = rowType.getFieldCount();
final List<RelNode> newInputs = new ArrayList<>();
for (RelNode input : tabFun.getInputs()) {
 final int inputFieldCount = input.getRowType().getFieldCount();
 ImmutableBitSet inputFieldsUsed = ImmutableBitSet.range(inputFieldCount);
if (!tabFun.getInputs().equals(newInputs)) {
 newTabFun = tabFun.copy(tabFun.getTraitSet(), newInputs,
   tabFun.getCall(), tabFun.getElementType(), tabFun.getRowType(),
   tabFun.getColumnMappings());
origin: org.apache.calcite/calcite-core

@Override public LogicalTableFunctionScan copy(
  RelTraitSet traitSet,
  List<RelNode> inputs,
  RexNode rexCall,
  Type elementType,
  RelDataType rowType,
  Set<RelColumnMapping> columnMappings) {
 assert traitSet.containsIfApplicable(Convention.NONE);
 return new LogicalTableFunctionScan(
   getCluster(),
   traitSet,
   inputs,
   rexCall,
   elementType,
   rowType,
   columnMappings);
}
origin: Qihoo360/Quicksql

 @Override public RelNode convert(RelNode rel) {
  final RelTraitSet traitSet =
    rel.getTraitSet().replace(EnumerableConvention.INSTANCE);
  LogicalTableFunctionScan tbl = (LogicalTableFunctionScan) rel;
  return new EnumerableTableFunctionScan(rel.getCluster(), traitSet,
    tbl.getInputs(), tbl.getElementType(), tbl.getRowType(),
    tbl.getCall(), tbl.getColumnMappings());
 }
}
origin: org.apache.calcite/calcite-core

public void onMatch(RelOptRuleCall call) {
 LogicalFilter filter = call.rel(0);
 LogicalTableFunctionScan funcRel = call.rel(1);
 Set<RelColumnMapping> columnMappings = funcRel.getColumnMappings();
 if (columnMappings == null || columnMappings.isEmpty()) {
 List<RelNode> funcInputs = funcRel.getInputs();
 if (funcInputs.size() != 1) {
 if (funcRel.getRowType().getFieldCount()
   != funcInputs.get(0).getRowType().getFieldCount()) {
  return;
 final RelOptCluster cluster = funcRel.getCluster();
 final RexNode condition = filter.getCondition();
 List<RelDataTypeField> origFields = funcRel.getRowType().getFieldList();
   LogicalTableFunctionScan.create(cluster, newFuncInputs,
     funcRel.getCall(), funcRel.getElementType(), funcRel.getRowType(),
     columnMappings);
 call.transformTo(newFuncRel);
origin: org.apache.kylin/atopcalcite

  getColumnMappings(operator);
LogicalTableFunctionScan callRel =
  LogicalTableFunctionScan.create(
    cluster,
    inputs,
origin: Qihoo360/Quicksql

/** Creates a LogicalTableFunctionScan. */
public static LogicalTableFunctionScan create(
  RelOptCluster cluster,
  List<RelNode> inputs,
  RexNode rexCall,
  Type elementType, RelDataType rowType,
  Set<RelColumnMapping> columnMappings) {
 final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE);
 return new LogicalTableFunctionScan(cluster, traitSet, inputs, rexCall,
   elementType, rowType, columnMappings);
}
origin: Qihoo360/Quicksql

public void onMatch(RelOptRuleCall call) {
 LogicalFilter filter = call.rel(0);
 LogicalTableFunctionScan funcRel = call.rel(1);
 Set<RelColumnMapping> columnMappings = funcRel.getColumnMappings();
 if (columnMappings == null || columnMappings.isEmpty()) {
 List<RelNode> funcInputs = funcRel.getInputs();
 if (funcInputs.size() != 1) {
 if (funcRel.getRowType().getFieldCount()
   != funcInputs.get(0).getRowType().getFieldCount()) {
  return;
 final RelOptCluster cluster = funcRel.getCluster();
 final RexNode condition = filter.getCondition();
 List<RelDataTypeField> origFields = funcRel.getRowType().getFieldList();
   LogicalTableFunctionScan.create(cluster, newFuncInputs,
     funcRel.getCall(), funcRel.getElementType(), funcRel.getRowType(),
     columnMappings);
 call.transformTo(newFuncRel);
origin: org.apache.calcite/calcite-core

 @Override public RelNode convert(RelNode rel) {
  final RelTraitSet traitSet =
    rel.getTraitSet().replace(EnumerableConvention.INSTANCE);
  LogicalTableFunctionScan tbl = (LogicalTableFunctionScan) rel;
  return new EnumerableTableFunctionScan(rel.getCluster(), traitSet,
    tbl.getInputs(), tbl.getElementType(), tbl.getRowType(),
    tbl.getCall(), tbl.getColumnMappings());
 }
}
origin: org.apache.flink/flink-table_2.10

  getColumnMappings(operator);
LogicalTableFunctionScan callRel =
  LogicalTableFunctionScan.create(
    cluster,
    inputs,
origin: org.apache.calcite/calcite-core

/** Creates a LogicalTableFunctionScan. */
public static LogicalTableFunctionScan create(
  RelOptCluster cluster,
  List<RelNode> inputs,
  RexNode rexCall,
  Type elementType, RelDataType rowType,
  Set<RelColumnMapping> columnMappings) {
 final RelTraitSet traitSet = cluster.traitSetOf(Convention.NONE);
 return new LogicalTableFunctionScan(cluster, traitSet, inputs, rexCall,
   elementType, rowType, columnMappings);
}
origin: Qihoo360/Quicksql

 ImmutableBitSet fieldsUsed,
 Set<RelDataTypeField> extraFields) {
final RelDataType rowType = tabFun.getRowType();
final int fieldCount = rowType.getFieldCount();
final List<RelNode> newInputs = new ArrayList<>();
for (RelNode input : tabFun.getInputs()) {
 final int inputFieldCount = input.getRowType().getFieldCount();
 ImmutableBitSet inputFieldsUsed = ImmutableBitSet.range(inputFieldCount);
if (!tabFun.getInputs().equals(newInputs)) {
 newTabFun = tabFun.copy(tabFun.getTraitSet(), newInputs,
   tabFun.getCall(), tabFun.getElementType(), tabFun.getRowType(),
   tabFun.getColumnMappings());
origin: Qihoo360/Quicksql

  getColumnMappings(operator);
LogicalTableFunctionScan callRel =
  LogicalTableFunctionScan.create(
    cluster,
    inputs,
origin: Qihoo360/Quicksql

@Override public LogicalTableFunctionScan copy(
  RelTraitSet traitSet,
  List<RelNode> inputs,
  RexNode rexCall,
  Type elementType,
  RelDataType rowType,
  Set<RelColumnMapping> columnMappings) {
 assert traitSet.containsIfApplicable(Convention.NONE);
 return new LogicalTableFunctionScan(
   getCluster(),
   traitSet,
   inputs,
   rexCall,
   elementType,
   rowType,
   columnMappings);
}
origin: org.apache.calcite/calcite-core

  getColumnMappings(operator);
LogicalTableFunctionScan callRel =
  LogicalTableFunctionScan.create(
    cluster,
    inputs,
origin: Qihoo360/Quicksql

case TABLE_FUNCTION_SCAN:
 final MutableTableFunctionScan tableFunctionScan = (MutableTableFunctionScan) node;
 return LogicalTableFunctionScan.create(tableFunctionScan.cluster,
   fromMutables(tableFunctionScan.getInputs(), relBuilder), tableFunctionScan.rexCall,
   tableFunctionScan.elementType, tableFunctionScan.rowType,
origin: org.apache.calcite/calcite-core

case TABLE_FUNCTION_SCAN:
 final MutableTableFunctionScan tableFunctionScan = (MutableTableFunctionScan) node;
 return LogicalTableFunctionScan.create(tableFunctionScan.cluster,
   fromMutables(tableFunctionScan.getInputs(), relBuilder), tableFunctionScan.rexCall,
   tableFunctionScan.elementType, tableFunctionScan.rowType,
org.apache.calcite.rel.logicalLogicalTableFunctionScan

Javadoc

Sub-class of org.apache.calcite.rel.core.TableFunctionScannot targeted at any particular engine or calling convention.

Most used methods

  • create
    Creates a LogicalTableFunctionScan.
  • <init>
    Creates a LogicalTableFunctionScan by parsing serialized output.
  • getCall
  • getColumnMappings
  • getElementType
  • getInputs
  • getRowType
  • getTraitSet
  • copy
  • getCluster

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • Kernel (java.awt.image)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JCheckBox (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now