public class GDLHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GDLHandler.Builder
Builds a GDL Handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(String asciiString)
Append the given GDL string to the current database.
|
Map<String,Edge> |
getEdgeCache()
Returns a cache that contains a mapping from user-defined variables to edge instances.
|
Map<String,Edge> |
getEdgeCache(boolean includeUserDefined,
boolean includeAutoGenerated)
Returns a cache that contains a mapping from variables to edge instances.
|
Collection<Edge> |
getEdges()
Returns a collection of all edges defined in the GDL script.
|
Map<String,Graph> |
getGraphCache()
Returns a cache that contains a mapping from user-defined variables to graph instances.
|
Map<String,Graph> |
getGraphCache(boolean includeUserDefined,
boolean includeAutoGenerated)
Returns a cache that contains a mapping from variables to graph instances.
|
Collection<Graph> |
getGraphs()
Returns a collection of all graphs defined in the GDL script.
|
Optional<Predicate> |
getPredicates()
Returns the predicates defined by the query in CNF.
|
Map<String,Vertex> |
getVertexCache()
Returns a cache that contains a mapping from user-defined variables to vertex instances.
|
Map<String,Vertex> |
getVertexCache(boolean includeUserDefined,
boolean includeAutoGenerated)
Returns a cache that contains a mapping from variables to vertex instances.
|
Collection<Vertex> |
getVertices()
Returns a collection of all vertices defined in the GDL script.
|
public void append(String asciiString)
asciiString - GDL string (must not be null).public Collection<Graph> getGraphs()
public Collection<Vertex> getVertices()
public Collection<Edge> getEdges()
public Optional<Predicate> getPredicates()
public Map<String,Graph> getGraphCache()
public Map<String,Graph> getGraphCache(boolean includeUserDefined, boolean includeAutoGenerated)
includeUserDefined - true, iff user-defined variables shall be included in the cacheincludeAutoGenerated - true, iff auto-generated variables shall be included in the cachepublic Map<String,Vertex> getVertexCache()
public Map<String,Vertex> getVertexCache(boolean includeUserDefined, boolean includeAutoGenerated)
includeUserDefined - true, iff user-defined variables shall be included in the cacheincludeAutoGenerated - true, iff auto-generated variables shall be included in the cachepublic Map<String,Edge> getEdgeCache()
public Map<String,Edge> getEdgeCache(boolean includeUserDefined, boolean includeAutoGenerated)
includeUserDefined - true, iff user-defined variables shall be included in the cacheincludeAutoGenerated - true, iff auto-generated variables shall be included in the cacheCopyright © 2017. All rights reserved.