| Package | Description |
|---|---|
| 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.layout |
Project specific GUI components.
|
| org.basex.gui.view |
Visualizations and View Observer framework.
|
| org.basex.index |
Database Index structures.
|
| org.basex.index.ft | |
| org.basex.index.path | |
| org.basex.index.value | |
| org.basex.io.serial | |
| org.basex.query |
XQuery implementation.
|
| org.basex.query.ft |
XQuery Full Text expressions.
|
| org.basex.query.item |
XQuery data types.
|
| org.basex.query.up | |
| org.basex.query.up.primitives | |
| org.basex.query.util |
XQuery utility classes.
|
| org.basex.util.ft |
Full-text specific utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Data |
Builder.build()
Builds the database by running the specified parser.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
Context.data()
Returns the current data reference.
|
Data |
Context.pin(java.lang.String name)
Pins and returns an existing data reference for the specified database, or
returns
null. |
| Modifier and Type | Method and Description |
|---|---|
void |
Context.openDB(Data d)
Sets the specified data instance as current database.
|
void |
Context.openDB(Data d,
java.lang.String p)
Sets the specified data instance as current database and restricts
the context nodes to the given path.
|
void |
Context.pin(Data d)
Adds the specified data reference to the pool.
|
boolean |
Context.unpin(Data d)
Unpins a data reference.
|
| Modifier and Type | Method and Description |
|---|---|
static Data |
Check.check(Context ctx,
java.lang.String path)
Opens the specified database; create a new one if it does not exist.
|
static Data |
CreateDB.create(java.lang.String name,
Parser parser,
Context ctx)
Returns a database instance from the specified parser.
|
static Data |
Open.open(java.lang.String name,
Context ctx)
Opens the specified database.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Close.close(Data data,
Context ctx)
Closes the specified database.
|
protected static void |
ACreate.create(IndexToken.IndexType index,
Data data,
ACreate cmd)
Builds the specified index.
|
static void |
Delete.delete(Data data,
java.lang.String res)
Deletes the specified resources.
|
protected static boolean |
ACreate.drop(IndexToken.IndexType index,
Data data)
Drops the specified index.
|
static void |
Export.export(Data data,
java.lang.String target)
Exports the current database to the specified path.
|
static void |
Optimize.optimize(Data data,
Optimize c)
Optimizes the structures of a database.
|
static void |
OptimizeAll.optimizeAll(Data data,
Context ctx,
OptimizeAll cmd)
Optimizes all data structures.
|
protected boolean |
ACreate.startUpdate(Data data)
Starts an update by marking the database as 'updating'.
|
protected boolean |
ACreate.stopUpdate(Data data)
Finalizes an update by removing 'updating' flag.
|
static byte[] |
InfoStorage.table(Data data,
int s,
int e)
Prints the specified range of the table.
|
static java.lang.String |
Rename.target(Data data,
int pre,
java.lang.String src,
java.lang.String trg)
Generates a target path for the specified document.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DiskData
This class stores and organizes the database table and the index structures
for textual content in a compressed disk structure.
|
class |
MemData
This class stores and organizes the database table and the index structures
for textual content in a compressed memory structure.
|
| Modifier and Type | Field and Description |
|---|---|
Data |
Nodes.data
Root node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FTPosData.add(Data d,
int pre,
FTMatches all)
Adds position data.
|
FTPos |
FTPosData.get(Data d,
int p)
Gets full-text data from the container.
|
void |
Data.insert(int ipre,
int ipar,
Data data)
Inserts a data instance at the specified pre value.
|
void |
Data.insertAttr(int pre,
int par,
Data data)
Inserts attributes.
|
void |
Data.replace(int rpre,
Data data)
Replaces parts of the database with the specified data instance.
|
| Constructor and Description |
|---|
MemData(Data data)
Light-weight constructor, adopting data structures from the
specified database.
|
Nodes(Data d)
Constructor, specifying a database instance.
|
Nodes(int[] n,
Data d)
Constructor, specifying a node set and a database instance.
|
Nodes(int[] n,
Data d,
FTPosData ft)
Constructor, specifying a node set, a database instance, and full-text
positions.
|
Nodes(int n,
Data d)
Constructor, specifying a single node and a database instance.
|
| Constructor and Description |
|---|
TreeFolder(byte[] nm,
byte[] pth,
BaseXTree bxt,
Data d)
Constructor.
|
TreeRootFolder(byte[] nm,
byte[] pth,
BaseXTree bxt,
Data d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
ViewData.content(Data data,
int p,
boolean s)
Returns the contents of the specified node.
|
static boolean |
ViewData.leaf(GUIProp prop,
Data d,
int pre)
Checks if the specified node is a leaf node
(text node or file element or file tag).
|
static int |
ViewData.nameID(Data data)
Returns the name id of the specified node.
|
static int |
ViewData.parent(Data data,
int pre)
Returns the parent for the specified node.
|
static byte[] |
ViewData.path(Data data,
int pre)
Returns path for the specified pre value.
|
static int |
ViewData.size(Data data,
int pre)
Returns the size for the specified node.
|
static int |
ViewData.sizeID(Data data)
Returns the size id of the specified node.
|
static byte[] |
ViewData.tag(GUIProp prop,
Data data,
int pre)
Returns the tag name of the specified node.
|
| Modifier and Type | Field and Description |
|---|---|
protected Data |
IndexBuilder.data
Data reference.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Resources.insert(int pre,
Data d)
Adds entries to the index and updates subsequent nodes.
|
void |
Resources.replace(int pre,
int size,
Data d)
Replaces entries in the index.
|
| Constructor and Description |
|---|
IndexBuilder(Data d)
Constructor.
|
IndexStats(Data d)
Default constructor.
|
Resources(Data d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FTBuilder |
FTBuilder.get(Data d)
Returns a new full-text index builder.
|
static FTIndex |
FTIndex.get(Data d,
boolean wild)
Returns a new full-text index instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PathSummary.finish(Data d)
Sets the data reference.
|
byte[] |
PathNode.token(Data data)
Returns a readable representation of this node.
|
| Constructor and Description |
|---|
PathSummary(Data d)
Constructor, specifying a data reference.
|
PathSummary(Data d,
DataInput in)
Constructor, specifying an input file.
|
| Constructor and Description |
|---|
DiskValues(Data d,
boolean txt)
Constructor, initializing the index structure.
|
MemValues(Data d)
Constructor.
|
UpdatableDiskValues(Data d,
boolean txt)
Constructor, initializing the index structure.
|
UpdatableMemValues(Data d)
Constructor.
|
ValueBuilder(Data d,
boolean txt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Serializer.node(Data data,
int pre)
Serializes a node of the specified data reference.
|
void |
Serializer.node(Data data,
int pre,
FTPosData ft)
Serializes a node of the specified data reference.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
QueryContext.data()
Returns the current data reference of the context value, or
null. |
Data |
QueryResources.data(java.lang.String input,
boolean col,
InputInfo ii)
Creates a new data reference for the specified input, or returns a
reference to an already opened file or database.
|
Data |
QueryResources.data(java.lang.String name,
InputInfo ii)
Opens a new database or returns a reference to an already opened database.
|
| Constructor and Description |
|---|
QuerySuggest(java.lang.String q,
QueryContext c,
Data d)
Constructor.
|
| Constructor and Description |
|---|
FTWords(InputInfo ii,
Data d,
Item str,
QueryContext ctx)
Constructor for index-based evaluation.
|
| Modifier and Type | Field and Description |
|---|---|
Data |
DBNode.data
Data reference.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
Value.data()
Returns the data reference (if) attached to this value.
|
Data |
DBNodeSeq.data() |
Data |
DBNode.data() |
| Modifier and Type | Method and Description |
|---|---|
static Value |
DBNodeSeq.get(IntList v,
Data d,
boolean docs,
boolean c)
Creates a node sequence with the given data reference and pre values.
|
| Constructor and Description |
|---|
DBNode(Data d)
Constructor, creating a document node from the specified data reference.
|
DBNode(Data d,
int p)
Constructor, creating a node from the specified data reference.
|
DBNode(Data d,
int p,
int k)
Constructor, specifying full node information.
|
FTNode(FTMatches a,
Data d,
int p,
int tol,
int tis,
double s)
Constructor, called by the index variant.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TransformModifier.addData(Data d)
Adds a data reference to list which keeps track of the nodes copied
within a transform expression.
|
| Modifier and Type | Field and Description |
|---|---|
Data |
UpdatePrimitive.data
Target data reference.
|
| Constructor and Description |
|---|
DBAdd(Data d,
InputInfo i,
Item it,
java.lang.String p,
Context c)
Constructor.
|
DBDelete(Data d,
java.lang.String k,
InputInfo info)
Constructor.
|
DBOptimize(Data d,
Context c,
boolean a,
InputInfo info)
Constructor.
|
DBRename(Data d,
java.lang.String src,
java.lang.String trg,
InputInfo info)
Constructor.
|
DBStore(Data d,
byte[] path,
Item it,
InputInfo info)
Constructor.
|
DeleteNode(int p,
Data d,
InputInfo i)
Constructor.
|
InsertAfter(int p,
Data d,
InputInfo i,
NodeCache c)
Constructor.
|
InsertAttribute(int p,
Data d,
InputInfo i,
NodeCache c)
Constructor.
|
InsertBefore(int p,
Data d,
InputInfo i,
NodeCache c)
Constructor.
|
InsertInto(int p,
Data d,
InputInfo i,
NodeCache nc,
boolean l)
Constructor.
|
InsertIntoFirst(int p,
Data d,
InputInfo i,
NodeCache c)
Constructor.
|
Put(InputInfo i,
int p,
Data d,
Uri u,
QueryContext context)
Constructor.
|
RenameNode(int p,
Data d,
InputInfo i,
QNm nm)
Constructor.
|
ReplaceElementContent(int p,
Data d,
InputInfo i,
byte[] val)
Constructor.
|
ReplaceNode(int p,
Data d,
InputInfo i,
NodeCache c)
Constructor.
|
ReplaceValue(int p,
Data d,
InputInfo i,
byte[] v)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
Data |
IndexContext.data
Data reference.
|
| Constructor and Description |
|---|
IndexContext(QueryContext c,
Data d,
AxisStep s,
boolean i)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StopWords.comp(Data data)
Compiles the stop word list.
|
| Constructor and Description |
|---|
StopWords(Data data,
java.lang.String file)
Constructor, reading stopword list from disk.
|