Tabnine Logo
RelDataTypeFactory.createJoinType
Code IndexAdd Tabnine to your IDE (free)

How to use
createJoinType
method
in
org.apache.calcite.rel.type.RelDataTypeFactory

Best Java code snippets using org.apache.calcite.rel.type.RelDataTypeFactory.createJoinType (Showing top 6 results out of 315)

origin: Qihoo360/Quicksql

case UPDATE:
 inputRowType =
   typeFactory.createJoinType(rowType,
     getCatalogReader().createTypeFromProjection(rowType,
       updateColumnList));
case MERGE:
 inputRowType =
   typeFactory.createJoinType(
     typeFactory.createJoinType(rowType, rowType),
     getCatalogReader().createTypeFromProjection(rowType,
       updateColumnList));
origin: org.apache.calcite/calcite-core

case UPDATE:
 inputRowType =
   typeFactory.createJoinType(rowType,
     getCatalogReader().createTypeFromProjection(rowType,
       updateColumnList));
case MERGE:
 inputRowType =
   typeFactory.createJoinType(
     typeFactory.createJoinType(rowType, rowType),
     getCatalogReader().createTypeFromProjection(rowType,
       updateColumnList));
origin: org.apache.calcite/calcite-core

/**
 * Retrieves the fields corresponding to a join between a left and right
 * tree
 *
 * @param left left hand side of the join
 * @param right right hand side of the join
 *
 * @return fields of the join
 */
public List<RelDataTypeField> getJoinFields(
  LoptJoinTree left,
  LoptJoinTree right) {
 RelDataType rowType =
   factory.createJoinType(
     left.getJoinTree().getRowType(),
     right.getJoinTree().getRowType());
 return rowType.getFieldList();
}
origin: Qihoo360/Quicksql

/**
 * Retrieves the fields corresponding to a join between a left and right
 * tree
 *
 * @param left left hand side of the join
 * @param right right hand side of the join
 *
 * @return fields of the join
 */
public List<RelDataTypeField> getJoinFields(
  LoptJoinTree left,
  LoptJoinTree right) {
 RelDataType rowType =
   factory.createJoinType(
     left.getJoinTree().getRowType(),
     right.getJoinTree().getRowType());
 return rowType.getFieldList();
}
origin: Qihoo360/Quicksql

protected RelDataType validateImpl(RelDataType targetRowType) {
 RelDataType leftType =
   validator.getNamespace(join.getLeft()).getRowType();
 RelDataType rightType =
   validator.getNamespace(join.getRight()).getRowType();
 final RelDataTypeFactory typeFactory = validator.getTypeFactory();
 switch (join.getJoinType()) {
 case LEFT:
  rightType = typeFactory.createTypeWithNullability(rightType, true);
  break;
 case RIGHT:
  leftType = typeFactory.createTypeWithNullability(leftType, true);
  break;
 case FULL:
  leftType = typeFactory.createTypeWithNullability(leftType, true);
  rightType = typeFactory.createTypeWithNullability(rightType, true);
  break;
 }
 return typeFactory.createJoinType(leftType, rightType);
}
origin: org.apache.calcite/calcite-core

protected RelDataType validateImpl(RelDataType targetRowType) {
 RelDataType leftType =
   validator.getNamespace(join.getLeft()).getRowType();
 RelDataType rightType =
   validator.getNamespace(join.getRight()).getRowType();
 final RelDataTypeFactory typeFactory = validator.getTypeFactory();
 switch (join.getJoinType()) {
 case LEFT:
  rightType = typeFactory.createTypeWithNullability(rightType, true);
  break;
 case RIGHT:
  leftType = typeFactory.createTypeWithNullability(leftType, true);
  break;
 case FULL:
  leftType = typeFactory.createTypeWithNullability(leftType, true);
  rightType = typeFactory.createTypeWithNullability(rightType, true);
  break;
 }
 return typeFactory.createJoinType(leftType, rightType);
}
org.apache.calcite.rel.typeRelDataTypeFactorycreateJoinType

Javadoc

Creates a cartesian product type.

Popular methods of RelDataTypeFactory

  • createSqlType
    Creates a SQL type with precision and scale.
  • createTypeWithNullability
    Creates a type that is the same as another type but with possibly different nullability. The output
  • createStructType
    Creates a type that represents a structured collection of fields, given lists of the names and types
  • builder
    Creates a org.apache.calcite.rel.type.RelDataTypeFactory.FieldInfoBuilder. But since FieldInfoBuilde
  • createMapType
    Creates a map type. Maps are unordered collections of key/value pairs.
  • getTypeSystem
    Returns the type system.
  • createArrayType
    Creates an array type. Arrays are ordered collections of elements.
  • createJavaType
    Creates a type that corresponds to a Java class.
  • createSqlIntervalType
    Creates a SQL interval type.
  • createTypeWithCharsetAndCollation
    Creates a type that is the same as another type but with possibly different charset or collation. Fo
  • leastRestrictive
    Returns the most general of a set of types (that is, one type to which they can all be cast), or nul
  • createMultisetType
    Creates a multiset type. Multisets are unordered collections of elements.
  • leastRestrictive,
  • createMultisetType,
  • copyType,
  • createUnknownType,
  • getDefaultCharset,
  • useDoubleMultiplication

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top plugins for WebStorm
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