| Package | Description |
|---|---|
| org.basex |
Main package of the project, containing all starter classes with main methods.
|
| org.basex.build |
Classes for creating new database instances.
|
| org.basex.core |
Database core classes.
|
| org.basex.core.cmd |
Database commands.
|
| org.basex.data |
Database structures.
|
| org.basex.gui |
GUI Package.
|
| org.basex.query |
XQuery implementation.
|
| org.basex.query.ft |
XQuery Full Text expressions.
|
| org.basex.query.up.primitives | |
| org.basex.query.util |
XQuery utility classes.
|
| org.basex.query.util.pkg | |
| org.basex.server |
Server implementation.
|
| org.basex.util |
Utility classes.
|
| Constructor and Description |
|---|
BaseXServer(Context ctx,
java.lang.String... args)
Constructor.
|
| Constructor and Description |
|---|
DiskBuilder(java.lang.String nm,
Parser parse,
Context ctx)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
Context |
Main.context
Database context.
|
protected Context |
Command.context
Database context.
|
| Modifier and Type | Method and Description |
|---|---|
static StringList |
Databases.backupPaths(java.lang.String db,
Context ctx)
Returns the sorted paths of all backups of the specified database.
|
protected static boolean |
Command.close(Context ctx,
java.lang.String db)
Closes the specified database if it is currently opened and only pinned once.
|
java.lang.String |
Command.execute(Context ctx)
Executes the command and returns the result as string.
|
void |
Command.execute(Context ctx,
java.io.OutputStream os)
Executes the command and prints the result to the specified output
stream.
|
boolean |
Command.newData(Context ctx)
Closes an open data reference and returns
true if this command will change
the data reference. |
boolean |
Events.notify(Context ctx,
byte[] name,
byte[] msg)
Notifies the watching sessions about an event.
|
java.lang.String |
Command.pinned(Context ctx)
Checks if the database to be updated is opened (pinned) by a process in another JVM.
|
boolean |
Command.run(Context ctx)
Runs the command without permission, data and concurrency checks.
|
boolean |
Command.updating(Context ctx)
Checks if the command performs updates/write operations.
|
| Constructor and Description |
|---|
CommandParser(java.lang.String in,
Context c)
Constructor, parsing the input queries.
|
Context(Context ctx,
ClientListener cl)
Constructor, passing on the main context.
|
Main(java.lang.String[] args,
Context ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AlterDB.alter(java.lang.String source,
java.lang.String target,
Context ctx)
Renames the specified database.
|
static Data |
Check.check(Context ctx,
java.lang.String path)
Opens the specified database; create a new one if it does not exist.
|
static void |
Close.close(Data data,
Context ctx)
Closes the specified database.
|
static Data |
CreateDB.create(java.lang.String name,
Parser parser,
Context ctx)
Returns a database instance from the specified parser.
|
static void |
Delete.delete(Context ctx,
IntList docs)
Deletes the specified nodes.
|
static boolean |
DropDB.drop(java.lang.String db,
Context ctx)
Deletes the specified database.
|
static java.lang.String |
Find.find(java.lang.String query,
Context ctx,
boolean root)
Creates an XQuery representation for the specified query.
|
static java.lang.String |
Info.info(Context context)
Creates a database information string.
|
static StringList |
List.list(Context ctx)
Returns a list of all databases.
|
static StringList |
RepoList.list(Context ctx)
Returns a list of all packages.
|
static StringList |
List.list(Context ctx,
boolean backups)
Returns a list of all databases and (optionally) backed up databases.
|
static MemData |
CreateDB.mainMem(IO source,
Context ctx)
Returns a main memory database instance for the specified input reference.
|
static MemData |
CreateDB.mainMem(Parser parser,
Context ctx)
Returns a main memory database instance from the specified parser.
|
boolean |
Restore.newData(Context ctx) |
boolean |
DropDB.newData(Context ctx) |
boolean |
AlterDB.newData(Context ctx) |
boolean |
ACreate.newData(Context ctx) |
boolean |
Open.newData(Context ctx) |
static Data |
Open.open(java.lang.String name,
Context ctx)
Opens the specified database.
|
static void |
OptimizeAll.optimizeAll(Data data,
Context ctx,
OptimizeAll cmd)
Optimizes all data structures.
|
java.lang.String |
Copy.pinned(Context ctx) |
java.lang.String |
DropDB.pinned(Context ctx) |
java.lang.String |
AlterDB.pinned(Context ctx) |
java.lang.String |
CreateBackup.pinned(Context ctx) |
java.lang.String |
Export.pinned(Context ctx) |
java.lang.String |
Flush.pinned(Context ctx) |
java.lang.String |
CreateDB.pinned(Context ctx) |
protected static boolean |
ACreate.pinned(Context ctx,
java.lang.String name)
Checks if the addressed database is pinned by this or another process.
|
boolean |
Set.updating(Context ctx) |
boolean |
Find.updating(Context ctx) |
boolean |
Run.updating(Context ctx) |
| Constructor and Description |
|---|
DiskData(java.lang.String db,
Context ctx)
Default constructor, called from
Open.open(java.lang.String, org.basex.core.Context). |
MetaData(java.lang.String db,
Context ctx)
Constructor, specifying the database name and context.
|
| Modifier and Type | Field and Description |
|---|---|
Context |
AGUI.context
Database Context.
|
| Constructor and Description |
|---|
GUI(Context ctx,
GUIProp gprops)
Default constructor.
|
| Modifier and Type | Field and Description |
|---|---|
Context |
QueryContext.context
Database context.
|
| Constructor and Description |
|---|
QueryContext(Context ctx)
Constructor.
|
QueryProcessor(java.lang.String qu,
Context cx)
Default constructor.
|
| Constructor and Description |
|---|
Thesaurus(IO fl,
byte[] rs,
long mn,
long mx,
Context c)
Reads a thesaurus file.
|
Thesaurus(IO fl,
Context c)
Constructor.
|
| Constructor and Description |
|---|
DBAdd(Data d,
InputInfo i,
Item it,
java.lang.String p,
Context c)
Constructor.
|
DBOptimize(Data d,
Context c,
boolean a,
InputInfo info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ANode |
DataBuilder.stripNS(ANode node,
byte[] ns,
Context ctx)
Returns a new node without the specified namespace.
|
| Modifier and Type | Field and Description |
|---|---|
Context |
Repo.context
Context.
|
| Constructor and Description |
|---|
JarParser(Context ctx,
InputInfo ii)
Constructor.
|
Repo(Context ctx)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
protected Context |
LocalSession.ctx
Database context.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
ClientListener.context()
Returns the context of this session.
|
| Constructor and Description |
|---|
ClientListener(java.net.Socket s,
Context c,
Log l,
BaseXServer srv)
Constructor.
|
ClientSession(Context context,
java.lang.String user,
java.lang.String pass)
Constructor, specifying login data.
|
ClientSession(Context context,
java.lang.String user,
java.lang.String pass,
java.io.OutputStream output)
Constructor, specifying login data and an output stream.
|
LocalQuery(java.lang.String q,
Context ctx,
java.io.OutputStream o)
Constructor.
|
LocalSession(Context context)
Default constructor.
|
LocalSession(Context context,
java.io.OutputStream output)
Constructor, specifying an output stream.
|
LocalSession(Context context,
java.lang.String user,
java.lang.String pass)
Constructor, specifying login data.
|
LocalSession(Context context,
java.lang.String user,
java.lang.String pass,
java.io.OutputStream output)
Constructor, specifying login data and an output stream.
|
Log(Context ctx,
boolean q)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
InputParser.file(IO f,
Context c)
Sets a file reference.
|