| Package | Description |
|---|---|
| org.corpus_tools.graphannis | |
| org.corpus_tools.graphannis.capi | |
| org.corpus_tools.graphannis.errors |
| Modifier and Type | Method and Description |
|---|---|
void |
CorpusStorageManager.applyUpdate(String corpusName,
GraphUpdate update)
Apply a sequence of updates to this graph for a corpus.
|
Graph |
CorpusStorageManager.corpusGraph(String corpusName)
Return the copy of the graph of the corpus structure given by its name.
|
Graph |
CorpusStorageManager.corpusGraphForQuery(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage)
Return the copy of the graph of the corpus structure which includes all nodes
matched by the given query.
|
long |
CorpusStorageManager.count(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage)
Count the number of results for a query.
|
CorpusStorageManager.CountResult |
CorpusStorageManager.countExtra(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage)
Count the number of results for a query and return both the total number of
matches and also the number of documents in the result set.
|
boolean |
CorpusStorageManager.deleteCorpus(String corpusName)
Delete a corpus from this corpus storage.
|
String[] |
CorpusStorageManager.find(String corpusName,
CorpusStorageManager.QueryLanguage queryLanguage,
String query,
long offset,
long limit)
Find all results for a `query` and return the match ID for each result in
default order.
|
String[] |
CorpusStorageManager.find(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage,
long offset,
long limit,
CorpusStorageManager.ResultOrder order)
Find all results for a `query` and return the match ID for each result.
|
List<FrequencyTableEntry<String>> |
CorpusStorageManager.frequency(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage,
String frequencyQueryDefinition)
Execute a frequency query.
|
List<NodeDesc> |
CorpusStorageManager.getNodeDescriptions(String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
void |
CorpusStorageManager.importFromFileSystem(String path,
CorpusStorageManager.ImportFormat format,
String corpusName)
Import a corpus from an external location on the file system into this corpus
storage.
|
String[] |
CorpusStorageManager.list()
List all available corpora in the corpus storage.
|
Graph |
CorpusStorageManager.subcorpusGraph(String corpusName,
List<String> documentIDs)
Return the copy of a subgraph which includes all nodes that belong to any of
the given list of sub-corpus/document identifiers.
|
Graph |
CorpusStorageManager.subgraph(String corpusName,
List<String> nodeIDs,
long ctxLeft,
long ctxRight,
Optional<String> segmentation)
Return the copy of a subgraph which includes the given list of node
annotation identifiers, the nodes that cover the same token as the given
nodes and all nodes that cover the token which are part of the defined
context.
|
Graph |
CorpusStorageManager.subGraphForQuery(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage)
Return the copy of a subgraph which includes all nodes matched by the given
query.
|
void |
CorpusStorageManager.unloadCorpus(String corpusName)
Unloads a corpus from the cache.
|
boolean |
CorpusStorageManager.validateQuery(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage)
Parses a query and checks if it is valid.
|
| Constructor and Description |
|---|
CorpusStorageManager(String dbDir)
Create a new instance with a an automatic determined size of the internal
corpus cache.
|
CorpusStorageManager(String dbDir,
String logfile,
LogLevel level,
boolean useParallel)
Create a new instance with a an automatic determined size of the internal
corpus cache.
|
CorpusStorageManager(String dbDir,
String logfile,
LogLevel level,
boolean useParallel,
long maxCacheSize)
Create a new instance with a maximum size for the internal corpus cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AnnisErrorListRef.checkErrors() |
| Modifier and Type | Class and Description |
|---|---|
class |
AQLSemanticError |
class |
AQLSyntaxError |
class |
NoSuchCorpus |
class |
SetLoggerError |
| Constructor and Description |
|---|
AQLSemanticError(String msg,
GraphANNISException cause) |
AQLSyntaxError(String msg,
GraphANNISException cause) |
NoSuchCorpus(String msg,
GraphANNISException cause) |
SetLoggerError(String msg,
GraphANNISException cause) |
Copyright © 2019 Thomas Krause. All rights reserved.