fleXplorer.util
Class ZPSorting

java.lang.Object
  extended by fleXplorer.util.ZPSorting

public class ZPSorting
extends java.lang.Object

Version:
1.0
Author:
Nikos Armenatzoglou

Constructor Summary
ZPSorting()
           
 
Method Summary
 java.util.Collection<Term<FacetsType>> countSortingAscenting(java.util.Collection<Term<FacetsType>> ft)
          Sorts a set of ascending with respect to the count information.
 java.util.Map<Term<FacetsType>,java.lang.Integer> countSortingAscenting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree)
          Sorts the zoom points ascending with respect to the count information.
 java.util.Collection<Term<FacetsType>> countSortingDescenting(java.util.Collection<Term<FacetsType>> ft)
          Sorts a set of descending with respect to the count information.
 java.util.Map<Term<FacetsType>,java.lang.Integer> countSortingDescenting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree)
           
 java.util.Collection<Term<FacetsType>> valueSorting(java.util.Collection<Term<FacetsType>> ft, java.util.Comparator c)
          Sorts a set of terms with respect to the value of each term.
 java.util.Map<Term<FacetsType>,java.lang.Integer> valueSorting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree, java.util.Comparator c)
          Sorts the zoom points with respect to the value of each term.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZPSorting

public ZPSorting()
Method Detail

countSortingDescenting

public java.util.Map<Term<FacetsType>,java.lang.Integer> countSortingDescenting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree)

countSortingAscenting

public java.util.Map<Term<FacetsType>,java.lang.Integer> countSortingAscenting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree)
Sorts the zoom points ascending with respect to the count information.

Parameters:
facetedTree - the facet.
Returns:
the ordered facet.

valueSorting

public java.util.Map<Term<FacetsType>,java.lang.Integer> valueSorting(java.util.HashMap<Term<FacetsType>,java.lang.Integer> facetedTree,
                                                                      java.util.Comparator c)
Sorts the zoom points with respect to the value of each term.

Parameters:
facetedTree - the facet.
c - the comparator (according to the generic type of the terms)
Returns:
the ordered facet.

valueSorting

public java.util.Collection<Term<FacetsType>> valueSorting(java.util.Collection<Term<FacetsType>> ft,
                                                           java.util.Comparator c)
Sorts a set of terms with respect to the value of each term.

Parameters:
ft - the set of terms.
c - the comparator (according to the generic type of the terms)
Returns:
the ordered set.

countSortingAscenting

public java.util.Collection<Term<FacetsType>> countSortingAscenting(java.util.Collection<Term<FacetsType>> ft)
Sorts a set of ascending with respect to the count information.

Parameters:
ft - the set of terms.
Returns:
the ordered set.

countSortingDescenting

public java.util.Collection<Term<FacetsType>> countSortingDescenting(java.util.Collection<Term<FacetsType>> ft)
Sorts a set of descending with respect to the count information.

Parameters:
ft - the set of terms.
Returns:
the ordered set.