Examples of query()


Examples of lib.PatPeter.SQLibrary.Database.query()

      public void run() {
        synchronized (dbLock) {
          try {
            final Database db = (Database) DatabaseStorage.this.db;
            if (db != null)
              db.query("SELECT * FROM " + TABLE_NAME + " LIMIT 1");
          } catch (final SQLException e) {}
        }
      }
    };
    Skript.closeOnDisable(keepAlive);
View Full Code Here

Examples of mil.nga.giat.geowave.accumulo.AccumuloDataStore.query()

    // this file is the filtered dataset (using the previous file as a
    // filter) so use it to ensure the query worked
    final DistributableQuery query = resourceToQuery(savedFilterResource);
    final CloseableIterator<?> actualResults;
    if (index == null) {
      actualResults = geowaveStore.query(query);
    }
    else {
      actualResults = geowaveStore.query(
          index,
          query);
View Full Code Here

Examples of mil.nga.giat.geowave.accumulo.query.AccumuloConstraintsQuery.query()

            authorizations);
      }
      else {
        continue;
      }
      results.add(accumuloQuery.query(
          accumuloOperations,
          adapterStore,
          limit,
          true));
      indexCount++;
View Full Code Here

Examples of mil.nga.giat.geowave.accumulo.query.AccumuloRowIdQuery.query()

      final Index index,
      final ByteArrayId rowId ) {
    final AccumuloRowIdQuery q = new AccumuloRowIdQuery(
        index,
        rowId);
    return (T) q.query(
        accumuloOperations,
        adapterStore);
  }

  @Override
View Full Code Here

Examples of mil.nga.giat.geowave.accumulo.query.AccumuloRowPrefixQuery.query()

      final String... additionalAuthorizations ) {
    final AccumuloRowPrefixQuery q = new AccumuloRowPrefixQuery(
        index,
        rowPrefix,
        additionalAuthorizations);
    return q.query(
        accumuloOperations,
        adapterStore);
  }

  @Override
View Full Code Here

Examples of mil.nga.giat.geowave.vector.query.SpatialDecimationQuery.query()

              authorizations);
        }
        else {
          continue;
        }
        results.add((CloseableIterator<SimpleFeature>) accumuloQuery.query(
            accumuloOperations,
            new MemoryAdapterStore(
                new DataAdapter[] {
                  adapter
                }),
View Full Code Here

Examples of net.datacrow.core.services.OnlineSearchHelper.query()

            osh.setServer(client.getServer());
            osh.setRegion(client.getRegion());
            osh.setMode(client.getSearchMode());
            osh.setMaximum(2);
           
            Collection<DcObject> results = osh.query(searchString, dco);
            for (DcObject result : results) {
                if (matches(result, searchString, fieldIdx)) {
                    merge(dco, result, osh);
                    updated = true;
                    break;
View Full Code Here

Examples of net.fortytwo.ripple.model.ModelConnection.query()

        SesameInputAdapter.parse(is, importer, "", RDFFormat.N3);
        mc.commit();

        Collector<RippleValue> cases = new Collector<RippleValue>();
        StatementPatternQuery query = new StatementPatternQuery(null, TYPE, URITEST);
        mc.query(query, cases, false);

        for (Object aCase : cases) {
            RippleValue caseValue = (RippleValue) aCase;
            (new UriTestCase(caseValue, mc)).test(mc);
        }
View Full Code Here

Examples of net.sf.autodao.Finder.query()

    final Finder f = AnnotationUtils.getAnnotation(method, Finder.class);
    if (f == null)
      throw new SpecificationViolationException("Method is neither a finder method nor is implemented in AutoDAO", method);

    final int sum
        = (hasText(f.query()) ? 1 : 0)
        + (hasText(f.queryName()) ? 1 : 0)
        + (hasText(f.sqlQuery()) ? 1 : 0)
        + (hasText(f.sqlQueryName()) ? 1 : 0);
    if (sum < 1)
      throw new SpecificationViolationException("You need to specify at least one of: query, queryName, sqlQuery, sqlQueryName", method);
View Full Code Here

Examples of net.sf.logsaw.index.IIndexService.query()

      loadLogFile("sample-1.log.xml");
      createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
      indexService.synchronize(getLogResource(), null);
      IQueryContext ctx = indexService.createQueryContext(getLogResource());
      try {
        ResultPage p = indexService.query(ctx, new LinkedList<ARestriction<?>>(), 2, 2);
        assertEquals(2, p.getItems().size());
        assertEquals("Setting up property manager MBean and JMX layer", p.getItems().get(0).get(Log4JFieldProvider.FIELD_MESSAGE));
        assertEquals("Starting recovery manager", p.getItems().get(1).get(Log4JFieldProvider.FIELD_MESSAGE));
        assertEquals(5, p.getTotalHits())
      } finally {
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.