Examples of IndexableGraph


Examples of com.tinkerpop.blueprints.pgm.IndexableGraph

   * @return
   * @see com.dooapp.gaedo.blueprints.transformers.TupleTransformer#getVertexFor(com.dooapp.gaedo.blueprints.BluePrintsBackedFinderService, java.lang.Object, java.util.Map)
   */
  @Override
  public <DataType> Vertex getVertexFor(BluePrintsBackedFinderService<DataType, ?> service, Serializable cast, Map<String, Object> objectsBeingUpdated) {
    IndexableGraph database = service.getDatabase();
    ServiceRepository repository = service.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = cast.getClass();
    if(Tuples.containsKey(valueClass)) {
      if(Tuples.get(valueClass).equals(this)) {
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.IndexableGraph

   * @return
   * @see com.dooapp.gaedo.blueprints.transformers.TupleTransformer#getVertexFor(com.dooapp.gaedo.blueprints.BluePrintsBackedFinderService, java.lang.Object, java.util.Map)
   */
  @Override
  public <DataType> Vertex getVertexFor(BluePrintsBackedFinderService<DataType, ?> service, Serializable cast, Map<String, Object> objectsBeingUpdated) {
    IndexableGraph database = service.getDatabase();
    ServiceRepository repository = service.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = cast.getClass();
    if(Tuples.containsKey(valueClass)) {
      if(Tuples.get(valueClass).equals(this)) {
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.IndexableGraph

   * @param cascade kind of cascade used for dependent properties
   * @param objectsBeingUpdated map containing subgraph of obejcts currently being updated, this is used to avoid loops, and NOT as a cache
   * @return updated object
   */
  public <DataType> Object performUpdate(BluePrintsBackedFinderService<DataType, ?> service, String objectVertexId, Class<?> valueClass, Map<Property, Collection<CascadeType>> containedProperties, Object toUpdate, CascadeType cascade, Map<String, Object> objectsBeingUpdated) {
    IndexableGraph database = service.getDatabase();
    Vertex objectVertex = GraphUtils.locateVertex(database, Properties.vertexId, objectVertexId);
    // it's in fact an object creation
    if(objectVertex==null) {
      if (logger.isLoggable(Level.FINER)) {
        logger.log(Level.FINER, "object "+objectVertexId.toString()+" has never before been seen in graph, so create central node for it");
View Full Code Here

Examples of com.tinkerpop.blueprints.pgm.IndexableGraph

  @Override
  public void visit(final VertexPropertyTest vertexPropertyTest) {
    // TODO improve that code !!!
    Graph g = service.getDatabase();
    if (g instanceof IndexableGraph) {
      final IndexableGraph indexable = (IndexableGraph) g;
      final Index<Vertex> vertices = indexable.getIndex(Index.VERTICES, Vertex.class);
      result.put(new Iterable<Vertex>() {
       
        @Override
        public Iterator<Vertex> iterator() {
          Iterable<Vertex> matching = vertices.get(vertexPropertyTest.getPropertyName(), vertexPropertyTest.getExpected());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.