Class TdbKvpFacet

  • All Implemented Interfaces:
    java.lang.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 Detail

      • TdbKvpFacet

        public TdbKvpFacet​(java.lang.String namefield,
                           java.lang.String valuefield,
                           java.lang.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​(java.lang.String namefield,
                           java.lang.String valuefield,
                           java.lang.String facetName,
                           java.lang.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.