Package com.tietoenator.trip.jxp.ccl
Class TdbTerm
java.lang.Object
com.tietoenator.trip.jxp.ccl.TdbTerm
An entry in a TdbTermList
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorConstructor for facet terms with baseline informationConstructorConstructor for facet terms with baseline information -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the number of records in which the term 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 term occursgetTerm()
Retrieve the termboolean
Returns true if the baseline count information is valid for this term.
-
Constructor Details
-
TdbTerm
Constructor- Parameters:
term
- The termrecs
- The number of records in which the term occurs
-
TdbTerm
Constructor- Parameters:
term
- The termrecs
- The number of records in which the term occurs
-
TdbTerm
Constructor for facet terms with baseline information- Parameters:
term
- The termrecs
- The number of records in which the term occursbaselineRecs
- The number of records in which the term occurs in the basline
-
TdbTerm
Constructor for facet terms with baseline information- Parameters:
term
- The termrecs
- The number of records in which the term occursbaselineRecs
- The number of records in which the term occurs in the basline
-
-
Method Details
-
getTerm
Retrieve the term- Returns:
- The term
-
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 term occurs- Returns:
- Record count If 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.
-
getBaselineCount
public int getBaselineCount()Retrieve the number of records in which the term 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.
-
getLongBaselineCount
public long getLongBaselineCount()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
- Since:
- 8.0
-
isBaselineValid
public boolean isBaselineValid()Returns true if the baseline count information is valid for this term.- Returns:
- True if baselineCount is valid
-