Interface IntGrouper
-
- All Superinterfaces:
AutoCloseable,Closeable,Grouper<IntKey>
- All Known Implementing Classes:
BufferArrayGrouper
public interface IntGrouper extends Grouper<IntKey>
Grouperspecialized for the primitive int type
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIntGrouper.IntGrouperHashFunction-
Nested classes/interfaces inherited from interface org.apache.druid.query.groupby.epinephelinae.Grouper
Grouper.BufferComparator, Grouper.Entry<T>, Grouper.KeySerde<T>, Grouper.KeySerdeFactory<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default AggregateResultaggregate(int key)default AggregateResultaggregate(IntKey key)Deprecated.Please useaggregate(int)instead.default AggregateResultaggregate(IntKey key, int keyHash)Deprecated.Please useaggregateKeyHash(int)instead.AggregateResultaggregateKeyHash(int keyHash)IntGrouper.IntGrouperHashFunctionhashFunction()
-
-
-
Method Detail
-
aggregate
default AggregateResult aggregate(int key)
-
aggregateKeyHash
AggregateResult aggregateKeyHash(int keyHash)
-
aggregate
@Deprecated default AggregateResult aggregate(IntKey key)
Deprecated.Please useaggregate(int)instead.Aggregate the current row with the provided key. Some implementations are thread-safe and some are not.
-
aggregate
@Deprecated default AggregateResult aggregate(IntKey key, int keyHash)
Deprecated.Please useaggregateKeyHash(int)instead.Aggregate the current row with the provided key. Some implementations are thread-safe and some are not.- Specified by:
aggregatein interfaceGrouper<IntKey>- Parameters:
key- key objectkeyHash- result ofGrouper.hashFunction()on the key- Returns:
- result that is ok if the row was aggregated, not ok if a resource limit was hit
-
hashFunction
IntGrouper.IntGrouperHashFunction hashFunction()
- Specified by:
hashFunctionin interfaceGrouper<IntKey>
-
-