public class NullablePartitionWritable extends PigNullableWritable
idxSpace, mqFlag, mValue
Constructor and Description |
---|
NullablePartitionWritable() |
NullablePartitionWritable(PigNullableWritable k) |
Modifier and Type | Method and Description |
---|---|
NullablePartitionWritable |
clone() |
int |
compareTo(java.lang.Object o)
Compare two nullable objects.
|
byte |
getIndex() |
PigNullableWritable |
getKey() |
int |
getPartition() |
java.lang.Object |
getValueAsPigType() |
int |
hashCode() |
boolean |
isNull() |
void |
readFields(java.io.DataInput in) |
void |
setIndex(byte index) |
void |
setKey(PigNullableWritable k) |
void |
setNull(boolean isNull) |
void |
setPartition(int n) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
equals
public NullablePartitionWritable()
public NullablePartitionWritable(PigNullableWritable k)
public void setKey(PigNullableWritable k)
public PigNullableWritable getKey()
public void setPartition(int n)
public int getPartition()
public NullablePartitionWritable clone() throws java.lang.CloneNotSupportedException
clone
in class PigNullableWritable
java.lang.CloneNotSupportedException
public int compareTo(java.lang.Object o)
PigNullableWritable
compareTo
in interface java.lang.Comparable
compareTo
in class PigNullableWritable
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class PigNullableWritable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
write
in class PigNullableWritable
java.io.IOException
public boolean isNull()
isNull
in class PigNullableWritable
public void setNull(boolean isNull)
setNull
in class PigNullableWritable
isNull
- the isNull to setpublic byte getIndex()
getIndex
in class PigNullableWritable
public void setIndex(byte index)
setIndex
in class PigNullableWritable
index
- for this value.public java.lang.Object getValueAsPigType()
getValueAsPigType
in class PigNullableWritable
public int hashCode()
hashCode
in class PigNullableWritable
public java.lang.String toString()
toString
in class PigNullableWritable
Copyright © 2007-2017 The Apache Software Foundation