com.github.sadikovi.spark.netflow.index

Attribute

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Attribute(name: String, lt: (T, T) ⇒ Boolean, flags: Byte, isNullable: Boolean)(implicit tag: ClassTag[T])

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addValue(unresolvedValue: Any): Unit

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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def containsInRange(value: Any): Option[Boolean]

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

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

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

  11. def containsNull(): Boolean

    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.

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

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

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

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

  16. final def getClass(): Class[_]

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

    Get actual generic runtime class

  18. def getCount(): Option[Long]

    Get count, if mode is enabled, otherwise None

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

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

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

    Get set, internal operation to write set

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

    Check if value is less than or equal to min

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

    Check if value is less than min

  23. def hashCode(): Int

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

    Check if count is collected by this attribute

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isMinMaxEnabled(): Boolean

    Check if min/max is collected by this attribute

  27. val isNullable: Boolean

  28. def isSetEnabled(): Boolean

    Check if set is collected by this attribute

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

    Check if value is greater than or equal to max

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

    Check if value is greater than max

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

  32. val name: String

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def numStatistics(): Int

  37. def setNull(isNull: Boolean): Unit

    Update nullability of the attribute

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

    Definition Classes
    AnyRef
  39. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped