Class/Object

com.netflix.atlas.core.db

TimeSeriesBuffer

Related Docs: object TimeSeriesBuffer | package db

Permalink

final class TimeSeriesBuffer extends TimeSeries with TimeSeq with LazyTaggedItem

Mutable buffer for efficiently manipulating metric data.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeSeriesBuffer
  2. LazyTaggedItem
  3. TimeSeq
  4. TimeSeries
  5. TaggedItem
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TimeSeriesBuffer(tags: Map[String, String], data: ArrayTimeSeq)

    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 add(v: Double): Unit

    Permalink

    Add a constant value to all positions of this buffer.

  5. def add(tags: Map[String, String], block: Block): Int

    Permalink
  6. def add(ts: TimeSeriesBuffer): Unit

    Permalink

    Add the corresponding positions of the two buffers.

    Add the corresponding positions of the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

  7. def apply(t: Long): Double

    Permalink
    Definition Classes
    TimeSeriesBufferTimeSeq
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def binaryOp(ts: TimeSeries, labelFmt: String, f: BinaryOp): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  10. def blend(ts: TimeSeries): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  11. def bounded(s: Long, e: Long): ArrayTimeSeq

    Permalink
    Definition Classes
    TimeSeq
  12. def canEqual(other: Any): Boolean

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  14. def consolidate(multiple: Int, cf: ConsolidationFunction): TimeSeriesBuffer

    Permalink

    Returns a new buffer with values consolidated to a larger step size.

  15. def consolidate(step: Long, cf: ConsolidationFunction): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  16. def copy: TimeSeriesBuffer

    Permalink

    Create a deep copy of this buffer.

  17. def count(tags: Map[String, String], block: Block): Int

    Permalink
  18. def count(ts: TimeSeriesBuffer): Unit

    Permalink

    Updates each position by 1 if the corresponding position in the other buffer is a valid number, i.e., is not equal NaN.

    Updates each position by 1 if the corresponding position in the other buffer is a valid number, i.e., is not equal NaN. The buffers must have the same settings. The tags for the new buffer will be the intersection.

  19. val data: ArrayTimeSeq

    Permalink
    Definition Classes
    TimeSeriesBufferTimeSeries
  20. def datapoint(timestamp: Long): Datapoint

    Permalink
    Definition Classes
    TimeSeries
  21. def divide(v: Double): Unit

    Permalink

    Divide a constant value to all positions of this buffer.

  22. def divide(ts: TimeSeriesBuffer): Unit

    Permalink

    Divide the corresponding positions of the two buffers.

    Divide the corresponding positions of the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

  23. def dsType: DsType

    Permalink
    Definition Classes
    TimeSeriesBufferTimeSeq
  24. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    TimeSeriesBuffer → AnyRef → Any
  26. def foreach(s: Long, e: Long)(f: (Long, Double) ⇒ Unit): Unit

    Permalink

    Fast loop with no intermediate object creation.

    Fast loop with no intermediate object creation.

    Definition Classes
    TimeSeq
  27. def foreach(f: (String, String) ⇒ Unit): Unit

    Permalink

    Code that just needs to iterate over all tags should use this method.

    Code that just needs to iterate over all tags should use this method. Allows for implementations to optimize how the tag data is stored and traversed.

    Definition Classes
    TaggedItem
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  29. def getValue(timestamp: Long): Double

    Permalink
  30. def hashCode(): Int

    Permalink
    Definition Classes
    TimeSeriesBuffer → AnyRef → Any
  31. lazy val id: ItemId

    Permalink

    Unique id based on the tags.

    Unique id based on the tags.

    Definition Classes
    LazyTaggedItemTaggedItem
  32. def idString: String

    Permalink

    Standard string representation of the id.

    Standard string representation of the id.

    Definition Classes
    TaggedItem
  33. def initCount(): Unit

    Permalink

    Setup this buffer array as a count.

  34. def isAllNaN: Boolean

    Permalink

    Returns true if the buffer is all NaN values.

  35. def isExpired: Boolean

    Permalink

    Returns true if the item is expired and no data is available.

    Returns true if the item is expired and no data is available.

    Definition Classes
    TaggedItem
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def label: String

    Permalink
    Definition Classes
    TimeSeriesBufferTimeSeries
  38. def mapTimeSeq(f: (TimeSeq) ⇒ TimeSeq): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  39. def mapValues(f: (Double) ⇒ Double): TimeSeq

    Permalink
    Definition Classes
    TimeSeq
  40. def max(tags: Map[String, String], block: Block): Int

    Permalink
  41. def max(ts: TimeSeriesBuffer): Unit

    Permalink

    Updates each position we the max value between the two buffers.

    Updates each position we the max value between the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

  42. def merge(ts: TimeSeriesBuffer): Unit

    Permalink

    Merge with another metric buffer.

  43. def min(tags: Map[String, String], block: Block): Int

    Permalink
  44. def min(ts: TimeSeriesBuffer): Unit

    Permalink

    Updates each position we the min value between the two buffers.

    Updates each position we the min value between the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

  45. def multiply(v: Double): Unit

    Permalink

    Multiply a constant value to all positions of this buffer.

  46. def multiply(ts: TimeSeriesBuffer): Unit

    Permalink

    Multiply the corresponding positions of the two buffers.

    Multiply the corresponding positions of the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

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

    Permalink
    Definition Classes
    AnyRef
  48. def normalize(step: Long, start: Long, size: Int): TimeSeriesBuffer

    Permalink

    Returns a new buffer normalized to the specified settings.

  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  50. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  51. def offset(dur: Long): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  52. def start: Long

    Permalink
  53. def step: Long

    Permalink

    Definition Classes
    TimeSeriesBufferTimeSeq
  54. def subtract(v: Double): Unit

    Permalink

    Subtract a constant value to all positions of this buffer.

  55. def subtract(ts: TimeSeriesBuffer): Unit

    Permalink

    Subtract the corresponding positions of the two buffers.

    Subtract the corresponding positions of the two buffers. The buffers must have the same settings. The tags for the new buffer will be the intersection.

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

    Permalink
    Definition Classes
    AnyRef
  57. var tags: Map[String, String]

    Permalink

    The tags associated with this item.

    The tags associated with this item.

    Definition Classes
    TimeSeriesBufferTaggedItem
  58. def toString(): String

    Permalink
    Definition Classes
    TimeSeriesBuffer → AnyRef → Any
  59. def unConsolidate(s: Long, e: Long, step: Long): TimeSeriesBuffer

    Permalink

    Returns a new buffer with values un-consolidated to a smaller step size.

  60. def unaryOp(labelFmt: String, f: (Double) ⇒ Double): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  61. def values: Array[Double]

    Permalink
  62. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. def withLabel(s: String): TimeSeries

    Permalink
    Definition Classes
    TimeSeries
  66. def withTags(ts: Map[String, String]): TimeSeries

    Permalink
    Definition Classes
    TimeSeries

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LazyTaggedItem

Inherited from TimeSeq

Inherited from TimeSeries

Inherited from TaggedItem

Inherited from AnyRef

Inherited from Any

Ungrouped