public class HiveParserIntervalYearMonth extends Object implements Comparable<HiveParserIntervalYearMonth>
Modifier and Type | Field and Description |
---|---|
protected static int |
MONTHS_PER_YEAR |
protected int |
totalMonths |
Constructor and Description |
---|
HiveParserIntervalYearMonth(int totalMonths) |
HiveParserIntervalYearMonth(int years,
int months) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HiveParserIntervalYearMonth other) |
boolean |
equals(Object obj) |
int |
getMonths() |
int |
getTotalMonths() |
int |
getYears() |
int |
hashCode() |
void |
set(HiveParserIntervalYearMonth other) |
void |
set(int totalMonths) |
void |
set(int years,
int months) |
String |
toString() |
static HiveParserIntervalYearMonth |
valueOf(String strVal) |
protected int totalMonths
protected static final int MONTHS_PER_YEAR
public HiveParserIntervalYearMonth(int years, int months)
public HiveParserIntervalYearMonth(int totalMonths)
public int getYears()
public int getMonths()
public int getTotalMonths()
public void set(int years, int months)
public void set(int totalMonths)
public void set(HiveParserIntervalYearMonth other)
public int compareTo(HiveParserIntervalYearMonth other)
compareTo
in interface Comparable<HiveParserIntervalYearMonth>
public static HiveParserIntervalYearMonth valueOf(String strVal)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.