Interface IntGrouper
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Grouper<IntKey>
- All Known Implementing Classes:
BufferArrayGrouper
public interface IntGrouper extends Grouper<IntKey>
Grouper
specialized for the primitive int type
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
IntGrouper.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 AggregateResult
aggregate(int key)
default AggregateResult
aggregate(IntKey key)
Deprecated.Please useaggregate(int)
instead.default AggregateResult
aggregate(IntKey key, int keyHash)
Deprecated.Please useaggregateKeyHash(int)
instead.AggregateResult
aggregateKeyHash(int keyHash)
IntGrouper.IntGrouperHashFunction
hashFunction()
-
-
-
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:
aggregate
in 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:
hashFunction
in interfaceGrouper<IntKey>
-
-