Some functions are translated into equivalent SQL Standard functions.
| Modifier and Type | Field and Description |
|---|---|
| private IntKeyIntValueHashMap | |
| pack-priv static final IntKeyIntValueHashMap | |
| pack-priv static final IntKeyIntValueHashMap | |
| private DateTimeFormatter | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Pattern | |
| private static IntValueHashMap | |
| private static IntKeyIntValueHashMap | |
| private static IntValueHashMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public Expression | |
| public String | |
| private String | |
| pack-priv static int | |
| private static IntKeyIntValueHashMap | |
| private static int | |
| pack-priv Object | |
| public static boolean | |
| public static boolean | |
| public static FunctionSQL | |
| private static int | |
| public void | |
| public void | |
| private static char[] | |
| private static String |
| charLookup | back to summary |
|---|---|
| private IntKeyIntValueHashMap charLookup | |
| customRegularFuncMap | back to summary |
|---|---|
| pack-priv static final IntKeyIntValueHashMap customRegularFuncMap | |
| customValueFuncMap | back to summary |
|---|---|
| pack-priv static final IntKeyIntValueHashMap customValueFuncMap | |
| dateTimeFormatter | back to summary |
|---|---|
| private DateTimeFormatter dateTimeFormatter | |
| extractSpec | back to summary |
|---|---|
| private int extractSpec | |
| FUNC_ACOS | back to summary |
|---|---|
| private static final int FUNC_ACOS | |
| FUNC_ACTION_ID | back to summary |
|---|---|
| private static final int FUNC_ACTION_ID | |
| FUNC_ADD_MONTHS | back to summary |
|---|---|
| private static final int FUNC_ADD_MONTHS | |
| FUNC_ASCII | back to summary |
|---|---|
| private static final int FUNC_ASCII | |
| FUNC_ASCIISTR | back to summary |
|---|---|
| private static final int FUNC_ASCIISTR | |
| FUNC_ASIN | back to summary |
|---|---|
| private static final int FUNC_ASIN | |
| FUNC_ATAN | back to summary |
|---|---|
| private static final int FUNC_ATAN | |
| FUNC_ATAN2 | back to summary |
|---|---|
| private static final int FUNC_ATAN2 | |
| FUNC_BITAND | back to summary |
|---|---|
| private static final int FUNC_BITAND | |
| FUNC_BITANDNOT | back to summary |
|---|---|
| private static final int FUNC_BITANDNOT | |
| FUNC_BITNOT | back to summary |
|---|---|
| private static final int FUNC_BITNOT | |
| FUNC_BITOR | back to summary |
|---|---|
| private static final int FUNC_BITOR | |
| FUNC_BITXOR | back to summary |
|---|---|
| private static final int FUNC_BITXOR | |
| FUNC_CHAR | back to summary |
|---|---|
| private static final int FUNC_CHAR | |
| FUNC_CONCAT | back to summary |
|---|---|
| private static final int FUNC_CONCAT | |
| FUNC_COS | back to summary |
|---|---|
| private static final int FUNC_COS | |
| FUNC_COSH | back to summary |
|---|---|
| private static final int FUNC_COSH | |
| FUNC_COT | back to summary |
|---|---|
| private static final int FUNC_COT | |
| FUNC_CRYPT_KEY | back to summary |
|---|---|
| private static final int FUNC_CRYPT_KEY | |
| FUNC_CURRENT_TIMEZONE | back to summary |
|---|---|
| private static final int FUNC_CURRENT_TIMEZONE | |
| FUNC_DATABASE | back to summary |
|---|---|
| private static final int FUNC_DATABASE | |
| FUNC_DATABASE_ISOLATION_LEVEL | back to summary |
|---|---|
| private static final int FUNC_DATABASE_ISOLATION_LEVEL | |
| FUNC_DATABASE_NAME | back to summary |
|---|---|
| private static final int FUNC_DATABASE_NAME | |
| FUNC_DATABASE_TIMEZONE | back to summary |
|---|---|
| private static final int FUNC_DATABASE_TIMEZONE | |
| FUNC_DATABASE_VERSION | back to summary |
|---|---|
| private static final int FUNC_DATABASE_VERSION | |
| FUNC_DATE_ADD | back to summary |
|---|---|
| private static final int FUNC_DATE_ADD | |
| FUNC_DATE_SUB | back to summary |
|---|---|
| private static final int FUNC_DATE_SUB | |
| FUNC_DATEADD | back to summary |
|---|---|
| private static final int FUNC_DATEADD | |
| FUNC_DATEDIFF | back to summary |
|---|---|
| private static final int FUNC_DATEDIFF | |
| FUNC_DATENAME | back to summary |
|---|---|
| private static final int FUNC_DATENAME | |
| FUNC_DATEPART | back to summary |
|---|---|
| private static final int FUNC_DATEPART | |
| FUNC_DAYS | back to summary |
|---|---|
| private static final int FUNC_DAYS | |
| FUNC_DBTIMEZONE | back to summary |
|---|---|
| private static final int FUNC_DBTIMEZONE | |
| FUNC_DEGREES | back to summary |
|---|---|
| private static final int FUNC_DEGREES | |
| FUNC_DIAGNOSTICS | back to summary |
|---|---|
| private static final int FUNC_DIAGNOSTICS | |
| FUNC_DIFFERENCE | back to summary |
|---|---|
| private static final int FUNC_DIFFERENCE | |
| FUNC_FROM_BASE64 | back to summary |
|---|---|
| private static final int FUNC_FROM_BASE64 | |
| FUNC_FROM_TZ | back to summary |
|---|---|
| private static final int FUNC_FROM_TZ | |
| FUNC_HEX | back to summary |
|---|---|
| private static final int FUNC_HEX | |
| FUNC_HEXTORAW | back to summary |
|---|---|
| private static final int FUNC_HEXTORAW | |
| FUNC_IDENTITY | back to summary |
|---|---|
| private static final int FUNC_IDENTITY | |
| FUNC_INSTR | back to summary |
|---|---|
| private static final int FUNC_INSTR | |
| FUNC_ISAUTOCOMMIT | back to summary |
|---|---|
| private static final int FUNC_ISAUTOCOMMIT | |
| FUNC_ISOLATION_LEVEL | back to summary |
|---|---|
| private static final int FUNC_ISOLATION_LEVEL | |
| FUNC_ISREADONLYDATABASE | back to summary |
|---|---|
| private static final int FUNC_ISREADONLYDATABASE | |
| FUNC_ISREADONLYDATABASEFILES | back to summary |
|---|---|
| private static final int FUNC_ISREADONLYDATABASEFILES | |
| FUNC_ISREADONLYSESSION | back to summary |
|---|---|
| private static final int FUNC_ISREADONLYSESSION | |
| FUNC_LAST_DAY | back to summary |
|---|---|
| private static final int FUNC_LAST_DAY | |
| FUNC_LEFT | back to summary |
|---|---|
| private static final int FUNC_LEFT | |
| FUNC_LOAD_FILE | back to summary |
|---|---|
| private static final int FUNC_LOAD_FILE | |
| FUNC_LOB_ID | back to summary |
|---|---|
| private static final int FUNC_LOB_ID | |
| FUNC_LOCATE | back to summary |
|---|---|
| private static final int FUNC_LOCATE | |
| FUNC_LOG10 | back to summary |
|---|---|
| private static final int FUNC_LOG10 | |
| FUNC_LPAD | back to summary |
|---|---|
| private static final int FUNC_LPAD | |
| FUNC_LTRIM | back to summary |
|---|---|
| private static final int FUNC_LTRIM | |
| FUNC_MONTHS_BETWEEN | back to summary |
|---|---|
| private static final int FUNC_MONTHS_BETWEEN | |
| FUNC_NANVL | back to summary |
|---|---|
| private static final int FUNC_NANVL | |
| FUNC_NEW_TIME | back to summary |
|---|---|
| private static final int FUNC_NEW_TIME | |
| FUNC_NEXT_DAY | back to summary |
|---|---|
| private static final int FUNC_NEXT_DAY | |
| FUNC_NUMTODSINTERVAL | back to summary |
|---|---|
| private static final int FUNC_NUMTODSINTERVAL | |
| FUNC_NUMTOYMINTERVAL | back to summary |
|---|---|
| private static final int FUNC_NUMTOYMINTERVAL | |
| FUNC_PI | back to summary |
|---|---|
| private static final int FUNC_PI | |
| FUNC_POSITION_ARRAY | back to summary |
|---|---|
| private static final int FUNC_POSITION_ARRAY | |
| FUNC_RADIANS | back to summary |
|---|---|
| private static final int FUNC_RADIANS | |
| FUNC_RAND | back to summary |
|---|---|
| private static final int FUNC_RAND | |
| FUNC_RAWTOHEX | back to summary |
|---|---|
| private static final int FUNC_RAWTOHEX | |
| FUNC_REGEXP_COUNT | back to summary |
|---|---|
| private static final int FUNC_REGEXP_COUNT | |
| FUNC_REGEXP_INSTR | back to summary |
|---|---|
| private static final int FUNC_REGEXP_INSTR | |
| FUNC_REGEXP_LIKE | back to summary |
|---|---|
| private static final int FUNC_REGEXP_LIKE | |
| FUNC_REGEXP_MATCHES | back to summary |
|---|---|
| private static final int FUNC_REGEXP_MATCHES | |
| FUNC_REGEXP_REPLACE | back to summary |
|---|---|
| private static final int FUNC_REGEXP_REPLACE | |
| FUNC_REGEXP_SUBSTR | back to summary |
|---|---|
| private static final int FUNC_REGEXP_SUBSTR | |
| FUNC_REGEXP_SUBSTRING | back to summary |
|---|---|
| private static final int FUNC_REGEXP_SUBSTRING | |
| FUNC_REGEXP_SUBSTRING_ARRAY | back to summary |
|---|---|
| private static final int FUNC_REGEXP_SUBSTRING_ARRAY | |
| FUNC_REPEAT | back to summary |
|---|---|
| private static final int FUNC_REPEAT | |
| FUNC_REPLACE | back to summary |
|---|---|
| private static final int FUNC_REPLACE | |
| FUNC_REVERSE | back to summary |
|---|---|
| private static final int FUNC_REVERSE | |
| FUNC_RIGHT | back to summary |
|---|---|
| private static final int FUNC_RIGHT | |
| FUNC_ROUND | back to summary |
|---|---|
| private static final int FUNC_ROUND | |
| FUNC_ROUNDMAGIC | back to summary |
|---|---|
| private static final int FUNC_ROUNDMAGIC | |
| FUNC_RPAD | back to summary |
|---|---|
| private static final int FUNC_RPAD | |
| FUNC_RTRIM | back to summary |
|---|---|
| private static final int FUNC_RTRIM | |
| FUNC_SECONDS_MIDNIGHT | back to summary |
|---|---|
| private static final int FUNC_SECONDS_MIDNIGHT | |
| FUNC_SEQUENCE_ARRAY | back to summary |
|---|---|
| private static final int FUNC_SEQUENCE_ARRAY | |
| FUNC_SESSION_ID | back to summary |
|---|---|
| private static final int FUNC_SESSION_ID | |
| FUNC_SESSION_ISOLATION_LEVEL | back to summary |
|---|---|
| private static final int FUNC_SESSION_ISOLATION_LEVEL | |
| FUNC_SESSION_TIMEZONE | back to summary |
|---|---|
| private static final int FUNC_SESSION_TIMEZONE | |
| FUNC_SESSIONTIMEZONE | back to summary |
|---|---|
| private static final int FUNC_SESSIONTIMEZONE | |
| FUNC_SIGN | back to summary |
|---|---|
| private static final int FUNC_SIGN | |
| FUNC_SIN | back to summary |
|---|---|
| private static final int FUNC_SIN | |
| FUNC_SINH | back to summary |
|---|---|
| private static final int FUNC_SINH | |
| FUNC_SORT_ARRAY | back to summary |
|---|---|
| private static final int FUNC_SORT_ARRAY | |
| FUNC_SOUNDEX | back to summary |
|---|---|
| private static final int FUNC_SOUNDEX | |
| FUNC_SPACE | back to summary |
|---|---|
| private static final int FUNC_SPACE | |
| FUNC_SQLCODE | back to summary |
|---|---|
| private static final int FUNC_SQLCODE | |
| FUNC_SQLERRM | back to summary |
|---|---|
| private static final int FUNC_SQLERRM | |
| FUNC_SUBSTR | back to summary |
|---|---|
| private static final int FUNC_SUBSTR | |
| FUNC_SYS_EXTRACT_UTC | back to summary |
|---|---|
| private static final int FUNC_SYS_EXTRACT_UTC | |
| FUNC_SYS_GUID | back to summary |
|---|---|
| private static final int FUNC_SYS_GUID | |
| FUNC_SYSDATE | back to summary |
|---|---|
| private static final int FUNC_SYSDATE | |
| FUNC_SYSTIMESTAMP | back to summary |
|---|---|
| private static final int FUNC_SYSTIMESTAMP | |
| FUNC_TAN | back to summary |
|---|---|
| private static final int FUNC_TAN | |
| FUNC_TANH | back to summary |
|---|---|
| private static final int FUNC_TANH | |
| FUNC_TIMESTAMP | back to summary |
|---|---|
| private static final int FUNC_TIMESTAMP | |
| FUNC_TIMESTAMP_WITH_ZONE | back to summary |
|---|---|
| private static final int FUNC_TIMESTAMP_WITH_ZONE | |
| FUNC_TIMESTAMPADD | back to summary |
|---|---|
| private static final int FUNC_TIMESTAMPADD | |
| FUNC_TIMESTAMPDIFF | back to summary |
|---|---|
| private static final int FUNC_TIMESTAMPDIFF | |
| FUNC_TIMEZONE | back to summary |
|---|---|
| private static final int FUNC_TIMEZONE | |
| FUNC_TO_BASE64 | back to summary |
|---|---|
| private static final int FUNC_TO_BASE64 | |
| FUNC_TO_CHAR | back to summary |
|---|---|
| private static final int FUNC_TO_CHAR | |
| FUNC_TO_DATE | back to summary |
|---|---|
| private static final int FUNC_TO_DATE | |
| FUNC_TO_DSINTERVAL | back to summary |
|---|---|
| private static final int FUNC_TO_DSINTERVAL | |
| FUNC_TO_NUMBER | back to summary |
|---|---|
| private static final int FUNC_TO_NUMBER | |
| FUNC_TO_TIMESTAMP | back to summary |
|---|---|
| private static final int FUNC_TO_TIMESTAMP | |
| FUNC_TO_TIMESTAMP_TZ | back to summary |
|---|---|
| private static final int FUNC_TO_TIMESTAMP_TZ | |
| FUNC_TO_YMINTERVAL | back to summary |
|---|---|
| private static final int FUNC_TO_YMINTERVAL | |
| FUNC_TRANSACTION_CONTROL | back to summary |
|---|---|
| private static final int FUNC_TRANSACTION_CONTROL | |
| FUNC_TRANSACTION_ID | back to summary |
|---|---|
| private static final int FUNC_TRANSACTION_ID | |
| FUNC_TRANSACTION_SIZE | back to summary |
|---|---|
| private static final int FUNC_TRANSACTION_SIZE | |
| FUNC_TRANSACTION_UTC | back to summary |
|---|---|
| private static final int FUNC_TRANSACTION_UTC | |
| FUNC_TRANSLATE | back to summary |
|---|---|
| private static final int FUNC_TRANSLATE | |
| FUNC_TRUNC | back to summary |
|---|---|
| private static final int FUNC_TRUNC | |
| FUNC_TRUNCATE | back to summary |
|---|---|
| private static final int FUNC_TRUNCATE | |
| FUNC_UNHEX | back to summary |
|---|---|
| private static final int FUNC_UNHEX | |
| FUNC_UNISTR | back to summary |
|---|---|
| private static final int FUNC_UNISTR | |
| FUNC_UNIX_MILLIS | back to summary |
|---|---|
| private static final int FUNC_UNIX_MILLIS | |
| FUNC_UNIX_TIMESTAMP | back to summary |
|---|---|
| private static final int FUNC_UNIX_TIMESTAMP | |
| FUNC_UUID | back to summary |
|---|---|
| private static final int FUNC_UUID | |
| pattern | back to summary |
|---|---|
| private Pattern pattern | |
| sqlTypeForToken | back to summary |
|---|---|
| private static IntValueHashMap<K> sqlTypeForToken | |
| tokensForTSIPart | back to summary |
|---|---|
| private static IntKeyIntValueHashMap tokensForTSIPart | |
| tsiTokensForStringPart | back to summary |
|---|---|
| private static IntValueHashMap<K> tsiTokensForStringPart | |
| FunctionCustom | back to summary |
|---|---|
| private FunctionCustom(int id) | |
| getExtractTokenForTSIPart | back to summary |
|---|---|
| private static int getExtractTokenForTSIPart(int part) | |
| getFunctionExpression | back to summary |
|---|---|
| public Expression getFunctionExpression() Overrides org. | |
| getSQL | back to summary |
|---|---|
| public String getSQL() Overrides org. Doc from org. For use with CHECK constraints. Under development. Currently supports a subset of expressions and is suitable for CHECK search conditions that refer only to the inserted/updated row. For full DDL reporting of VIEW select queries and CHECK search conditions, future improvements here are dependent upon improvements to SELECT query parsing, so that it is performed in a number of passes. An early pass should result in the query turned into an Expression tree that contains the information in the original SQL without any alterations, and with tables and columns all resolved. This Expression can then be preserved for future use. Table and column names that are not user-defined aliases should be kept as the HsqlName structures so that table or column renaming is reflected in the precompiled query. | |
| getSQLSimple | back to summary |
|---|---|
| private String getSQLSimple() | |
| getSQLTypeForToken | back to summary |
|---|---|
| pack-priv static int getSQLTypeForToken(String string) | |
| getTranslationMap | back to summary |
|---|---|
| private static IntKeyIntValueHashMap getTranslationMap(String source, String dest) | |
| getTSIToken | back to summary |
|---|---|
| private static int getTSIToken(String string) | |
| getValue | back to summary |
|---|---|
| pack-priv Object getValue(Session session, Object[] data) Overrides org. | |
| isRegularFunction | back to summary |
|---|---|
| public static boolean isRegularFunction(int tokenType) | |
| isValueFunction | back to summary |
|---|---|
| public static boolean isValueFunction(int tokenType) | |
| newCustomFunction | back to summary |
|---|---|
| public static FunctionSQL newCustomFunction(Session session, String token, int tokenType) | |
| regexpParams | back to summary |
|---|---|
| private static int regexpParams(String params) | |
| resolveTypes | back to summary |
|---|---|
| public void resolveTypes(Session session, Expression parent) Overrides org. | |
| setArguments | back to summary |
|---|---|
| public void setArguments(Expression[] nodes) Overrides org. | |
| soundex | back to summary |
|---|---|
| private static char[] soundex(String s) Returns a four character code representing the sound of the given
This method was rewritten for HSQLDB to comply with the description at http://www.archives.gov/research/census/soundex.html .
| |
| translateWithMap | back to summary |
|---|---|
| private static String translateWithMap(String source, IntKeyIntValueHashMap map) | |