org.apache.spark.streaming
Class Time

Object
  extended by org.apache.spark.streaming.Time
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class Time
extends Object
implements scala.Product, scala.Serializable

This is a simple class that represents an absolute instant of time. Internally, it represents time as the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. This is the same format as what is returned by System.currentTimeMillis.

See Also:
Serialized Form

Constructor Summary
Time(long millis)
           
 
Method Summary
 Time floor(Duration that)
           
 Time floor(Duration that, Time zeroTime)
           
 boolean greater(Time that)
           
 boolean greaterEq(Time that)
           
 boolean isMultipleOf(Duration that)
           
 boolean less(Time that)
           
 boolean lessEq(Time that)
           
 Time max(Time that)
           
 long milliseconds()
           
 Time min(Time that)
           
 Time minus(Duration that)
           
 Duration minus(Time that)
           
static scala.math.Ordering<Time> ordering()
           
 Time plus(Duration that)
           
 scala.collection.Seq<Time> to(Time that, Duration interval)
           
 String toString()
           
 scala.collection.Seq<Time> until(Time that, Duration interval)
           
 
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

Time

public Time(long millis)
Method Detail

ordering

public static scala.math.Ordering<Time> ordering()

milliseconds

public long milliseconds()

less

public boolean less(Time that)

lessEq

public boolean lessEq(Time that)

greater

public boolean greater(Time that)

greaterEq

public boolean greaterEq(Time that)

plus

public Time plus(Duration that)

minus

public Duration minus(Time that)

minus

public Time minus(Duration that)

floor

public Time floor(Duration that)

floor

public Time floor(Duration that,
                  Time zeroTime)

isMultipleOf

public boolean isMultipleOf(Duration that)

min

public Time min(Time that)

max

public Time max(Time that)

until

public scala.collection.Seq<Time> until(Time that,
                                        Duration interval)

to

public scala.collection.Seq<Time> to(Time that,
                                     Duration interval)

toString

public String toString()
Overrides:
toString in class Object