Exemplo n.º 1
0
 public GraphQuery query() {
   return config.getConfiguredGraph().query();
 }
Exemplo n.º 2
0
 public Features getFeatures() {
   Features features = config.getConfiguredGraph().getFeatures().copyFeatures();
   features.isWrapper = true;
   return features;
 }
Exemplo n.º 3
0
 public void shutdown() {
   config.getConfiguredGraph().shutdown();
 }
Exemplo n.º 4
0
 public Iterable<Edge> getEdges(final String key, final Object value) {
   return config.getConfiguredGraph().getEdges(key, value);
 }
Exemplo n.º 5
0
 /**
  * Frame edges according to a particular kind of annotated interface.
  *
  * @param key the key of the edges to get
  * @param value the value of the edges to get
  * @param direction the direction of the edges
  * @param kind the default annotated interface to frame the edges as
  * @param <F> the default type of the annotated interface
  * @return an iterable of proxy objects backed by the edges and interpreted from the perspective
  *     of the annotate interface
  */
 public <F> Iterable<F> getEdges(
     final String key, final Object value, final Direction direction, final Class<F> kind) {
   return new FramedEdgeIterable<F>(
       this, config.getConfiguredGraph().getEdges(key, value), direction, kind);
 }
Exemplo n.º 6
0
 /**
  * Frame vertices according to a particular kind of annotated interface.
  *
  * @param key the key of the vertices to get
  * @param value the value of the vertices to get
  * @param kind the default annotated interface to frame the vertices as
  * @param <F> the default type of the annotated interface
  * @return an iterable of proxy objects backed by the vertices and interpreted from the
  *     perspective of the annotate interface
  */
 public <F> Iterable<F> getVertices(final String key, final Object value, final Class<F> kind) {
   return new FramedVertexIterable<F>(
       this, config.getConfiguredGraph().getVertices(key, value), kind);
 }
Exemplo n.º 7
0
 public Iterable<Edge> getEdges() {
   return config.getConfiguredGraph().getEdges();
 }
Exemplo n.º 8
0
 public Iterable<Vertex> getVertices() {
   return config.getConfiguredGraph().getVertices();
 }
Exemplo n.º 9
0
 public Iterable<Vertex> getVertices(final String key, final Object value) {
   return config.getConfiguredGraph().getVertices(key, value);
 }
Exemplo n.º 10
0
 public void removeEdge(final Edge edge) {
   config.getConfiguredGraph().removeEdge(edge);
 }
Exemplo n.º 11
0
 public void removeVertex(final Vertex vertex) {
   config.getConfiguredGraph().removeVertex(vertex);
 }
Exemplo n.º 12
0
 public Edge addEdge(
     final Object id, final Vertex outVertex, final Vertex inVertex, final String label) {
   return config.getConfiguredGraph().addEdge(id, outVertex, inVertex, label);
 }
Exemplo n.º 13
0
 public Edge getEdge(final Object id) {
   return config.getConfiguredGraph().getEdge(id);
 }
Exemplo n.º 14
0
 public Vertex addVertex(final Object id) {
   return config.getConfiguredGraph().addVertex(id);
 }