Package | Description |
---|---|
com.couchbase.client.java.query.dsl.functions |
Functions are
Expressions that represent predefined utility functions in N1QL. |
Modifier and Type | Method and Description |
---|---|
static DateFunctions.DatePart |
DateFunctions.DatePart.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFunctions.DatePart[] |
DateFunctions.DatePart.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
DateFunctions.dateAddMillis(Expression expression,
int n,
DateFunctions.DatePart part)
Returned expression performs Date arithmetic, and returns result of computation.
|
static Expression |
DateFunctions.dateAddMillis(String expression,
int n,
DateFunctions.DatePart part)
Returned expression performs Date arithmetic, and returns result of computation.
|
static Expression |
DateFunctions.dateAddStr(Expression expression,
int n,
DateFunctions.DatePart part)
Returned expression results in Performs Date arithmetic.
|
static Expression |
DateFunctions.dateAddStr(String expression,
int n,
DateFunctions.DatePart part)
Returned expression results in Performs Date arithmetic.
|
static Expression |
DateFunctions.dateDiffMillis(Expression expression1,
Expression expression2,
DateFunctions.DatePart part)
Returned expression results in Date arithmetic.
|
static Expression |
DateFunctions.dateDiffMillis(String expression1,
String expression2,
DateFunctions.DatePart part)
Returned expression results in Date arithmetic.
|
static Expression |
DateFunctions.dateDiffStr(Expression expression1,
Expression expression2,
DateFunctions.DatePart part)
Returned expression results in Performs Date arithmetic.
|
static Expression |
DateFunctions.dateDiffStr(String expression1,
String expression2,
DateFunctions.DatePart part)
Returned expression results in Performs Date arithmetic.
|
static Expression |
DateFunctions.dateTruncMillis(Expression expression,
DateFunctions.DatePart part)
Returned expression results in UNIX timestamp that has been truncated so that the given date part is the least significant.
|
static Expression |
DateFunctions.dateTruncMillis(String expression,
DateFunctions.DatePart part)
Returned expression results in UNIX timestamp that has been truncated so that the given date part is the least significant.
|
static Expression |
DateFunctions.dateTruncStr(Expression expression,
DateFunctions.DatePart part)
Returned expression results in ISO 8601 timestamp that has been truncated so that the given date part is the least significant.
|
static Expression |
DateFunctions.dateTruncStr(String expression,
DateFunctions.DatePart part)
Returned expression results in ISO 8601 timestamp that has been truncated so that the given date part is the least significant.
|
Copyright © 2015 Couchbase, Inc.