Class StringTracker
java.lang.Object
com.whylogs.core.statistics.datatypes.StringTracker
public final class StringTracker
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static org.apache.datasketches.ArrayOfStringsSerDeARRAY_OF_STRINGS_SER_DEstatic intMAX_FREQUENT_ITEM_SIZE -
Constructor Summary
Constructors Constructor Description StringTracker() -
Method Summary
Modifier and Type Method Description static StringTrackerfromProtobuf(com.whylogs.core.message.StringsMessage message)StringTrackermerge(StringTracker other)Merge this StringTracker object with another.com.whylogs.core.message.StringsMessage.BuildertoProtobuf()voidupdate(java.lang.String value)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ARRAY_OF_STRINGS_SER_DE
public static final org.apache.datasketches.ArrayOfStringsSerDe ARRAY_OF_STRINGS_SER_DE -
MAX_FREQUENT_ITEM_SIZE
public static final int MAX_FREQUENT_ITEM_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
StringTracker
public StringTracker()
-
-
Method Details
-
update
public void update(java.lang.String value) -
merge
Merge this StringTracker object with another. This merges the sketches as well- Parameters:
other- the other String tracker to merge- Returns:
- a new StringTracker object
-
toProtobuf
public com.whylogs.core.message.StringsMessage.Builder toProtobuf() -
fromProtobuf
-