class AggregateHashMap extends AnyRef
This is an illustrative implementation of an append-only single-key/single value aggregate hash
map that can act as a 'cache' for extremely fast key-value lookups while evaluating aggregates
(and fall back to the BytesToBytesMap if a given key isn't found). This can be potentially
'codegened' in HashAggregate to speed up aggregates w/ key.
It is backed by a power-of-2-sized array for index lookups and a columnar batch that stores the
key-value pairs. The index lookups in the array rely on linear probing (with a small number of
maximum tries) and use an inexpensive hash function which makes it really efficient for a
majority of lookups. However, using linear probing and an inexpensive hash function also makes it
less robust as compared to the BytesToBytesMap (especially for a large number of keys or even
for certain distribution of keys) and requires us to fall back on the latter for correctness.
- Alphabetic
- By Inheritance
- AggregateHashMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find(key: Long): Int
- Annotations
- @VisibleForTesting()
- def findOrInsert(key: Long): MutableColumnarRow
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()