Class StringRefiner

java.lang.Object
oracle.webcenter.search.refine.Refiner<String>
oracle.webcenter.search.refine.StringRefiner
All Implemented Interfaces:
Serializable

@Exported public class StringRefiner extends Refiner<String>
The StringRefiner is a String subclass of the base Refiner class that focuses on Modifiers of the String type.
Since:
11.1.1.0.0 Beta 2
See Also:
  • Constructor Details

    • StringRefiner

      public StringRefiner(QName column, String comparator, Map<String,Integer> counters)
      Constructs a StringRefiner on a column with a map of counters registering counts for each String value.
      Parameters:
      column - the qualified QName of a column in a Row of results
      comparator - a comparator to override the default EQUALS, e.g. CONTAINS
      counters - a Map of counters keyed by a String value
    • StringRefiner

      public StringRefiner(QName column, Map<String,Integer> counters)
      Constructs a StringRefiner on a column with a map of counters registering counts for each String value.
      Parameters:
      column - the qualified QName of a column in a Row of results
      counters - a Map of counters keyed by a String value
  • Method Details

    • createRefinement

      protected Refinement<String> createRefinement(String key, int count)
      The only responsbility of the StringRefiner subclass is to create a Refinement of type String; so we just return a new StringRefinement.
      Specified by:
      createRefinement in class Refiner<String>
      Parameters:
      key - the String value to create the StringRefinement with
      count - how many times has this String been used?
      Returns:
      a Refinement of type T