org.apache.spark.streaming
Class Duration

Object
  extended by 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)
           
 
Method Summary
 double div(Duration that)
           
 boolean greater(Duration that)
           
 boolean greaterEq(Duration that)
           
 boolean isMultipleOf(Duration that)
           
 boolean isZero()
           
 boolean less(Duration that)
           
 boolean lessEq(Duration that)
           
 Duration max(Duration that)
           
 long milliseconds()
           
 Duration min(Duration that)
           
 Duration minus(Duration that)
           
 Duration plus(Duration that)
           
 String prettyPrint()
           
 Duration times(int times)
           
 String toFormattedString()
           
 String toString()
           
 
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
 

Constructor Detail

Duration

public Duration(long millis)
Method Detail

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()