OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet Class Reference
+ Inheritance diagram for org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet:
+ Collaboration diagram for org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet:

Public Member Functions

RexNode convertCall (SqlRexContext cx, SqlCall call)
 

Package Functions

 TrimConvertlet (SqlTrimFunction.Flag flag)
 

Private Attributes

final SqlTrimFunction.Flag flag
 

Detailed Description

Convertlet that converts

and

to

.

Definition at line 1315 of file StandardConvertletTable.java.

Constructor & Destructor Documentation

org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.TrimConvertlet ( SqlTrimFunction.Flag  flag)
inlinepackage

Definition at line 1318 of file StandardConvertletTable.java.

1318  {
1319  this.flag = flag;
1320  }

Member Function Documentation

RexNode org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.convertCall ( SqlRexContext  cx,
SqlCall  call 
)
inline

Definition at line 1322 of file StandardConvertletTable.java.

1322  {
1323  final RexBuilder rexBuilder = cx.getRexBuilder();
1324  final RexNode operand = cx.convertExpression(call.getOperandList().get(0));
1325  return rexBuilder.makeCall(SqlStdOperatorTable.TRIM,
1326  rexBuilder.makeFlag(flag),
1327  rexBuilder.makeLiteral(" "),
1328  operand);
1329  }

Member Data Documentation

final SqlTrimFunction.Flag org.apache.calcite.sql2rel.StandardConvertletTable.TrimConvertlet.flag
private

Definition at line 1316 of file StandardConvertletTable.java.


The documentation for this class was generated from the following file: