Examples of runQuery()


Examples of org.apache.drill.exec.client.DrillClient.runQuery()

    try(Drillbit bit1 = new Drillbit(config, serviceSet);
        DrillClient client = new DrillClient(config, serviceSet.getCoordinator());) {

      bit1.run();
      client.connect();
      List<QueryResultBatch> results = client.runQuery(org.apache.drill.exec.proto.UserBitShared.QueryType.PHYSICAL,
              Files.toString(FileUtils.getResourceAsFile("/xsort/oom_sort_test.json"),
                      Charsets.UTF_8));
      int count = 0;
      for(QueryResultBatch b : results) {
        if (b.getHeader().getRowCount() != 0)
View Full Code Here

Examples of org.apache.drill.exec.client.DrillClient.runQuery()

    try(Drillbit bit1 = new Drillbit(conf, serviceSet);
        DrillClient client = new DrillClient(conf, serviceSet.getCoordinator());) {

      bit1.run();
      client.connect();
      List<QueryResultBatch> results = client.runQuery(org.apache.drill.exec.proto.UserBitShared.QueryType.PHYSICAL,
              Files.toString(FileUtils.getResourceAsFile("/work/batch/multiple_exchange.json"),
                      Charsets.UTF_8));
      int count = 0;
      for(QueryResultBatch b : results) {
        if (b.getHeader().getRowCount() != 0)
View Full Code Here

Examples of org.apache.drill.exec.client.DrillClient.runQuery()

    throws Exception {
    DrillClient client = new DrillClient(config, coordinator, allocator);
    Listener listener = new Listener(new RecordBatchLoader(allocator));

    client.connect();
    client.runQuery(getType(), query, listener);

    List<Map<String, Object>> result = listener.waitForCompletion();
    client.close();
    return result;
  }
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.runQuery()

    if (criteria != null)
    {
      configureCriterion(query, criteria);
    }

    Iterator it = pc.runQuery(query);
    return new ContextIterator(it);
  }

  private void configureCriterion(final PersistenceQuery query, final TokenContextCriteria criteria)
  {
View Full Code Here

Examples of org.sleuthkit.datamodel.SleuthkitCase.runQuery()

                    + " AND blackboard_attributes.value_text='" + hashDbName + "'"
                    + " AND blackboard_artifacts.artifact_type_id=" + BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT.getTypeID();

            ResultSet rs = null;
            try {
                rs = sleuthkitCase.runQuery(query);
                while (rs.next()) {
                    long id = rs.getLong("obj_id");
                    try {
                        if (ImageAnalyzerModule.isSupportedAndNotKnown(Case.getCurrentCase().getSleuthkitCase().getAbstractFileById(id))) {
                            files.add(id);
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.