Package org.basex.query.value.item
Class B64Lazy
-
-
Constructor Summary
Constructors Constructor Description B64Lazy(IO input, QueryError error)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
binary(InputInfo info)
Returns the binary content.void
cache(boolean lazy, InputInfo ii)
Caches data of lazy items (i.e., those implementing theLazy
interface).void
cache(InputInfo ii)
Caches the value.BufferInput
input(InputInfo ii)
Returns an input stream.boolean
isCached()
Indicates if the contents of this item have been cached.Item
materialize(Predicate<Data> test, InputInfo ii, QueryContext qc)
Returns a materialized version of this value without dependencies to persistent data.boolean
materialized(Predicate<Data> test, InputInfo ii)
Checks if this value is materialized, i.e., contains no persistent database nodes or function items.void
toString(QueryString qs)
Creates a query string.-
Methods inherited from class org.basex.query.value.item.B64
get, get, get, get, hash, parse, parse, string, write
-
Methods inherited from class org.basex.query.value.item.Bin
atomicEqual, comparable, compare, equal, equals, toJava
-
Methods inherited from class org.basex.query.value.item.Item
atomItem, atomValue, bool, dbl, ddo, dec, deepEqual, description, flt, instanceOf, isItem, item, itemAt, iter, itr, refineType, refineType, reverse, sameType, score, seqType, size, stringInput, subsequence, test, toXml, typeId, xdmInfo
-
Methods inherited from class org.basex.query.value.Value
accept, checkUp, compactify, compile, copy, count, exprSize, get, has, inline, inlineable, isEmpty, iter, iterator, refineType, serialize, serialize, serialize, value
-
Methods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, funcType, hasFreeVars, indexAccessible, info, isSimple, markTailCalls, mergeEbv, optimize, optimizePos, simplify, simplifyFor, typeCheck, uses, vacuous, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
info, toErrorString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
B64Lazy
public B64Lazy(IO input, QueryError error)
Constructor.- Parameters:
input
- inputerror
- error message to be thrown
-
-
Method Detail
-
binary
public byte[] binary(InputInfo info) throws QueryException
Description copied from class:Bin
Returns the binary content.- Overrides:
binary
in classBin
- Parameters:
info
- input info (can benull
)- Returns:
- content
- Throws:
QueryException
- query exception
-
input
public BufferInput input(InputInfo ii) throws QueryException
Description copied from class:Item
Returns an input stream.- Overrides:
input
in classBin
- Parameters:
ii
- input info (can benull
)- Returns:
- input stream
- Throws:
QueryException
- query exception
-
cache
public void cache(boolean lazy, InputInfo ii) throws QueryException
Description copied from class:Item
Caches data of lazy items (i.e., those implementing theLazy
interface). By calling this method, the streaming feature of lazy items will be disabled. Overwritten byLazy
,XQMap
andXQArray
.- Overrides:
cache
in classItem
- Parameters:
lazy
- iffalse
, cache immediately. iftrue
, caching is deferred until the data is actually requestedii
- input info (can benull
)- Throws:
QueryException
- query exception
-
cache
public void cache(InputInfo ii) throws QueryException
Description copied from interface:Lazy
Caches the value.- Specified by:
cache
in interfaceLazy
- Parameters:
ii
- input info (can benull
)- Throws:
QueryException
- query exception
-
isCached
public boolean isCached()
Description copied from interface:Lazy
Indicates if the contents of this item have been cached.
-
materialize
public Item materialize(Predicate<Data> test, InputInfo ii, QueryContext qc) throws QueryException
Description copied from class:Value
Returns a materialized version of this value without dependencies to persistent data. Raises an error if the value contains function items.- Overrides:
materialize
in classItem
- Parameters:
test
- test to check if a node can be adopted unchangedii
- input info (can benull
)qc
- query context- Returns:
- materialized value
- Throws:
QueryException
- query exception
-
materialized
public boolean materialized(Predicate<Data> test, InputInfo ii) throws QueryException
Description copied from class:Value
Checks if this value is materialized, i.e., contains no persistent database nodes or function items.- Overrides:
materialized
in classItem
- Parameters:
test
- test to check if a node can be adopted unchangedii
- input info (can benull
)- Returns:
- result of check
- Throws:
QueryException
- query exception
-
toString
public void toString(QueryString qs)
Description copied from class:ExprInfo
Creates a query string.
-
-