@InterfaceStability.Experimental @InterfaceAudience.Public public class TypeFunctions extends Object
DSL for N1QL functions in the Type category.
Constructor and Description |
---|
TypeFunctions() |
Modifier and Type | Method and Description |
---|---|
static Expression |
isArray(Expression expression)
Returned expression results in True if expression is an array, otherwise returns MISSING, NULL or false.
|
static Expression |
isArray(String expression)
Returned expression results in True if expression is an array, otherwise returns MISSING, NULL or false.
|
static Expression |
isAtom(Expression expression)
Returned expression results in True if expression is a Boolean, number, or string, otherwise returns MISSING, NULL or false.
|
static Expression |
isAtom(String expression)
Returned expression results in True if expression is a Boolean, number, or string, otherwise returns MISSING, NULL or false.
|
static Expression |
isBoolean(Expression expression)
Returned expression results in True if expression is a Boolean, otherwise returns MISSING, NULL or false.
|
static Expression |
isBoolean(String expression)
Returned expression results in True if expression is a Boolean, otherwise returns MISSING, NULL or false.
|
static Expression |
isNumber(Expression expression)
Returned expression results in True if expression is a number, otherwise returns MISSING, NULL or false.
|
static Expression |
isNumber(String expression)
Returned expression results in True if expression is a number, otherwise returns MISSING, NULL or false.
|
static Expression |
isObject(Expression expression)
Returned expression results in True if expression is an object, otherwise returns MISSING, NULL or false.
|
static Expression |
isObject(String expression)
Returned expression results in True if expression is an object, otherwise returns MISSING, NULL or false.
|
static Expression |
isString(Expression expression)
Returned expression results in True if expression is a string, otherwise returns MISSING, NULL or false.
|
static Expression |
isString(String expression)
Returned expression results in True if expression is a string, otherwise returns MISSING, NULL or false.
|
static Expression |
toArray(Expression expression)
Returned expression results in an array as follows:
|
static Expression |
toArray(String expression)
Returned expression results in an array as follows:
|
static Expression |
toAtom(Expression expression)
Returned expression results in an atomic value as follows: - MISSING is MISSING.
|
static Expression |
toAtom(String expression)
Returned expression results in an atomic value as follows: - MISSING is MISSING.
|
static Expression |
toBoolean(Expression expression)
Returned expression results in a Boolean as follows:
|
static Expression |
toBoolean(String expression)
Returned expression results in a Boolean as follows:
|
static Expression |
toNumber(Expression expression)
Returned expression results in a number as follows:
|
static Expression |
toNumber(String expression)
Returned expression results in a number as follows:
|
static Expression |
toObject(Expression expression)
Returned expression results in an object as follows:
|
static Expression |
toObject(String expression)
Returned expression results in an object as follows:
|
static Expression |
toString(Expression expression)
Returned expression results in a string as follows:
|
static Expression |
toString(String expression)
Returned expression results in a string as follows:
|
static Expression |
type(Expression expression)
Returned expression results in one of the following strings, based on the value of expression:
|
static Expression |
type(String expression)
Returned expression results in one of the following strings, based on the value of expression:
|
public static Expression isArray(Expression expression)
Returned expression results in True if expression is an array, otherwise returns MISSING, NULL or false.
public static Expression isArray(String expression)
Returned expression results in True if expression is an array, otherwise returns MISSING, NULL or false.
public static Expression isAtom(Expression expression)
Returned expression results in True if expression is a Boolean, number, or string, otherwise returns MISSING, NULL or false.
public static Expression isAtom(String expression)
Returned expression results in True if expression is a Boolean, number, or string, otherwise returns MISSING, NULL or false.
public static Expression isBoolean(Expression expression)
Returned expression results in True if expression is a Boolean, otherwise returns MISSING, NULL or false.
public static Expression isBoolean(String expression)
Returned expression results in True if expression is a Boolean, otherwise returns MISSING, NULL or false.
public static Expression isNumber(Expression expression)
Returned expression results in True if expression is a number, otherwise returns MISSING, NULL or false.
public static Expression isNumber(String expression)
Returned expression results in True if expression is a number, otherwise returns MISSING, NULL or false.
public static Expression isObject(Expression expression)
Returned expression results in True if expression is an object, otherwise returns MISSING, NULL or false.
public static Expression isObject(String expression)
Returned expression results in True if expression is an object, otherwise returns MISSING, NULL or false.
public static Expression isString(Expression expression)
Returned expression results in True if expression is a string, otherwise returns MISSING, NULL or false.
public static Expression isString(String expression)
Returned expression results in True if expression is a string, otherwise returns MISSING, NULL or false.
public static Expression type(Expression expression)
Returned expression results in one of the following strings, based on the value of expression:
public static Expression type(String expression)
Returned expression results in one of the following strings, based on the value of expression:
public static Expression toArray(Expression expression)
Returned expression results in an array as follows:
public static Expression toArray(String expression)
Returned expression results in an array as follows:
public static Expression toAtom(Expression expression)
Returned expression results in an atomic value as follows: - MISSING is MISSING. - NULL is NULL. - Arrays of length 1 are the result of TOATOM() on their single element. - Objects of length 1 are the result of TOATOM() on their single value. - Booleans, numbers, and strings are themselves. - All other values are NULL.
public static Expression toAtom(String expression)
Returned expression results in an atomic value as follows: - MISSING is MISSING. - NULL is NULL. - Arrays of length 1 are the result of TOATOM() on their single element. - Objects of length 1 are the result of TOATOM() on their single value. - Booleans, numbers, and strings are themselves. - All other values are NULL.
public static Expression toBoolean(Expression expression)
Returned expression results in a Boolean as follows:
public static Expression toBoolean(String expression)
Returned expression results in a Boolean as follows:
public static Expression toNumber(Expression expression)
Returned expression results in a number as follows:
public static Expression toNumber(String expression)
Returned expression results in a number as follows:
public static Expression toObject(Expression expression)
Returned expression results in an object as follows:
public static Expression toObject(String expression)
Returned expression results in an object as follows:
public static Expression toString(Expression expression)
Returned expression results in a string as follows:
public static Expression toString(String expression)
Returned expression results in a string as follows:
Copyright © 2015 Couchbase, Inc.