Package org.hibernate.search.query.facet

Examples of org.hibernate.search.query.facet.Facet


  private List<Facet> createSortedFacetList(FacetCounter counter, FacetingRequestImpl request) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : counter.getCounts().entrySet() ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      if ( facetRequest.getMaxNumberOfFacets() > 0 && includedFacetCount == facetRequest.getMaxNumberOfFacets() ) {
        break;
      }
View Full Code Here


  private List<Facet> createRangeFacetList(Collection<Entry<String, Integer>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

  private List<Facet> createRangeFacetList(Collection<Entry<String, Integer>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

  private List<Facet> createRangeFacetList(Collection<Entry<String, IntegerWrapper>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList( countEntryList.size() );
    int includedFacetCount = 0;
    for ( Map.Entry<String, IntegerWrapper> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue().getCount() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

  private List<Facet> createRangeFacetList(Collection<Entry<String, Integer>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

  private List<Facet> createRangeFacetList(Collection<Entry<String, Integer>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList();
    int includedFacetCount = 0;
    for ( Map.Entry<String, Integer> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

  private List<Facet> createRangeFacetList(Collection<Entry<String, IntegerWrapper>> countEntryList, FacetingRequestImpl request, int count) {
    List<Facet> facetList = newArrayList( countEntryList.size() );
    int includedFacetCount = 0;
    for ( Map.Entry<String, IntegerWrapper> countEntry : countEntryList ) {
      Facet facet = request.createFacet( countEntry.getKey(), countEntry.getValue().getCount() );
      if ( !request.hasZeroCountsIncluded() && facet.getCount() == 0 ) {
        continue;
      }
      facetList.add( facet );
      includedFacetCount++;
      if ( includedFacetCount == count ) {
View Full Code Here

TOP

Related Classes of org.hibernate.search.query.facet.Facet

Copyright © 2018 www.massapicom. 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.