public class HiveIntervalDayTime extends Object implements Comparable<HiveIntervalDayTime>
Modifier and Type | Field and Description |
---|---|
protected int |
nanos |
protected long |
totalSeconds |
Constructor and Description |
---|
HiveIntervalDayTime() |
HiveIntervalDayTime(BigDecimal seconds) |
HiveIntervalDayTime(HiveIntervalDayTime other) |
HiveIntervalDayTime(int days,
int hours,
int minutes,
int seconds,
int nanos) |
HiveIntervalDayTime(long seconds,
int nanos) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Return a copy of this object.
|
int |
compareTo(HiveIntervalDayTime other) |
boolean |
equals(Object obj) |
int |
getDays() |
double |
getDouble() |
int |
getHours() |
int |
getMinutes() |
int |
getNanos() |
int |
getSeconds() |
long |
getTotalSeconds()
Returns days/hours/minutes all converted into seconds.
|
int |
hashCode() |
HiveIntervalDayTime |
negate() |
protected void |
normalizeSecondsAndNanos()
Ensures that the seconds and nanoseconds fields have consistent sign
|
void |
set(BigDecimal totalSecondsBd) |
void |
set(HiveIntervalDayTime other) |
void |
set(int days,
int hours,
int minutes,
int seconds,
int nanos) |
void |
set(long seconds,
int nanos) |
String |
toString() |
static HiveIntervalDayTime |
valueOf(String strVal) |
public HiveIntervalDayTime()
public HiveIntervalDayTime(int days, int hours, int minutes, int seconds, int nanos)
public HiveIntervalDayTime(long seconds, int nanos)
public HiveIntervalDayTime(BigDecimal seconds)
public HiveIntervalDayTime(HiveIntervalDayTime other)
public int getDays()
public int getHours()
public int getMinutes()
public int getSeconds()
public int getNanos()
public long getTotalSeconds()
public double getDouble()
protected void normalizeSecondsAndNanos()
public void set(int days, int hours, int minutes, int seconds, int nanos)
public void set(long seconds, int nanos)
public void set(BigDecimal totalSecondsBd)
public void set(HiveIntervalDayTime other)
public HiveIntervalDayTime negate()
public int compareTo(HiveIntervalDayTime other)
compareTo
in interface Comparable<HiveIntervalDayTime>
public static HiveIntervalDayTime valueOf(String strVal)
Copyright © 2016 The Apache Software Foundation. All rights reserved.