Package com.tietoenator.trip.jxp.facet
Class TdbKvpFacet
- java.lang.Object
-
- com.tietoenator.trip.jxp.facet.TdbFacet
-
- com.tietoenator.trip.jxp.facet.TdbFieldTermFacet
-
- com.tietoenator.trip.jxp.facet.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 Summary
Constructors Constructor Description TdbKvpFacet(java.lang.String namefield, java.lang.String valuefield, java.lang.String facetName)
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.TdbKvpFacet(java.lang.String namefield, java.lang.String valuefield, java.lang.String facetName, java.lang.String mask)
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.
-
Method Summary
-
Methods inherited from class com.tietoenator.trip.jxp.facet.TdbFieldTermFacet
clear, close, getMask, getValue, setMask
-
Methods inherited from class com.tietoenator.trip.jxp.facet.TdbFacet
getBaselineKey, getBaselineSize, getDatabase, getDefaultTimeout, getFetchFrom, getFetchTo, getLowerFrequencyLimit, getName, getSearchSet, getSortOrder, getTimeout, getUpdateValueCount, getUpperFrequencyLimit, getValueCount, isBaselineAtEnd, isOpenExisting, isRegisterBaseline, isResetBaseline, isUseBaseline, iterator, setBaselineAtEnd, setBaselineKey, setBaselineSize, setDatabase, setDefaultTimeout, setFetchFrom, setFetchTo, setFrequencyLimits, setOpenExisting, setRegisterBaseline, setResetBaseline, setSearchSet, setSortOrder, setTimeout, setUseBaseline
-
-
-
-
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 storedvaluefield
- Name of (phrase) field where facet values are storedfacetName
- 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 storedvaluefield
- Name of (phrase) field where facet values are storedfacetName
- Facet name (value from namefield)mask
- Comparison mask to select values from the field- Throws:
TdbException
- If invalid arguments were supplied.
-
-