Class TdbKvpFacet

All Implemented Interfaces:
Iterable<TdbFacetValue>

public class TdbKvpFacet extends TdbFieldTermFacet
A facet based on a key/value pair (KVP) display order, using the values from one field as facet names, tupled with another field that contains the facet values.
  • Constructor Details

    • TdbKvpFacet

      public TdbKvpFacet(String namefield, String valuefield, String facetName) throws TdbException
      Create a facet based on a key/value pair (KVP) display order, using the values from one field as facet names, tupled with another field that contains the facet values.
      Parameters:
      namefield - Name of (phrase) field where facet names are stored
      valuefield - Name of (phrase) field where facet values are stored
      facetName - Facet name (value from namefield)
      Throws:
      TdbException - If invalid arguments were supplied.
    • TdbKvpFacet

      public TdbKvpFacet(String namefield, String valuefield, String facetName, String mask) throws TdbException
      Create a facet based on a key/value pair (KVP) display order, using the values from one field as facet names, tupled with another field that contains the facet values.
      Parameters:
      namefield - Name of (phrase) field where facet names are stored
      valuefield - Name of (phrase) field where facet values are stored
      facetName - Facet name (value from namefield)
      mask - Comparison mask to select values from the field
      Throws:
      TdbException - If invalid arguments were supplied.