Examples of Query()


Examples of io.crate.lucene.match.MatchQueryBuilder.query()

                if (fields.size() == 1) {
                    queryBuilder = new MatchQueryBuilder(searchContext, indexCache, matchType, options);
                } else {
                    queryBuilder = new MultiMatchQueryBuilder(searchContext, indexCache, matchType, options);
                }
                return queryBuilder.query(fields, queryString);
            }
        }

        class RegexpMatchQuery extends CmpQuery {
View Full Code Here

Examples of io.druid.query.topn.TopNQueryEngine.query()

            }
        )
    );

    final Iterable<Result<TopNResultValue>> results = Sequences.toList(
        engine.query(
            new TopNQueryBuilder().dataSource("test")
                                  .granularity(QueryGranularity.ALL)
                                  .intervals(Lists.newArrayList(new Interval(0, new DateTime().getMillis())))
                                  .dimension("sally")
                                  .metric("cnt")
View Full Code Here

Examples of io.druid.sql.antlr4.DruidSQLParser.query()

    lexer.addErrorListener(ConsoleErrorListener.INSTANCE);
    parser.addErrorListener(ConsoleErrorListener.INSTANCE);

    try {
      DruidSQLParser.QueryContext queryContext = parser.query();
      if(parser.getNumberOfSyntaxErrors() > 0) throw new IllegalStateException();
//      parser.setBuildParseTree(true);
//      System.err.println(q.toStringTree(parser));
    } catch(Exception e) {
      String msg = e.getMessage();
View Full Code Here

Examples of io.mola.galimatias.URL.query()

                    .withUsername(decodeUnreserved(output.username()))
                    .withPassword(decodeUnreserved(output.password()))
                    .withPath(decodeUnreserved(output.path()));
        }
        return output
                .withQuery(decodeUnreserved(output.query()))
                .withFragment(decodeUnreserved(output.fragment()));
    }

    private String decodeUnreserved(final String input) {
        if (input == null || input.isEmpty()) {
View Full Code Here

Examples of java.io.File.query()

            String id = neMap.get(fromto).get(0);
            Element annot = (Element)saf.query("/saf/annot[@id='" + id + "']").get(0);
            System.out.println(annot.toXML());
            String xpfrom = annot.getAttributeValue("from");
            String xpto = annot.getAttributeValue("to");
            Nodes newAnnotNodes = newSaf.query("/saf/annot[@from='" + xpfrom + "'][@to='" + xpto + "']");
            System.out.println(xpfrom + "\t" + xpto + "\t" + newAnnotNodes.size());
            if(newAnnotNodes.size() > 0) {
              String oid = null;
              String ooid = null;
              for(int k=0;k<newAnnotNodes.size();k++) {
View Full Code Here

Examples of java.time.temporal.TemporalAccessor.query()

        }
        try {
            TemporalAccessor resolved = parseResolved0(text, null);
            for (TemporalQuery<?> query : queries) {
                try {
                    return (TemporalAccessor) resolved.query(query);
                } catch (RuntimeException ex) {
                    // continue
                }
            }
            throw new DateTimeException("Unable to convert parsed text using any of the specified queries");
View Full Code Here

Examples of javax.persistence.NamedNativeQuery.query()

        }

        if (clazz.isAnnotationPresent(NamedNativeQuery.class))
        {
            NamedNativeQuery ann = (NamedNativeQuery) clazz.getAnnotation(NamedNativeQuery.class);
            appMetadata.addQueryToCollection(ann.name(), ann.query(), true, clazz);
        }

        if (clazz.isAnnotationPresent(NamedNativeQueries.class))
        {
            NamedNativeQueries ann = (NamedNativeQueries) clazz.getAnnotation(NamedNativeQueries.class);
View Full Code Here

Examples of javax.persistence.NamedQueries.query()

        }

        if (clazz.isAnnotationPresent(NamedNativeQuery.class))
        {
            NamedNativeQuery ann = (NamedNativeQuery) clazz.getAnnotation(NamedNativeQuery.class);
            appMetadata.addQueryToCollection(ann.name(), ann.query(), true, clazz);
        }

        if (clazz.isAnnotationPresent(NamedNativeQueries.class))
        {
            NamedNativeQueries ann = (NamedNativeQueries) clazz.getAnnotation(NamedNativeQueries.class);
View Full Code Here

Examples of javax.persistence.NamedQuery.query()

                final Class<?> clazz = Class.forName(packge.getName() + "." + entity.getName());
                final Annotation[] annotations = clazz.getAnnotations();
                for (final Annotation annotation : annotations) {
                    if (annotation.annotationType().equals(NamedQuery.class)) {
                        final NamedQuery nq = (NamedQuery) annotation;
                        entity.getQueries().add(new QueryVO(nq.name(), nq.query()));
                    } else if (annotation.annotationType().equals(NamedQueries.class)) {
                        final NamedQueries nqs = (NamedQueries) annotation;
                        for (final NamedQuery nq : nqs.value()) {
                            entity.getQueries().add(new QueryVO(nq.name(), nq.query()));
                        }
View Full Code Here

Examples of jsky.catalog.Catalog.query()

            StringTokenizer token = new StringTokenizer(urlStr.substring(7), "?\t");
            String className = token.nextToken();
            try {
                Class catalogClass = Class.forName(className);
                Catalog catalog = (Catalog) catalogClass.newInstance();
                result = catalog.query(queryArgs);
                if (result instanceof MemoryCatalog && !(result instanceof SkycatTable)) {
                    MemoryCatalog mcat = (MemoryCatalog) result;
                    result = new SkycatTable(_entry, mcat.getDataVector(), mcat.getFields());
                }
            } catch (Exception e) {
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.