Enum Class Templates

java.lang.Object
java.lang.Enum<Templates>
org.huiche.ast.support.Templates
All Implemented Interfaces:
Serializable, Comparable<Templates>, Constable, Template

public enum Templates extends Enum<Templates> implements Template
内置模板
Author:
Maning
  • Enum Constant Details

    • ROW

      public static final Templates ROW
      行构造器
    • AVG

      public static final Templates AVG
      平均数
    • COUNT

      public static final Templates COUNT
      列条数(忽略NULL)
    • COUNT_ALL

      public static final Templates COUNT_ALL
      总条数
    • COUNT_DISTINCT

      public static final Templates COUNT_DISTINCT
      列条数去重(忽略NULL)
    • MAX

      public static final Templates MAX
      最大值
    • MIN

      public static final Templates MIN
      最小值
    • SUM

      public static final Templates SUM
      求和
    • ANY_VALUE

      public static final Templates ANY_VALUE
      任一值
    • STRING_AGG

      public static final Templates STRING_AGG
      分组内string拼接聚合
    • STRING_AGG_DISTINCT

      public static final Templates STRING_AGG_DISTINCT
      分组内string去重拼接聚合
    • MOD

      public static final Templates MOD
      取余
    • ABS

      public static final Templates ABS
      绝对值
    • CEILING

      public static final Templates CEILING
      向上取整
    • FLOOR

      public static final Templates FLOOR
      向下取整
    • ROUND

      public static final Templates ROUND
      四舍五入
    • CONCAT

      public static final Templates CONCAT
      CONCAT 字符串拼接函数
    • OCTET_LENGTH

      public static final Templates OCTET_LENGTH
      字节长度
    • CHAR_LENGTH

      public static final Templates CHAR_LENGTH
      字符长度
    • UPPER

      public static final Templates UPPER
      转大写
    • LOWER

      public static final Templates LOWER
      转小写
    • SUBSTRING

      public static final Templates SUBSTRING
      分割字符串
    • TRIM

      public static final Templates TRIM
      去除两端空格
    • POSITION

      public static final Templates POSITION
      获取字符串在列中下标
    • REPLACE

      public static final Templates REPLACE
      替换
    • LIKE

      public static final Templates LIKE
      like匹配
    • NOT_LIKE

      public static final Templates NOT_LIKE
      非like匹配
    • REGEXP_LIKE

      public static final Templates REGEXP_LIKE
      正则匹配
    • JSON_VALUE

      public static final Templates JSON_VALUE
      json数值
    • JSON_EXISTS

      public static final Templates JSON_EXISTS
      json包含
    • COALESCE

      public static final Templates COALESCE
      空值替换
    • NULLIF

      public static final Templates NULLIF
      等值置空
    • PAREN

      public static final Templates PAREN
      括号
    • NEGATIVE

      public static final Templates NEGATIVE
      负值
    • MUL

      public static final Templates MUL
      相乘
    • DIV

      public static final Templates DIV
      相除
    • PLUS

      public static final Templates PLUS
      相加
    • MINUS

      public static final Templates MINUS
      相减
    • GT

      public static final Templates GT
      大于
    • GTE

      public static final Templates GTE
      大于等于
    • LT

      public static final Templates LT
      小于
    • LTE

      public static final Templates LTE
      小于等于
    • NE

      public static final Templates NE
      不等于
    • EQ

      public static final Templates EQ
      等于
    • BETWEEN_AND

      public static final Templates BETWEEN_AND
      在...之间
    • NOT_BETWEEN_AND

      public static final Templates NOT_BETWEEN_AND
      不在...之间
    • IS_NULL

      public static final Templates IS_NULL
      是否空
    • IS_NOT_NULL

      public static final Templates IS_NOT_NULL
      是否不为空
    • IN

      public static final Templates IN
      在...
    • NOT_IN

      public static final Templates NOT_IN
      不在...
    • EXISTS

      public static final Templates EXISTS
      存在
    • NOT_EXISTS

      public static final Templates NOT_EXISTS
      不存在
    • NOT

      public static final Templates NOT
    • AND

      public static final Templates AND
      并且
    • OR

      public static final Templates OR
      或者
  • Method Details

    • values

      public static Templates[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Templates valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • precedence

      public int precedence()
      Description copied from interface: Template
      优先级,越大越优先,作用于操作符
      Specified by:
      precedence in interface Template
      Returns:
      优先级
    • template

      public String template()
      Description copied from interface: Template
      模板内容,使用{}代表参数占位
      Specified by:
      template in interface Template
      Returns:
      模板