public class ArchiveCreate extends StandardFunc
definition, sc
Constructor and Description |
---|
ArchiveCreate() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Item[] entry,
org.basex.query.func.archive.ArchiveOut out,
int level,
String root,
QueryContext qc)
Adds the specified entry to the output stream.
|
Item |
item(QueryContext qc,
InputInfo ii)
Evaluates the expression and returns the resulting item,
or
Empty.VALUE if the expression yields an empty sequence. |
protected int |
level(CreateOptions options)
Returns the compression level.
|
checkAdmin, checkArity, checkArity, checkCreate, checkData, checkPath, checkPath, coerceFunc, compileData, copy, data, data, dataLock, dateTimeToMs, description, equals, has, opt, optFirst, optFirst, optimize, plan, plan, serialize, simplifyArgs, toBaseUri, toBindings, toCollation, toDate, toDBNode, toEncodingOrNull, toNodeOrAtomItem, toOptions, toPath, toPath, toQuery, toQuery, vacuous
accept, allAreValues, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inline, inlineable, mayBePositional, simplifyAll
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroToken, value
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, visitAll
toErrorString, toString
public Item item(QueryContext qc, InputInfo ii) throws QueryException
Expr
Empty.VALUE
if the expression yields an empty sequence.
If this method is not implemented, Expr.value(QueryContext)
must be implemented instead.item
in class ParseExpr
qc
- query contextii
- input info (only required by Seq
instances, which have no input info)Empty.VALUE
QueryException
- query exceptionprotected int level(CreateOptions options) throws QueryException
options
- optionsQueryException
- query exceptionprotected final void add(Item[] entry, org.basex.query.func.archive.ArchiveOut out, int level, String root, QueryContext qc) throws QueryException, IOException
entry
- archive entryout
- output archivelevel
- default compression levelroot
- root path (empty, or ending with slash)qc
- query contextQueryException
- query exceptionIOException
- I/O exceptionCopyright © 2005–2023 BaseX Team. All rights reserved.