Class/Object

com.github.sadikovi.spark.netflow.index

Attribute

Related Docs: object Attribute | package index

Permalink

class Attribute[T] extends AnyRef

Attribute interface to collect and check statistics. Included support of different combinations of collected parameters: count, min/max, and set of values through bit vector. Here are some common flags: 7 - enable all parameters, 1 - enable count, 6 - enable min/max and set. In order to create attribute comparison function is required similar the lt function used in sortWith method. Name must unique to the attribute.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Attribute
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Attribute(name: String, lt: (T, T) ⇒ Boolean, flags: Byte, isNullable: Boolean)(implicit tag: 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 addValue(unresolvedValue: Any): Unit

    Permalink

    Add value to the attribute, it automatically checks all available modes

  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 containsInRange(value: Any): Option[Boolean]

    Permalink

    Check if value is in min-max range, if mode is enabled, otherwise None

  8. def containsInSet(value: Any): Option[Boolean]

    Permalink

    Check if value is in set, if mode is enabled, otherwise None

  9. def containsNull(): Boolean

    Permalink

    Whether or not attribute has null values.

    Whether or not attribute has null values. It checks initial state of min, max and set, and tracks values being added, thus overall nullability is cumulative effect of states.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val flags: Byte

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getClassTag(): Class[_]

    Permalink

    Get actual generic runtime class

  16. def getCount(): Option[Long]

    Permalink

    Get count, if mode is enabled, otherwise None

  17. def getMinMax(): Option[(T, T)]

    Permalink

    Get min/max, internal operation to write min/max

  18. def getSet(): Option[HashSet[T]]

    Permalink

    Get set, internal operation to write set

  19. def greaterOrEqualMin(value: Any): Option[Boolean]

    Permalink

    Check if value is less than or equal to min

  20. def greaterThanMin(value: Any): Option[Boolean]

    Permalink

    Check if value is less than min

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def isCountEnabled(): Boolean

    Permalink

    Check if count is collected by this attribute

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isMinMaxEnabled(): Boolean

    Permalink

    Check if min/max is collected by this attribute

  25. val isNullable: Boolean

    Permalink
  26. def isSetEnabled(): Boolean

    Permalink

    Check if set is collected by this attribute

  27. def lessOrEqualMax(value: Any): Option[Boolean]

    Permalink

    Check if value is greater than or equal to max

  28. def lessThanMax(value: Any): Option[Boolean]

    Permalink

    Check if value is greater than max

  29. val lt: (T, T) ⇒ Boolean

    Permalink
  30. val name: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def numStatistics(): Int

    Permalink
  35. def setNull(isNull: Boolean): Unit

    Permalink

    Update nullability of the attribute

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    Attribute → AnyRef → Any
  38. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped