Examples of Filter


Examples of com.google.appengine.api.datastore.Query.Filter

      }
    }
  }

  private static Entity findDeviceByRegId(String regId) {
    Filter filter =
        new FilterPredicate(DEVICE_REG_ID_PROPERTY, FilterOperator.EQUAL, regId);
    Query query = new Query(DEVICE_TYPE).setFilter(filter);
    PreparedQuery preparedQuery = datastore.prepare(query);
    List<Entity> entities = preparedQuery.asList(DEFAULT_FETCH_OPTIONS);
    Entity entity = null;
View Full Code Here

Examples of com.google.code.hs4j.Filter

    // find twice
    rs = this.hsClient.find(indexId, new String[] { "dennis" });
    assertTrue(rs.next());

    // find three times
    rs = this.hsClient.find(indexId, new String[] { "dennis" }, FindOperator.EQ, 1, 0, new Filter[]{new Filter(FilterType.FILTER, FindOperator.EQ, 0, "25")});
    assertFalse(rs.next());
    rs = this.hsClient.find(indexId, new String[] { "dennis" }, FindOperator.EQ, 1, 0, new Filter[]{new Filter(FilterType.FILTER, FindOperator.EQ, 0, "27")});
    assertTrue(rs.next());

    System.out.println(rs.getInt("user_id"));
    assertEquals("dennis", rs.getString("user_name"));
    assertEquals("killme2008@gmail.com", rs.getString("user_email"));
View Full Code Here

Examples of com.google.testing.testify.risk.frontend.model.Filter

  }

  @UiHandler("addFilterButton")
  public void handleAddFilterButtonClicked(ClickEvent event) {
    if (presenter != null) {
      Filter filter = new Filter();

      String selected = filterTypeBox.getValue(filterTypeBox.getSelectedIndex());
      filter.setFilterType(DatumType.valueOf(selected));
      presenter.addFilter(filter);
    }
  }
View Full Code Here

Examples of com.headius.invokebinder.transform.Filter

     * @param index     the index of the first argument to filter
     * @param functions the array of functions to transform the arguments
     * @return a new Binder
     */
    public Binder filter(int index, MethodHandle... functions) {
        return new Binder(this, new Filter(index, functions));
    }
View Full Code Here

Examples of com.hellblazer.slp.Filter

                                                                                throws InvalidSyntaxException {
        if (log.isTraceEnabled()) {
            log.trace("adding listener: " + listener + " on query: " + query);
        }
        List<ServiceReference> references;
        listeners.add(new ListenerRegistration(listener, new Filter(query)));
        references = getServiceReferences(null, query);
        for (ServiceReference reference : references) {
            final ServiceReference ref = reference;
            executor.execute(new Runnable() {
                @Override
View Full Code Here

Examples of com.hp.hpl.jena.util.iterator.Filter

  }

  @Override
  public ExtendedIterator allNodes() {
    ExtendedIterator tripleIter = graph.find(null, RDF.subject.asNode(), null);
    final ExtendedIterator filteredTripleIter = tripleIter.filterKeep(new Filter() {

      @Override
      public boolean accept(Object o) {
        Triple t = (Triple) o;
        return hasTriple(t.getSubject());
View Full Code Here

Examples of com.im.imjutil.util.Filter

          queryJPA = manager.createNativeQuery(queryString);
      } else {
        queryJPA = manager.createQuery(queryString);
      }
     
      Filter filter = new Filter().addFilters(filters);
     
      // Associa os valores
      for (Pair<String, Object> pair : filter) {
        setQuery(queryJPA, pair);
      }
View Full Code Here

Examples of com.intellij.execution.testframework.Filter

  }

  @NotNull
  @Override
  protected Filter getFilter(Project project, GlobalSearchScope scope) {
    return new Filter() {
      @Override
      public boolean shouldAccept(AbstractTestProxy test) {
        return !test.isIgnored() && (test.isInterrupted() || test.isDefect());
      }
    };
View Full Code Here

Examples of com.intellij.ide.util.treeView.smartTree.Filter

  }

  @Override
  @NotNull
  public Filter[] getFilters() {
    return new Filter[]{new Filter() {
      @Override
      public boolean isVisible(final TreeElement treeElement) {
        DomStructureTreeElement domStructureTreeElement = (DomStructureTreeElement)treeElement;
        return !(domStructureTreeElement.getElement() instanceof Param);
      }
View Full Code Here

Examples of com.intellij.javaee.model.xml.web.Filter

              final XmlFile webXmlFile = configFile.getXmlFile();
              final WebApp webApp = JamCommonUtil.getRootElement(webXmlFile, WebApp.class, null);
              if (webApp == null) return;
              if (!FileModificationService.getInstance().prepareFileForWrite(webXmlFile)) return;

              final Filter strutsFilter = webApp.addFilter();
              strutsFilter.getFilterName().setStringValue("struts2");

              @NonNls final String filterClass = templateProvider.is21orNewer() ?
                  StrutsConstants.STRUTS_2_1_FILTER_CLASS :
                  StrutsConstants.STRUTS_2_0_FILTER_CLASS;
              strutsFilter.getFilterClass().setStringValue(filterClass);

              final FilterMapping filterMapping = webApp.addFilterMapping();
              filterMapping.getFilterName().setValue(strutsFilter);
              filterMapping.addUrlPattern().setStringValue("/*");
            }
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.