Examples of Query()


Examples of org.lab41.dendrite.metagraph.DendriteGraphTx.query()

            try {
                Map<Object, Object> verticesMap = new HashMap<>();
                Map<Object, Object> edgesMap = new HashMap<>();

                for (Vertex vertex : dendriteGraphTx.query().limit(300).vertices()) {
                    addVertex(verticesMap, vertex);
                }

                for (Edge edge : dendriteGraphTx.query().limit(300).edges()) {
                    addEdge(verticesMap, edgesMap, edge);
View Full Code Here

Examples of org.lealone.command.Prepared.query()

        Expression filterCondition = filter.getFilterCondition();
        if (filterCondition != null) {
            buff.append(" WHERE ").append(StringUtils.unEnclose(filterCondition.getSQL()));
        }
        Prepared prepared = filter.getSession().prepare(buff.toString(), true);
        subqueryResult = prepared.query(-1);
    }

    @Override
    public Row get() {
        return new HBaseRow(subqueryResult.currentRow(), Row.MEMORY_CALCULATE);
View Full Code Here

Examples of org.lealone.command.dml.Query.query()

                throw DbException.get(ErrorCode.SYNTAX_ERROR_2, "recursive queries without UNION ALL");
            }
            Query left = union.getLeft();
            // to ensure the last result is not closed
            left.disableCache();
            LocalResult r = (LocalResult) left.query(0);
            LocalResult result = union.getEmptyResult();
            while (r.next()) {
                result.addRow(r.currentRow());
            }
            Query right = union.getRight();
View Full Code Here

Examples of org.libreplan.business.resources.entities.Worker.query()

    @Test(expected = IllegalArgumentException.class)
    @Transactional
    public void getSatisfactionsForWrongIntervalThrowsException() {
        Worker worker = Worker.create("firstName", "surName", "2333232");
        worker.query().from(CriterionDAOTest.createValidCriterion())
                .enforcedInAll(Interval.range(year(2000), year(1999))).result();
    }

    @Test(expected = IllegalArgumentException.class)
    @Transactional
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.query()

    public Point2D query() {
        Bounds bounds = fetchCallableBounds();
        PointQuery boundsQuery = new BoundsPointQuery(bounds)
            .atPosition(getPosition())
            .atOffset(getOffset());
        return boundsQuery.query();
    }

    //---------------------------------------------------------------------------------------------
    // PRIVATE METHODS.
    //---------------------------------------------------------------------------------------------
View Full Code Here

Examples of org.milowski.db.DBConnection.query()

   {
      final DBCache<UUID,Group> groupCache = db.realmGroupCaches.get(this);
      final DBCache<UUID,RealmUser> userCache = db.realmUserCaches.get(this);
      DBConnection connection = db.getConnection();
      try {
         connection.query(AuthDB.GROUP_BY_REALM,new DBQueryHandler() {
            public void prepare(PreparedStatement s)
               throws SQLException
            {
               s.setInt(1,id);
            }
View Full Code Here

Examples of org.molgenis.framework.db.Database.query()

        iDisplayStart = req.getInt("iDisplayStart");
      }

      // create a query on entity
      Database db = req.getDatabase();
      Query<?> q = db.query(entityClass);

      // sorting
      // iSortCol_0 = sort column number
      // resolve using mDataProp_1='name'
      String sortField = req.getString("mDataProp_" + req.getString("iSortCol_0"));
View Full Code Here

Examples of org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.query()

          LayerNodeIndex spatialIndex = this.getSpatialIndex();
          if (spatialIndex != null) {

            synchronized (spatialIndex) {

              hits = spatialIndex.query(LayerNodeIndex.WITHIN_DISTANCE_QUERY, params);
            }
          }
        }

        // instantiate spatial search results without paging,
View Full Code Here

Examples of org.neo4j.graphdb.index.BatchInserterIndex.query()

        for ( int i = 0; i < 100; i++ )
        {
            assertContains( index.get( "name", "Joe" + i ), ids.get( i ) );
        }
        assertContains( index.query( "name:Joe0 AND other:Schmoe" ),
                ids.get( 0 ) );

        assertContains( index.query( "name", "Joe*" ),
                ids.values().toArray( new Long[ids.size()] ) );
        provider.shutdown();
View Full Code Here

Examples of org.neo4j.graphdb.index.RelationshipIndex.query()

        // START SNIPPET: queryForRelationships
        // find relationships filtering on end node
        // using a query
        IndexHits<Relationship> matrixNeoHits;
        matrixNeoHits = roles.query( "name", "*eo", null, theMatrix );
        Relationship matrixNeo = matrixNeoHits.iterator().next();
        matrixNeoHits.close();
        // END SNIPPET: queryForRelationships
        assertEquals( "Neo", matrixNeo.getProperty( "name" ) );
        actor = matrixNeo.getStartNode();
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.