Class ReusableEntry<KeyType>
java.lang.Object
org.apache.druid.query.groupby.epinephelinae.ReusableEntry<KeyType>
- All Implemented Interfaces:
Grouper.Entry<KeyType>
A
Grouper.Entry implementation that is reusable. Grouper.iterator(boolean) allows reuse of Entries, and
so this class helps implementations taking advantage of that.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ReusableEntry<T>create(Grouper.KeySerde<T> keySerde, int numValues) Create a new instance based on a particularGrouper.KeySerdeand a particular Object values size.getKey()Returns the key, which enables modifying the key.Object[]Returns the values array, which enables setting individual values.voidReplaces the key completely.voidReplaces the values array completely.toString()
-
Constructor Details
-
ReusableEntry
-
-
Method Details
-
create
Create a new instance based on a particularGrouper.KeySerdeand a particular Object values size. -
getKey
Returns the key, which enables modifying the key.- Specified by:
getKeyin interfaceGrouper.Entry<KeyType>
-
getValues
Returns the values array, which enables setting individual values.- Specified by:
getValuesin interfaceGrouper.Entry<KeyType>
-
setKey
Replaces the key completely. -
setValues
Replaces the values array completely. -
toString
-