public class HiveParserIntervalDayTime extends Object implements Comparable<HiveParserIntervalDayTime>
Modifier and Type | Field and Description |
---|---|
protected int |
nanos |
protected long |
totalSeconds |
Constructor and Description |
---|
HiveParserIntervalDayTime(int days,
int hours,
int minutes,
int seconds,
int nanos) |
HiveParserIntervalDayTime(long seconds,
int nanos) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Return a copy of this object.
|
int |
compareTo(HiveParserIntervalDayTime 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() |
protected void |
normalizeSecondsAndNanos() |
void |
set(BigDecimal totalSecondsBd) |
void |
set(HiveParserIntervalDayTime other) |
void |
set(int days,
int hours,
int minutes,
int seconds,
int nanos) |
void |
set(long seconds,
int nanos) |
String |
toString() |
static HiveParserIntervalDayTime |
valueOf(String strVal) |
public HiveParserIntervalDayTime(int days, int hours, int minutes, int seconds, int nanos)
public HiveParserIntervalDayTime(long seconds, int nanos)
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(HiveParserIntervalDayTime other)
public int compareTo(HiveParserIntervalDayTime other)
compareTo
in interface Comparable<HiveParserIntervalDayTime>
public static HiveParserIntervalDayTime valueOf(String strVal)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.