public final class QueryResources
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCollection(java.lang.String name,
java.lang.String[] paths)
Adds a collection with the specified paths.
|
void |
addDoc(java.lang.String name,
java.lang.String path)
Adds a document with the specified path.
|
Value |
collection(java.lang.String input,
InputInfo ii)
Adds a collection instance or returns an existing one.
|
Data |
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 |
data(java.lang.String name,
InputInfo ii)
Opens a new database or returns a reference to an already opened database.
|
public Data data(java.lang.String name, InputInfo ii) throws QueryException
name - name of databaseii - input infoQueryException - query exceptionpublic Data data(java.lang.String input, boolean col, InputInfo ii) throws QueryException
input - file path or name of databasecol - collection flagii - input infoQueryException - query exceptionpublic Value collection(java.lang.String input, InputInfo ii) throws QueryException
input - name of the collection to be returnedii - input infoQueryException - query exceptionpublic void addDoc(java.lang.String name,
java.lang.String path)
throws QueryException
name - name of document, or nullpath - documents pathQueryException - query exceptionpublic void addCollection(java.lang.String name,
java.lang.String[] paths)
throws QueryException
name - name of collectionpaths - documents pathsQueryException - query exception