org.apache.spark.streaming
Class Duration
Object
org.apache.spark.streaming.Duration
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class Duration
- extends Object
- implements scala.Product, scala.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Duration(long millis)
|
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
Duration
public Duration(long millis)
less
public boolean less(Duration that)
lessEq
public boolean lessEq(Duration that)
greater
public boolean greater(Duration that)
greaterEq
public boolean greaterEq(Duration that)
plus
public Duration plus(Duration that)
minus
public Duration minus(Duration that)
times
public Duration times(int times)
div
public double div(Duration that)
isMultipleOf
public boolean isMultipleOf(Duration that)
min
public Duration min(Duration that)
max
public Duration max(Duration that)
isZero
public boolean isZero()
toString
public String toString()
- Overrides:
toString
in class Object
toFormattedString
public String toFormattedString()
milliseconds
public long milliseconds()
prettyPrint
public String prettyPrint()