Interface Grouper.KeySerdeFactory<T>
public static interface Grouper.KeySerdeFactory<T>
-
Method Summary
Modifier and TypeMethodDescriptionCopies a key.Create a newGrouper.KeySerde, which may be stateful.factorizeWithDictionary(List<String> dictionary) Create a newGrouper.KeySerdewith the given dictionary.longReturn max dictionary size threshold.objectComparator(boolean forceDefaultOrder) Return an object that knows how to compare two serialized key instances.
-
Method Details
-
getMaxDictionarySize
long getMaxDictionarySize()Return max dictionary size threshold.- Returns:
- max dictionary size
-
factorize
Grouper.KeySerde<T> factorize()Create a newGrouper.KeySerde, which may be stateful. -
factorizeWithDictionary
Create a newGrouper.KeySerdewith the given dictionary. -
copyKey
Copies a key. Required if the key from anGrouper.EntryfromGrouper.iterator(boolean)will be retained past the following call to next(). -
objectComparator
Return an object that knows how to compare two serialized key instances. Will be called by theGrouper.iterator(boolean)method if sorting is enabled.- Parameters:
forceDefaultOrder- Return a comparator that sorts by the key in default lexicographic ascending order, regardless of any other conditions (e.g., presence of OrderBySpecs).- Returns:
- comparator for key objects.
-