Class RegexpFunction

    • Field Detail

      • REGEXP_LIKE

        public static final int REGEXP_LIKE
        REGEXP_LIKE() (non-standard).
        See Also:
        Constant Field Values
      • REGEXP_REPLACE

        public static final int REGEXP_REPLACE
        REGEXP_REPLACE() (non-standard).
        See Also:
        Constant Field Values
      • REGEXP_SUBSTR

        public static final int REGEXP_SUBSTR
        REGEXP_SUBSTR() (non-standard).
        See Also:
        Constant Field Values
      • NAMES

        private static final java.lang.String[] NAMES
      • function

        private final int function
    • Constructor Detail

      • RegexpFunction

        public RegexpFunction​(int function)
    • Method Detail

      • getValue

        public Value getValue​(SessionLocal session)
        Description copied from class: Expression
        Return the resulting value for the current row.
        Overrides:
        getValue in class FunctionN
        Parameters:
        session - the session
        Returns:
        the result
      • regexpReplace

        private static Value regexpReplace​(SessionLocal session,
                                           java.lang.String input,
                                           java.lang.String regexp,
                                           java.lang.String replacement,
                                           int position,
                                           int occurrence,
                                           java.lang.String regexpMode)
      • makeRegexpFlags

        private static int makeRegexpFlags​(java.lang.String stringFlags,
                                           boolean ignoreGlobalFlag)
      • optimize

        public Expression optimize​(SessionLocal session)
        Description copied from class: Expression
        Try to optimize the expression.
        Specified by:
        optimize in class Expression
        Parameters:
        session - the session
        Returns:
        the optimized expression
      • getName

        public java.lang.String getName()
        Description copied from interface: NamedExpression
        Get the name.
        Returns:
        the name in uppercase