Token Functions
The token functions in this section are used in the attribute expressions in the destination clause or as part of a condition in the WHERE
clause of a LOAD
statement.
Function | Output type | Description |
---|---|---|
|
Returns a string with the characters in the reverse order of the input string in_string. |
|
|
Returns a string which is the concatenation of all the input strings. |
|
|
Returns a version-4 UUID. |
|
gsql_split_by_space(in_string) |
|
Returns a modified version of in_string, in which each space character is replaced with ASCII 30 (decimal). |
|
Returns the substring beginning at beginIndex, having the given length. |
|
|
Returns the start index of the substring within the string. If it is not found, then return -1. |
|
|
Returns the length of the string. |
|
|
Returns the string resulting from replacing all matching substrings of oldToken with newToken in the original string. If a max count is provided, there can only be up to that many replacements. |
|
|
Returns the string resulting from replacing all substrings in the input string that match the given regex token with the substitute string. |
|
bool |
Returns true if the given string token matches the given regex token and false otherwise. |
|
bool |
Returns true if the in_string is either "t" or "true", with case-insensitive checking. Returns false otherwise. |
|
|
|
|
|
|
|
|
Converts a timestamp in canonical string format to Unix epoch time, which is the int number of seconds since Jan. 1, 1970. Refer to the timestamp input format note below. |
|
|
Returns the current time in Unix epoch seconds. By convention, the input parameter should be 0, but it is ignored. |
|
Splits a multi-value field into a set of records. Those records are first stored in a temporary table, and then the temporary table can be loaded into vertices and/or edges. |
||
Parses a JSON array of primitive values or JSON objects, as well as JSON objects in a column of a CSV file. |
||
Reads a compound token and splits it into a collection of elements, to form a set or list collection, or a map. |
||
|
Returns the input string in upper-case. |
|
|
Returns the input string in lower-case. |
|
|
Trims whitespace from the beginning and end of the input string. |
|
|
Trims white space from either the beginning or the end of the input string (Left or right). |
|
|
Returns 4-digit year from timestamp. |
|
|
Returns month (1-12) from timestamp. |
|
|
Returns day (1-31) from timestamp. |
|
|
Returns 4-digit year from Unix epoch time, which is the number of seconds since Jan. 1, 1970. |
|
|
Returns month (1-12) from Unix epoch time, which is the number of seconds since Jan. 1, 1970. |
|
|
Returns day (1-31) from Unix epoch time, which is the number of seconds since Jan. 1, 1970. |