Package | Description |
---|---|
com.caucho.db.fun | |
com.caucho.db.jdbc | |
com.caucho.db.sql | |
com.caucho.db.table |
Modifier and Type | Method and Description |
---|---|
double |
NowExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
BitandExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
long |
NowExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
BitandExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
java.lang.String |
NowExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
BitandExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
boolean |
NowExpr.isNull(QueryContext context)
Returns true for a null value.
|
boolean |
BitandExpr.isNull(QueryContext context)
Returns true for a null value.
|
Modifier and Type | Method and Description |
---|---|
protected QueryContext |
StatementImpl.getQueryContext() |
Modifier and Type | Method and Description |
---|---|
static QueryContext |
QueryContext.allocate()
Returns a new query context.
|
Modifier and Type | Method and Description |
---|---|
void |
SubSelectParamExpr.eval(QueryContext parent,
QueryContext context)
Sets the value.
|
int |
ExistsExpr.evalBoolean(QueryContext context)
Evaluates the expression as a string.
|
int |
ExistsEvalExpr.evalBoolean(QueryContext context)
Evaluates the expression as a boolean.
|
int |
SubSelectParamExpr.evalBoolean(QueryContext context)
Evaluates the expression as a boolean.
|
int |
Expr.evalBoolean(QueryContext context)
Evaluates the expression as a boolean.
|
int |
SubSelectEvalExpr.evalBoolean(QueryContext context)
Evaluates the expression as a boolean.
|
byte[] |
Expr.evalBytes(QueryContext context)
Evaluates the expression as a stream.
|
long |
SubSelectParamExpr.evalDate(QueryContext context)
Evaluates the expression as a date
|
long |
Expr.evalDate(QueryContext context)
Evaluates the expression as a date.
|
double |
AvgExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
SubSelectParamExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
MaxExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
Expr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
MinExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
CountExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
double |
SumExpr.evalDouble(QueryContext context)
Evaluates the expression as a double.
|
boolean |
Expr.evalEqual(QueryContext context,
byte[] data) |
boolean |
Expr.evalEqual(QueryContext context,
java.lang.String evalString) |
void |
AvgExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
GroupResultExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
MaxExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
Expr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
MinExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
CountExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
void |
SumExpr.evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase.
|
long |
AvgExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
SubSelectParamExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
MaxExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
Expr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
MinExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
CountExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
long |
SumExpr.evalLong(QueryContext context)
Evaluates the expression as a long.
|
java.io.InputStream |
Expr.evalStream(QueryContext context)
Evaluates the expression as a stream.
|
java.lang.String |
AvgExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
ExistsEvalExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
GroupResultExpr.evalString(QueryContext context) |
java.lang.String |
SubSelectParamExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
MaxExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
Expr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
MinExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
CountExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
SumExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
SubSelectEvalExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
java.lang.String |
SubSelectExpr.evalString(QueryContext context)
Evaluates the expression as a string.
|
int |
SubSelectParamExpr.evalToBuffer(QueryContext context,
byte[] buffer,
int offset)
Evaluates the expression to a buffer
|
int |
Expr.evalToBuffer(QueryContext context,
byte[] buffer,
int offset)
Evaluates the expression to a buffer
|
int |
Expr.evalToBuffer(QueryContext context,
byte[] buffer,
int off,
Column.ColumnType columnType)
Evaluates the expression to a buffer
|
void |
Expr.evalToResult(QueryContext context,
SelectResult result)
Evaluates the expression, writing to the result stream.
|
void |
ExistsQuery.execute(QueryContext queryCtx,
DbTransaction xa)
Executes the query.
|
void |
CreateQuery.execute(QueryContext queryContext,
DbTransaction xa)
Executes the query.
|
abstract void |
Query.execute(QueryContext queryCtx,
DbTransaction xa)
Executes the query.
|
void |
SelectQuery.execute(QueryContext context,
DbTransaction xa)
Executes the query.
|
void |
TempQuery.execute(QueryContext queryCtx,
DbTransaction xa)
Executes the query.
|
SelectCursor |
Query.executeCursor(QueryContext queryCtx,
DbTransaction xa)
Executes the query.
|
SelectCursor |
SelectQuery.executeCursor(QueryContext context,
DbTransaction xa)
Executes the query.
|
boolean |
ExistsQuery.exists(QueryContext context,
DbTransaction xa)
Executes the query.
|
static void |
QueryContext.free(QueryContext cxt) |
void |
AvgExpr.initGroup(QueryContext context)
Initializes aggregate functions during the group phase.
|
void |
Expr.initGroup(QueryContext context)
Initializes aggregate functions during the group phase.
|
void |
MinExpr.initGroup(QueryContext context)
Initializes aggregate functions during the group phase.
|
void |
CountExpr.initGroup(QueryContext context)
Initializes aggregate functions during the group phase.
|
void |
SumExpr.initGroup(QueryContext context)
Initializes aggregate functions during the group phase.
|
boolean |
Expr.isBinaryStream(QueryContext context)
Returns true if the expression returns a binary stream.
|
boolean |
AvgExpr.isNull(QueryContext context)
Returns true for a null value.
|
boolean |
ExistsExpr.isNull(QueryContext context)
Evaluates the expression to check for null
|
boolean |
SubSelectParamExpr.isNull(QueryContext context)
Evaluates the expression as a string.
|
boolean |
MaxExpr.isNull(QueryContext context)
Returns true if the value is null.
|
boolean |
Expr.isNull(QueryContext context)
Returns true if result is null
|
boolean |
MinExpr.isNull(QueryContext context)
Returns true if the value is null.
|
boolean |
CountExpr.isNull(QueryContext context)
Returns true for a null value.
|
boolean |
SumExpr.isNull(QueryContext context)
Returns true for a null value.
|
boolean |
Expr.isSelect(QueryContext context)
Returns true if the expression selects the row.
|
protected boolean |
Query.isSelect(QueryContext queryContext) |
boolean |
SelectQuery.nextCursor(TableIterator[] rows,
QueryContext context,
DbTransaction xa)
Executes the query.
|
protected boolean |
Query.nextTuple(TableIterator[] rows,
int rowLength,
QueryContext queryContext,
DbTransaction xa)
Returns the next tuple from the query.
|
protected boolean |
Query.start(TableIterator[] rows,
int rowLength,
QueryContext queryContext,
DbTransaction xa)
Starts the query.
|
void |
Expr.updateDouble(QueryContext context,
double value)
Updates the expression as a double
|
void |
Expr.updateLong(QueryContext context,
long value)
Updates the expression as a long
|
void |
Expr.updateString(QueryContext context,
java.lang.String value)
Updates the expression as a string
|
Constructor and Description |
---|
SelectCursor(Expr[] exprs,
SelectQuery query,
QueryContext context) |
Modifier and Type | Method and Description |
---|---|
QueryContext |
TableIterator.getQueryContext()
Returns the query context for the iterator.
|
Modifier and Type | Method and Description |
---|---|
void |
TableIterator.init(QueryContext queryContext) |
long |
Table.insert(QueryContext queryContext,
DbTransaction xa,
java.util.ArrayList<Column> columns,
java.util.ArrayList<Expr> values)
Inserts a new row, returning the row address.
|
void |
Table.insertRow(QueryContext queryContext,
DbTransaction xa,
java.util.ArrayList<Column> columns,
java.util.ArrayList<Expr> values,
Block block,
int rowOffset) |
long |
Table.nextAutoIncrement(QueryContext context)
Returns the next auto-increment value.
|
void |
Column.set(DbTransaction xa,
TableIterator iter,
Expr expr,
QueryContext context)
Sets based on an iterator.
|
void |
UniqueConstraint.validate(TableIterator[] sourceRows,
QueryContext queryContext,
DbTransaction xa)
validate the constraint.
|
void |
Constraint.validate(TableIterator[] rows,
QueryContext contstraint,
DbTransaction xa)
Tries to validate the constraint.
|
void |
UniqueIndexColumnConstraint.validate(TableIterator[] sourceRows,
QueryContext context,
DbTransaction xa)
validate the constraint.
|
void |
UniqueSingleColumnConstraint.validate(TableIterator[] sourceRows,
QueryContext queryContext,
DbTransaction xa)
validate the constraint.
|