class StreamSummary[T] extends ITopK[T]
Based on the Space-Saving algorithm and the Stream-Summary
data structure as described in:
Efficient Computation of Frequent and Top-k Elements in Data Streams
by Metwally, Agrawal, and Abbadi
- T
type of data in the stream to be summarized
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StreamSummary
- ITopK
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
- val capacity: Int
- def clear(): Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def offer(item: T, increment: Long): Boolean
-
def
offer(item: T, increment: Int): Boolean
Algorithm:
Space-SavingAlgorithm:
Space-Saving- item
stream element (
e)- returns
false if item was already in the stream summary, true otherwise
- Definition Classes
- StreamSummary → ITopK
-
def
offer(item: T): Boolean
Algorithm:
Space-SavingAlgorithm:
Space-Saving- item
stream element (
e)- returns
false if item was already in the stream summary, true otherwise
- Definition Classes
- StreamSummary → ITopK
-
def
offerReturnAll(item: T, increment: Long): (Boolean, T)
- item
stream element (
e)- returns
(isNewItem, itemDropped) where isNewItem is the return value of offer() and itemDropped is null if no item was dropped
-
def
offerReturnDropped(item: T, increment: Long): T
- item
stream element (
e)- returns
item dropped from summary if an item was dropped, null otherwise
-
def
peek(k: Int): List[T]
- Definition Classes
- StreamSummary → ITopK
- def size: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- StreamSummary → AnyRef → Any
- def topK(k: Int): Iterator[(T, Long)]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated