Package org.apache.calcite.sql
Class SqlAbstractStringLiteral
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlLiteral
-
- org.apache.calcite.sql.SqlAbstractStringLiteral
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
SqlBinaryStringLiteral
,SqlCharStringLiteral
abstract class SqlAbstractStringLiteral extends SqlLiteral
Abstract base for character and binary string literals.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlLiteral
SqlLiteral.SqlSymbol
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.sql.SqlLiteral
value
-
Fields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SqlAbstractStringLiteral(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract SqlAbstractStringLiteral
concat1(java.util.List<SqlLiteral> literals)
Helper routine forSqlUtil.concatenateLiterals(java.util.List<org.apache.calcite.sql.SqlLiteral>)
.-
Methods inherited from class org.apache.calcite.sql.SqlLiteral
accept, bigDecimalValue, booleanValue, clone, createApproxNumeric, createBinaryString, createBinaryString, createBoolean, createCharString, createCharString, createDate, createDate, createExactNumeric, createInterval, createNegative, createNull, createSample, createSqlType, createSymbol, createTime, createTime, createTimestamp, createTimestamp, createUnknown, equals, equalsDeep, getKind, getMonotonicity, getStringValue, getTypeName, getValue, getValueAs, hashCode, intValue, longValue, sampleValue, signum, stringValue, symbolValue, symbolValue_, toValue, unchain, unescapeUnicode, unparse, validate, value, valueMatchesType
-
Methods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, findValidOptions, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
-
-
-
-
Constructor Detail
-
SqlAbstractStringLiteral
protected SqlAbstractStringLiteral(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
-
-
Method Detail
-
concat1
protected abstract SqlAbstractStringLiteral concat1(java.util.List<SqlLiteral> literals)
Helper routine forSqlUtil.concatenateLiterals(java.util.List<org.apache.calcite.sql.SqlLiteral>)
.- Parameters:
literals
- homogeneous StringLiteral args- Returns:
- StringLiteral with concatenated value. this == lits[0], used only for method dispatch.
-
-