Modifier and Type | Field and Description |
---|---|
boolean |
all
Pre values comprise all documents of the database.
|
int[] |
pres
Pre values.
|
Modifier and Type | Method and Description |
---|---|
long |
atomSize()
Computes the number of atomized items.
|
Value |
atomValue(InputInfo ii)
Evaluates the expression and returns the atomized items.
|
Data |
data()
Returns the data reference bound to this expression.
|
Item |
ebv(QueryContext qc,
InputInfo ii)
Checks if the effective boolean value can be computed for this expression:
If it yields an empty sequence,
Bln.FALSE will be returned. |
static Value |
get(IntList pres,
Data data,
boolean docs,
boolean all)
Creates a node sequence with the given data reference and pre values.
|
boolean |
homogeneous()
Checks if all items of this value share the same type.
|
DBNode |
itemAt(long pos)
Gets the item at the given position in the value.
|
boolean |
iterable()
Indicates if the items returned by this expression are iterable, i.e., if returned nodes are
in document order and contain no duplicates.
|
Value |
materialize(InputInfo ii)
Materializes streamable values, or returns a self reference.
|
Value |
reverse()
Returns a sequence in reverse order.
|
boolean |
sameAs(Expr cmp)
Compares the current and specified expression for equality.
|
SeqType |
seqType()
Returns the static type of the resulting value.
|
String |
toString() |
int |
writeTo(Item[] arr,
int index)
Writes this value's items out to the given array.
|
atomItem, get, get, get, hash, item, iter, plan, size, test, toErrorString, toJava
accept, atomValue, cache, checkUp, compile, copy, count, description, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, typeCheck, uses, visitAll
public final int[] pres
public final boolean all
public Item ebv(QueryContext qc, InputInfo ii)
Expr
Checks if the effective boolean value can be computed for this expression:
Bln.FALSE
will be returned.
A single numeric item may later be evaluated as positional predicate.
qc
- query contextii
- input infopublic boolean iterable()
Expr
AxisPath
.public boolean sameAs(Expr cmp)
Expr
public DBNode itemAt(long pos)
Value
public Value reverse()
Seq
public Value atomValue(InputInfo ii) throws QueryException
Value
ii
- input infoQueryException
- query exceptionpublic static Value get(IntList pres, Data data, boolean docs, boolean all)
pres
- pre valuesdata
- data referencedocs
- all values reference document nodesall
- pre values comprise all documents of the databasepublic final int writeTo(Item[] arr, int index)
Value
public final boolean homogeneous()
Value
homogeneous
in class Value
public final Value materialize(InputInfo ii)
Value
materialize
in class Value
ii
- input infopublic final long atomSize()
Value
Copyright © 2005–2015 BaseX Team. All rights reserved.