Class

io.snappydata.collection

ObjectHashSet

Related Doc: package collection

Permalink

final class ObjectHashSet[T <: AnyRef] extends Iterable[T] with Serializable

A fast hash set implementation for non-null data. This hash set supports insertions and updates, but not deletions. It is much faster than Java's standard HashSet while using much less memory overhead.

A special feature of this set is that it allows using the key objects for storing additional data too and allows update of the same by the new passed in key when it matches existing key in the map. Hence it can be used as a more efficient map that uses a single object for both key and value parts (and user's key object can be coded to be so).

Adapted from Spark's OpenHashSet implementation. It deliberately uses java interfaces to keep byte code overheads minimal.

Linear Supertypes
Serializable, Serializable, Iterable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObjectHashSet
  2. Serializable
  3. Serializable
  4. Iterable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObjectHashSet(initialCapacity: Int, loadFactor: Double, numColumns: Int, longLived: Boolean = false)(implicit arg0: ClassTag[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addLong(key: Long, default: (Long) ⇒ T): T

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def data: Array[T]

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def forEach(arg0: Consumer[_ >: T]): Unit

    Permalink
    Definition Classes
    Iterable
  12. def freeStorageMemory(): Unit

    Permalink
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getMaxValue(ordinal: Int): Long

    Permalink
  15. def getMinValue(ordinal: Int): Long

    Permalink
  16. def handleNewInsert(pos: Int): Boolean

    Permalink
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def iterator(): Iterator[T]

    Permalink
    Definition Classes
    ObjectHashSet → Iterable
  20. def keyIsUnique: Boolean

    Permalink
  21. def mask: Int

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def setKeyIsUnique(unique: Boolean): Unit

    Permalink
  26. def size: Int

    Permalink
  27. def spliterator(): Spliterator[T]

    Permalink
    Definition Classes
    Iterable
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toArray: Array[AnyRef]

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def updateLimits(v: Long, ordinal: Int): Unit

    Permalink
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Iterable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped