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.ArrayOfStringsSerDe
ARRAY_OF_STRINGS_SER_DE
static int
MAX_FREQUENT_ITEM_SIZE
-
Constructor Summary
Constructors Constructor Description StringTracker()
-
Method Summary
Modifier and Type Method Description static StringTracker
fromProtobuf(com.whylogs.core.message.StringsMessage message)
StringTracker
merge(StringTracker other)
Merge this StringTracker object with another.com.whylogs.core.message.StringsMessage.Builder
toProtobuf()
void
update(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
-