|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.Export
public final class Export
Evaluates the 'export' command and saves the currently opened database to disk.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
Export(java.lang.String path)
Default constructor, specifying a target path. |
Method Summary | |
---|---|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
java.lang.String |
det()
Returns short information on this process. |
static void |
export(Data data,
java.lang.String path,
SerializerProp sp,
Export e)
Exports the current database to the specified path. |
double |
prog()
Returns a progress value (0 - 1). |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
boolean |
stoppable()
Returns true if this command can be stopped. |
boolean |
supportsProg()
Returns true if this command returns a progress value. |
Methods inherited from class org.basex.core.Command |
---|
build, close, databases, error, execute, execute, getOption, getOption, info, info, newData, result, run, run, setInput, setInput, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Export(java.lang.String path)
path
- export pathMethod Detail |
---|
protected boolean run()
Command
run
in class Command
public void databases(LockResult lr)
Proc
databases
in class Proc
lr
- Container for lock result to pass aroundpublic static void export(Data data, java.lang.String path, SerializerProp sp, Export e) throws java.io.IOException
path
will be possibly overwritten.
data
- data referencepath
- directorysp
- serialization propertiese
- calling instance
java.io.IOException
- I/O exceptionpublic double prog()
Proc
prog
in class Proc
public boolean stoppable()
Command
stoppable
in class Command
public boolean supportsProg()
Command
supportsProg
in class Command
public java.lang.String det()
Proc
det
in class Proc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |