Package com.tietoenator.trip.jxp.facet
Class TdbFacetValue
java.lang.Object
com.tietoenator.trip.jxp.facet.TdbFacetValue
Represents one of the values of a facet.
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the number of records in which the facet value occurred in the baseline.long
Retrieve the number of records in which the facet value occurred in the baseline.long
Retrieve the number of records in which the term occursint
Retrieve the number of records in which the facet value occursboolean
Returns true if the baseline count information is valid for this value.toString()
Retrieve the value of the facet.
-
Method Details
-
toString
Retrieve the value of the facet. -
getLongRecordCount
public long getLongRecordCount()Retrieve the number of records in which the term occurs- Returns:
- Record count
- Since:
- 8.0
-
getRecordCount
public int getRecordCount()Retrieve the number of records in which the facet value occursIf the record count is larger than Integer.MAX_VALUE, this property will return Integer.MAX_VALUE. To get the actual record count of terms that have a count larger than Integer.MAX_VALUE records, use the getLongRecordCount() method.
- Returns:
- Record count
-
getLongBaselineCount
public long getLongBaselineCount()Retrieve the number of records in which the facet value occurred in the baseline. Requires that this facet value has been created using a facet with the useBaseline or RegisterBaseline property set to true.- Returns:
- Record count in baseline
- Since:
- 8.0
-
getBaselineCount
public int getBaselineCount()Retrieve the number of records in which the facet value occurred in the baseline. Only valid with terms associated with facets that have been with baseline information.- Returns:
- Record count in baseline If the baseline count is larger than Integer.MAX_VALUE, this property will return Integer.MAX_VALUE. To get the actual baseline count of terms that have a count larger than Integer.MAX_VALUE records, use the getLongBaselineCount() method.
-
isBaselineValid
public boolean isBaselineValid()Returns true if the baseline count information is valid for this value.- Returns:
- True if baselineCount is valid
-