Package org.basex.core.cmd
Class Get
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.Get
Evaluates the 'get' command and return the value of a database option.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, build, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, result, run, run, setInput, setInput, stoppable, supportsProg, toString, toString, updated, updating
-
Constructor Details
-
Get
public Get()Empty constructor. -
Get
Default constructor.- Parameters:
option- option to be found
-
Get
Default constructor.- Parameters:
key- key to be found (can benull)
-
-
Method Details
-
run
Description copied from class:CommandExecutes the command and serializes the result (internal call).- Specified by:
runin classCommand- Returns:
- success of operation
- Throws:
IOException- I/O exception
-
get
Returns the value of the specified option.- Parameters:
name- name of optionctx- database context- Returns:
- value
-
addLocks
public void addLocks()Description copied from class:JobAdds the strings (databases, special identifiers) for which locks need to be acquired.
-