Examples of FilterSpec


Examples of com.google.livingstories.client.FilterSpec

    currentFilters = filter;
    refreshFilters();
  }

  private FilterSpec copyCurrentFilterSpec() {
    return currentFilters == null ? new FilterSpec() : new FilterSpec(currentFilters);
  }
View Full Code Here

Examples of com.google.livingstories.client.FilterSpec

   
    @Override
    public void onClick(ClickEvent event) {
      if (currentFilters.contentItemType != contentItemType || currentFilters.assetType != assetType
          || currentFilters.opinion != opinion) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.contentItemType = contentItemType;
        newFilter.assetType = assetType;
        newFilter.opinion = opinion;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(), filterName);
      }
    }
View Full Code Here

Examples of com.google.livingstories.client.FilterSpec

    }
   
    @Override
    public void onClick(ClickEvent event) {
      if (importantOnly != currentFilters.importantOnly) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.importantOnly = importantOnly;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(),
            importantOnly ? "Most important" : "All importance");
      }
    }
View Full Code Here

Examples of com.google.livingstories.client.FilterSpec

    }
   
    @Override
    public void onClick(ClickEvent event) {
      if (oldestFirst != currentFilters.oldestFirst) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.oldestFirst = oldestFirst;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(),
            oldestFirst ? "Oldest first" : "Newest first");
      }
    }
View Full Code Here

Examples of com.vmware.vim.binding.vmodl.query.PropertyCollector.FilterSpec

      ObjectSpec objSpec = new ObjectSpec();
      objSpec.setObj(eventHistoryCollectorMoRef);
      objSpec.setSkip(false);
      objSpec.setSelectSet(new SelectionSpec[] { });

      FilterSpec filterSpec = new FilterSpec();
      filterSpec.setPropSet(new PropertySpec[] { propSpec });
      filterSpec.setObjectSet(new ObjectSpec[] { objSpec });
      return filterSpec;
   }
View Full Code Here

Examples of com.vmware.vim.binding.vmodl.query.PropertyCollector.FilterSpec

      tSpec.setPath("recentTask");
      tSpec.setSkip(false);

      objSpec.setSelectSet(new SelectionSpec[] {tSpec});

      FilterSpec filterSpec = new FilterSpec();
      filterSpec.setPropSet(new PropertySpec[] { propSpec });
      filterSpec.setObjectSet(new ObjectSpec[] { objSpec });
      return filterSpec;
   }
View Full Code Here

Examples of org.apache.pig.impl.eval.FilterSpec

           
            // note: if there are no output constraints, we don't have to do anything because the input operator
            // will ensure that we get at least one input tuple, which in turns ensures that we output at least one tuple
           
        } else if (spec instanceof FilterSpec) {
            FilterSpec fSpec = (FilterSpec) spec;
           
            Cond filterCond = fSpec.cond;
           
            // if necessary, insert one or more positive examples (i.e. tuples that pass the filter)
            if (outputConstraints.cardinality() > 0) {     // there's one or more output constraints; generate corresponding input constraints
View Full Code Here

Examples of org.apache.pig.impl.eval.FilterSpec

        Collection<IdentityHashSet<Tuple>> equivClasses = new LinkedList<IdentityHashSet<Tuple>>();
       
        EvalSpec spec = op.getSpec();
       
        if (spec instanceof FilterSpec) {    // it's a FILTER
            FilterSpec fSpec = (FilterSpec) spec;

            // make two equivalence classes: one for tuples that pass the filter, and one for tuples that fail the filter
            IdentityHashSet<Tuple> pass = new IdentityHashSet<Tuple>();
            IdentityHashSet<Tuple> fail = new IdentityHashSet<Tuple>();
            equivClasses.add(pass);
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.