Examples of find()


Examples of com.hp.hpl.jena.tdb.nodetable.NodeTupleTable.find()

            NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;
            // Don't worry about abortable - this iterator should be fast
            // (with normal indexing - at least one G???).
            // Either it finds a starting point, or it doesn't.  We are only
            // interested in the first .hasNext.
            Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;
            if ( filter != null )
                iter1 = Iter.filter(iter1, filter) ;
            exists = iter1.hasNext() ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn.find()

                            txnGraph.end();
                            nbQuadruplesAdded.incrementAndGet();
                        } else {
                            DatasetGraphTxn txnGraph =
                                    storeConnection.begin(ReadWrite.READ);
                            txnGraph.find(Node.ANY, Node.ANY, Node.ANY, Node.ANY);
                            //Iterator<Quad> iter = txnGraph.find(Node.ANY, Node.ANY, Node.ANY, Node.ANY);
                            //Iter.count(iter) ; // Consume
                            txnGraph.end();
                        }
                    } finally {
View Full Code Here

Examples of com.hp.hpl.jena.util.MonitorGraph.find()

        additions.clear();
        deletions.clear();
        monitor.snapshot(additions, deletions);
        TestUtil.assertIteratorValues(this, additions.iterator(), new Object[] {t4, t5});
        TestUtil.assertIteratorValues(this, deletions.iterator(), new Object[] {t1, t2});
        TestUtil.assertIteratorValues(this, monitor.find(Node.ANY, Node.ANY, Node.ANY), new Object[] {t3, t4, t5});
    }
   
    /**
     * Monitoring test.
     */
 
View Full Code Here

Examples of com.ibm.icu.impl.TextTrieMap.find()

        String isoResult = null;

          // look for the names
        TextTrieMap currencyNameTrie = (TextTrieMap)currencyTrieVec.elementAt(1);
        CurrencyNameResultHandler handler = new CurrencyNameResultHandler();
        currencyNameTrie.find(text, pos.getIndex(), handler);
        List list = handler.getMatchedCurrencyNames();
        if (list != null && list.size() != 0) {
            Iterator it = list.iterator();
            while (it.hasNext()) {
                CurrencyStringInfo info = (CurrencyStringInfo)it.next();
View Full Code Here

Examples of com.impetus.client.couchdb.CouchDBClient.find()

            object.setPersonName(originalName);
            em.persist(object);

            if (i >= 5)
            {
                PersonCouchDB result = (PersonCouchDB) client.find(PersonCouchDB.class, ROW_KEY + i);
                Assert.assertNull(result);
            }
            else if (i > 0 && i % 4 == 0)
            {
                PersonCouchDB result = (PersonCouchDB) client.find(PersonCouchDB.class, ROW_KEY + i);
View Full Code Here

Examples of com.impetus.client.redis.RedisClient.find()

            object.setPersonName(originalName);
            em.persist(object);

            if (i >= 5)
            {
                PersonRedis result = (PersonRedis) client.find(PersonRedis.class, ROW_KEY + i);
                Assert.assertNull(result);
            }
            else if (i > 0 && i % 4 == 0)
            {
                PersonRedis result = (PersonRedis) client.find(PersonRedis.class, ROW_KEY + i);
View Full Code Here

Examples of com.impetus.kundera.client.Client.find()

                    Client targetEntityClient = delegator.getClient(childMetadata);

                    for (Object targetEntityKey : relationValueMap.keySet())
                    {
                        // Find target entity from database
                        Object targetEntity = targetEntityClient.find(childMetadata.getEntityClazz(), targetEntityKey);
                        if (targetEntity != null && targetEntity instanceof EnhanceEntity)
                        {
                            targetEntity = ((EnhanceEntity) targetEntity).getEntity();
                        }
View Full Code Here

Examples of com.impetus.kundera.graph.Node.find()

            node.setPersistenceDelegator(this);

            try
            {
                lock.readLock().lock();
                node.find();
            }
            finally
            {
                lock.readLock().unlock();
            }
View Full Code Here

Examples of com.inmethod.grid.examples.contact.ContactsDatabase.find()

   
    // since we don't know the actual item count we try to load one item more than requested
    // if there are n+1 items we know there will be something on the next page
   
    // get the actual items
    List<Contact> resultList = database.find(query.getFrom(), query.getCount() + 1, sortProperty, sortAsc);
    result.setItems(resultList.iterator());
   
    if (resultList.size() == query.getCount() + 1) {
      // if we managed to load n + 1 items (thus there will be another page)
      result.setTotalCount(IQueryResult.MORE_ITEMS);
View Full Code Here

Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection.find()

        }
      }
      if (schemaPattern == null || schemaPattern.equals(SCHEMA_CATALOG)) {
        OCMetadataCatalogCollection catalogCollection = metadata
            .getCatalogs();
        OCCatalogMetadataObject cmo = catalogCollection
            .find(tableNamePattern);
        if (cmo != null) {

          OCMetadataAttributeCollection mac = cmo.getAttributes();
          attribute2resultSet(mac, lrs, SCHEMA_CATALOG,
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.