org.apache.spark.streaming
Class Time
Object
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)
|
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 |
Time
public Time(long millis)
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