Examples of find()


Examples of com.google.gwt.query.client.GQuery.find()

    }

    private void noResults(String terms) {
        GQuery noResults =
                $(ChozenTemplate.templates.noResults(css.noResults(), resultsNoneFound).asString());
        noResults.find("span").html(terms);

        searchResults.append(noResults);
    }

    private void resultActivate(GQuery query) {
View Full Code Here

Examples of com.google.web.bindery.requestfactory.shared.SimpleBarRequest.find()

      @Override
      public void onSuccess(Void response) {
        final List<SimpleBarProxy> reloaded = new ArrayList<SimpleBarProxy>();
        SimpleBarRequest ctx = req.simpleBarRequest();
        for (SimpleBarProxy proxy : proxies) {
          ctx.find(proxy.stableId()).to(new Receiver<SimpleBarProxy>() {
            @Override
            public void onSuccess(SimpleBarProxy response) {
              reloaded.add(response);
            }
          });
View Full Code Here

Examples of com.googlecode.javacv.ObjectFinder.find()

            cvCvtColor(cameraImage, grey2, CV_BGR2GRAY);
        }

        objectFinderSettings.setObjectImage(grey1);
        ObjectFinder objectFinder = new ObjectFinder(objectFinderSettings);
        double[] roiPts = objectFinder.find(grey2);
        if (grey1 != objectImage) {
            grey1.release();
        }
        if (grey2 != cameraImage) {
            grey2.release();
View Full Code Here

Examples of com.googlecode.objectify.Objectify.find()

  public static WikiUser findById(Long userId) {
    if (userId == null) {
      return null;
    }
    Objectify ofy = OS.begin();
    return ofy.find(WikiUser.class, userId);
  }

  public static QueryResultIterable<WikiUser> findByFragment(
      String usernameFragment) {
    // List<WikiUser> resultList = null;
View Full Code Here

Examples of com.hp.hpl.jena.graph.Graph.find()

       
        //Set bindings = new HashSet() ;    // Use a Set if you want unique results.
        List<Binding> bindings = new ArrayList<Binding>() ;   // Use a list if you want counting results.
        Graph graph = execCxt.getActiveGraph() ;
       
        ExtendedIterator<Triple>iter = graph.find(Node.ANY, Node.ANY, Node.ANY) ;
        for ( ; iter.hasNext() ; )
        {
            Triple t = iter.next() ;
            slot(bindings, input, t.getSubject(),   subjVar, nodeLocalname) ;
            slot(bindings, input, t.getPredicate(), subjVar, nodeLocalname) ;
View Full Code Here

Examples of com.hp.hpl.jena.reasoner.InfGraph.find()

    BindingEnvironment env = context.getEnv();
    InfGraph graph = context.getGraph();

    Node s = env.getGroundVersion(args[0]);
    Node p = env.getGroundVersion(args[1]);
    ExtendedIterator i = graph.find(s,p,null);
    int n = i.toSet().size();
   
    TypeMapper tm = TypeMapper.getInstance();
    RDFDatatype type = tm.getTypeByName(XSD.xint.getURI());
    Node count = Node.createLiteral(Integer.toString(n),null,type);
View Full Code Here

Examples of com.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveGraphCache.find()

        cache.addRelation(new Triple(a, closedP, b))
        cache.addRelation(new Triple(c, closedP, a));       
        cache.addRelation(new Triple(c, closedP, b));
        cache.addRelation(new Triple(a, closedP, c));    
        TestUtil.assertIteratorValues(this,
            cache.find(new TriplePattern(a, directP, null)),
            new Object[] {
                new Triple(a, closedP, a),
                new Triple(a, closedP, b),
                new Triple(a, closedP, c),
            });
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.DatasetGraph.find()

        RDFDataset result = new RDFDataset() ;
        if ( object instanceof DatasetGraph )
        {
            DatasetGraph dsg = (DatasetGraph)object ;

            Iterator<Quad> iter = dsg.find() ;
            for ( ; iter.hasNext() ; )
            {
                Quad q = iter.next() ;
                Node s = q.getSubject() ;
                Node p = q.getPredicate() ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.graph.GraphUnionRead.find()

   
    @Test public void gr_union_01()
    {
        List<Node> gnodes = list(gn1, gn2) ;
        Graph g = new GraphUnionRead(dsg, gnodes) ;
        long x = Iter.count(g.find(null, null, null)) ;
        assertEquals(3, x) ;
    }
   
    @Test public void gr_union_02()
    {
View Full Code Here

Examples of com.hp.hpl.jena.tdb.index.TupleTable.find()

    {
        TupleTable table = create() ;
        add(table, n1, n2, n3) ;
        // Cast removes compile lint warning.
        Tuple<NodeId> pat = createTuple((NodeId)null, null, null) ;
        Iterator<Tuple<NodeId>> iter = table.find(pat) ;
        List<Tuple<NodeId>> x = Iter.toList(iter) ;
        int z = x.size() ;
        assertEquals(1, z) ;
        Tuple<NodeId> e1 = x.get(0) ;
        assertEquals(createTuple(n1, n2, n3) , e1) ;
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.