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(Object o)
Compare two nullable objects.
|
byte |
getIndex() |
PigNullableWritable |
getKey() |
int |
getPartition() |
Object |
getValueAsPigType() |
int |
hashCode() |
boolean |
isNull() |
void |
readFields(DataInput in) |
void |
setIndex(byte index) |
void |
setKey(PigNullableWritable k) |
void |
setNull(boolean isNull) |
void |
setPartition(int n) |
String |
toString() |
void |
write(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 CloneNotSupportedException
clone
in class PigNullableWritable
CloneNotSupportedException
public int compareTo(Object o)
PigNullableWritable
compareTo
in interface Comparable
compareTo
in class PigNullableWritable
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class PigNullableWritable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class PigNullableWritable
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 Object getValueAsPigType()
getValueAsPigType
in class PigNullableWritable
public int hashCode()
hashCode
in class PigNullableWritable
public String toString()
toString
in class PigNullableWritable
Copyright © 2007-2012 The Apache Software Foundation