org.basex.core.cmd
Class InfoStorage
java.lang.Object
org.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.AQuery
org.basex.core.cmd.InfoStorage
public final class InfoStorage
- extends AQuery
Evaluates the 'info storage' command and returns the table representation
of the currently opened database.
- Author:
- BaseX Team 2005-12, BSD License, Christian Gruen
Fields inherited from class org.basex.core.cmd.AQuery |
result |
Constructor Summary |
InfoStorage(java.lang.String... arg)
Default constructor. |
Method Summary |
void |
build(CmdBuilder cb)
Builds a string representation from the command. |
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
static byte[] |
table(Data data,
int s,
int e)
Prints the specified range of the table. |
Methods inherited from class org.basex.core.Command |
close, databases, error, execute, execute, getOption, getOption, info, info, newData, run, run, setInput, setInput, supportsProg, toString |
Methods inherited from class org.basex.core.Proc |
abort, checkStop, det, detail, listen, proc, prog, 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 |
InfoStorage
public InfoStorage(java.lang.String... arg)
- Default constructor.
- Parameters:
arg
- optional arguments
run
protected boolean run()
throws java.io.IOException
- Description copied from class:
Command
- Executes the command and serializes the result (internal call).
- Specified by:
run
in class Command
- Returns:
- success of operation
- Throws:
java.io.IOException
- I/O exception
databases
public void databases(LockResult lr)
- Description copied from class:
Proc
- Adds the names of the databases that may be touched by the process.
- Overrides:
databases
in class AQuery
- Parameters:
lr
- Container for lock result to pass around
table
public static byte[] table(Data data,
int s,
int e)
- Prints the specified range of the table.
- Parameters:
data
- data references
- first node to be printede
- last node to be printed
- Returns:
- table
build
public void build(CmdBuilder cb)
- Description copied from class:
Command
- Builds a string representation from the command. This string must be
correctly built, as commands are sent to the server as strings.
- Overrides:
build
in class AQuery
- Parameters:
cb
- command builder