public class HiveIntervalYearMonthWritable extends Object implements org.apache.hadoop.io.WritableComparable<HiveIntervalYearMonthWritable>
Modifier and Type | Field and Description |
---|---|
protected HiveIntervalYearMonth |
intervalValue |
Constructor and Description |
---|
HiveIntervalYearMonthWritable() |
HiveIntervalYearMonthWritable(HiveIntervalYearMonth hiveInterval) |
HiveIntervalYearMonthWritable(HiveIntervalYearMonthWritable hiveIntervalWritable) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HiveIntervalYearMonthWritable other) |
boolean |
equals(Object obj) |
HiveIntervalYearMonth |
getHiveIntervalYearMonth() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(HiveIntervalYearMonth hiveInterval) |
void |
set(HiveIntervalYearMonthWritable hiveIntervalWritable) |
void |
set(int totalMonths) |
void |
set(int years,
int months) |
void |
setFromBytes(byte[] bytes,
int offset,
int length,
LazyBinaryUtils.VInt vInt) |
String |
toString() |
void |
write(DataOutput out) |
void |
writeToByteStream(ByteStream.RandomAccessOutput byteStream) |
protected HiveIntervalYearMonth intervalValue
public HiveIntervalYearMonthWritable()
public HiveIntervalYearMonthWritable(HiveIntervalYearMonth hiveInterval)
public HiveIntervalYearMonthWritable(HiveIntervalYearMonthWritable hiveIntervalWritable)
public void set(int years, int months)
public void set(HiveIntervalYearMonth hiveInterval)
public void set(HiveIntervalYearMonthWritable hiveIntervalWritable)
public void set(int totalMonths)
public HiveIntervalYearMonth getHiveIntervalYearMonth()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void writeToByteStream(ByteStream.RandomAccessOutput byteStream)
public void setFromBytes(byte[] bytes, int offset, int length, LazyBinaryUtils.VInt vInt)
public int compareTo(HiveIntervalYearMonthWritable other)
compareTo
in interface Comparable<HiveIntervalYearMonthWritable>
Copyright © 2017 The Apache Software Foundation. All rights reserved.