Class RangeOrdToLabel

java.lang.Object
org.apache.lucene.sandbox.facet.labels.RangeOrdToLabel
All Implemented Interfaces:
OrdToLabel

public class RangeOrdToLabel extends Object implements OrdToLabel
OrdToLabel for ranges.
  • Field Details

    • ranges

      private final Range[] ranges
  • Constructor Details

    • RangeOrdToLabel

      public RangeOrdToLabel(Range[] inputRanges)
      Constructor that takes array of Range objects as input
  • Method Details

    • getLabel

      public FacetLabel getLabel(int ordinal)
      Description copied from interface: OrdToLabel
      get label of one ord TODO: what do we return when ordinal is not valid? null?
      Specified by:
      getLabel in interface OrdToLabel
    • getLabels

      public FacetLabel[] getLabels(int[] ordinals)
      Description copied from interface: OrdToLabel
      get labels for multiple ords
      Specified by:
      getLabels in interface OrdToLabel