public class StringFieldData extends FieldData implements java.io.Externalizable
Constructor and Description |
---|
StringFieldData()
Required to make
Externalizable happy. |
StringFieldData(GUID fieldUID) |
StringFieldData(GUID fieldUID,
java.util.Locale locale,
java.lang.String minValue,
java.lang.String maxValue) |
StringFieldData(GUID fieldUID,
java.lang.String minValue,
java.lang.String maxValue) |
StringFieldData(JPack coreData) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMatchingString() |
java.lang.String |
getMaxValue()
Return the maximum string value (possibly partial string) for this statistics entry.
|
java.lang.String |
getMinValue()
Return the minimum string value (possibly partial string) for this statistics entry.
|
boolean |
getPreferSortIndex() |
java.lang.String |
getRawMaxValue()
Return an internal string representation of the maximum value.
|
java.lang.String |
getRawMinValue()
Return an internal string representation of the minimum value.
|
boolean |
getSortAlphabetically() |
void |
setMatchingString(java.lang.String matchingString) |
void |
setPreferSortIndex(boolean preferSortIndex) |
void |
setSortAlphabetically(boolean sortAlphabetically) |
void |
setTopItemsRequest(int numberOfTopItemsToFind)
Marks this object to return a list of most used values when passed to
MultiItemCollection.getItemFieldStatistics(FieldData) . |
createFromPack, getDescription, getDisplayString, getFieldType, getFieldUID, getFieldValueInterpretation, getFullDisplayString, getIsExpandable, getItemCount, getLevel, getLocale, getPack, readExternal, setCurrentCollection, setLocale, setTimeZoneOffset, writeExternal
toXMLString
public StringFieldData()
Externalizable
happy. Do not call directly!public StringFieldData(JPack coreData)
public StringFieldData(GUID fieldUID)
public StringFieldData(GUID fieldUID, java.lang.String minValue, java.lang.String maxValue)
public StringFieldData(GUID fieldUID, java.util.Locale locale, java.lang.String minValue, java.lang.String maxValue)
public java.lang.String getMinValue()
MultiItemCollection.getItemFieldStatistics(FieldData)
to get the next level of field value statistics.public java.lang.String getMaxValue()
MultiItemCollection.getItemFieldStatistics(FieldData)
to get the next level of field value statistics.public java.lang.String getRawMinValue()
FieldData
getRawMinValue
in class FieldData
public java.lang.String getRawMaxValue()
FieldData
getRawMaxValue
in class FieldData
public void setTopItemsRequest(int numberOfTopItemsToFind)
MultiItemCollection.getItemFieldStatistics(FieldData)
.
The result of MultiItemCollection.getItemFieldStatistics(FieldData)
is a list of values where the FieldData.getItemCount()
represents the number of items with that value. This requires the requested field being indexed for word search.numberOfTopItemsToFind
- the maximum number of values to returnpublic void setMatchingString(java.lang.String matchingString)
matchingString
- The string to matchpublic java.lang.String getMatchingString()
public void setPreferSortIndex(boolean preferSortIndex)
preferSortIndex
- Whether to prefer sort indexpublic boolean getPreferSortIndex()
true
when the sort index is preferred, false
when the word index is preferredpublic void setSortAlphabetically(boolean sortAlphabetically)
sortAlphabetically
- Whether to sort the result alphabeticallypublic boolean getSortAlphabetically()
true
when the result will sorted alphabetically, false
when the result is sorted by frequencywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.