Examples of Query()


Examples of com.socrata.api.Soda2Producer.query()

            //
            //Verify the row we expect is really there.
            final SoqlQuery   lookupTestRow = new SoqlQueryBuilder()
                        .setWhereClause("id='8880962'")
                        .build();
            final List queryResults = producer.query(dataset.getId(), lookupTestRow, Soda2Producer.HASH_RETURN_TYPE);
            TestCase.assertEquals(1, queryResults.size());

            final Map result = (Map) queryResults.get(0);
            TestCase.assertEquals("8880962", result.get("id"));
            TestCase.assertEquals("THEFT", result.get("primary_type"));
View Full Code Here

Examples of com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor.query()

            JMUnmarshallerHandlerImpl h = (JMUnmarshallerHandlerImpl) c.createUnmarshaller().getUnmarshallerHandler();
            DocumentDefaultHandler.setUnmarshallerHandler(h);
            ElementDefaultHandler.initData();
            conn = getTConnection();
            TXMLObjectAccessor accessor = conn.newXMLObjectAccessor(TAccessLocation.newInstance(collection), model);
            TResponse response = accessor.query(TQuery.newInstance(pQuery));
            for (TXMLObjectIterator iter = response.getXMLObjectIterator();
                 iter.hasNext()) {
                TXMLObject object = iter.next();
                pObserver.notify(((TJMElement) object.getElement()).getJMElement());
            }
View Full Code Here

Examples of com.splout.db.common.SploutClient.query()

      }
    }

    previousVersion = status.getTablespaceMap().get("pagecountsintegration").getVersion();

    QueryStatus qStatus = client.query("pagecountsintegration", "*", "SELECT * FROM pagecounts;", null);
    System.out.println(qStatus.getResult());

    if(qStatus.getResult() == null) {
      throw new RuntimeException("Something failed as query() is returning null!");
    }
View Full Code Here

Examples of com.splout.db.engine.SQLite4JavaClient.query()

    for(int i = 0; i < N_DNODES; i++) {
      File dbData = new File(deployData, i + ".db");
      SQLite4JavaClient manager = new SQLite4JavaClient(dbData + "", null);
      // We create a foo database with one integer and one text
      manager.query("CREATE TABLE foo (intCol INT, strCol TEXT);", 100);
      // We insert as many values as the ones we defined in the partition map
      for(int j = i * 10; j < (i * 10 + 10); j++) {
        manager.query("INSERT INTO foo VALUES (" + j + ", " + "'" + randomStr + "');", 100);
      }
      manager.close();
View Full Code Here

Examples of com.splout.db.engine.SQLite4JavaManager.query()

      ClassNotFoundException, EngineException {
    File dbFolder = new File(where);
    dbFolder.mkdir();
    final SQLite4JavaManager manager = new SQLite4JavaManager();
    manager.init(new File(where + "/" + "foo.db"), null, null);
    manager.query("DROP TABLE IF EXISTS t;", 100);
    manager.query("CREATE TABLE t (a INT, b TEXT);", 100);
    manager.query("INSERT INTO t (a, b) VALUES (" + a + ", \"" + b + "\")", 100);
    manager.close();
  }
View Full Code Here

Examples of com.sun.appserv.management.helper.StatefulLoggingHelper.query()

      for( final Logging logging : loggings )
      {
          assert( logging != null );
          final StatefulLoggingHelper helper  = createHelper(logging);
         
          final LogQueryResult    result  = helper.query();
          validateResult( result );
      }
     
      printElapsed( "testQuery", start);
  }
View Full Code Here

Examples of com.sun.syndication.aqueduct.prevayler.PrevaylerSyndFeedDAO.query()

            System.out.println("Feeds newly inserted: " + insertCount);
            System.out.println("These feeds are already persisted:");
            SyndFeed pFeed;
            for (int i = 0; i < args.length; i++)
            {
                pFeed = syndFeedDAO.query(args[i]);
                if(pFeed!=null) System.out.println("\t" + pFeed.getTitle());
            }
        }

        // Report how many feeds persisted so far.
View Full Code Here

Examples of com.tangosol.net.InvocationService.query()

    public static Map getNodeInfo() {

        InvocationService service = com.tangosol.net.CacheFactory.getInvocationService("OpenFire Cluster Service");

        // Run cluster-wide stats query
        Map results = service.query(new AbstractInvocable() {
                public void run() {
                    // Get runtime stats - mem and time:
                    Runtime runtime = Runtime.getRuntime();
                    long free = runtime.freeMemory();
                    long total = runtime.totalMemory();
View Full Code Here

Examples of com.taobao.tdhs.client.TDHSClient.query()

    @Test
    public void testBetween() throws TDHSException {
        TDHSClient client = new TDHSClientImpl(new InetSocketAddress("t-wentong-u.local", 9999), 1);

        TDHSResponse r = client.query().use("test").select("id", "v", "i").from("test").where().fields("i")
                .between(new String[]{"2"},
                        new String[]{"5"}).and().field("i").not("2").and().field("i").not("5").get();

        List<List<String>> fieldData = r.getFieldData();
        for (List<String> fd : fieldData) {
View Full Code Here

Examples of com.taobao.tdhs.client.TDHSClientImpl.query()

    @Test
    public void testBetween() throws TDHSException {
        TDHSClient client = new TDHSClientImpl(new InetSocketAddress("t-wentong-u.local", 9999), 1);

        TDHSResponse r = client.query().use("test").select("id", "v", "i").from("test").where().fields("i")
                .between(new String[]{"2"},
                        new String[]{"5"}).and().field("i").not("2").and().field("i").not("5").get();

        List<List<String>> fieldData = r.getFieldData();
        for (List<String> fd : fieldData) {
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.