public abstract class PigNullableWritable
extends java.lang.Object
implements org.apache.hadoop.io.WritableComparable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static byte |
idxSpace
regular indices used in group and cogroup
can only go from 0x00 to 0x7F
|
static byte |
mqFlag
indices in multiquery optimized maps
will have the Most Significant Bit set
This is a bitmask used in those cases.
|
protected org.apache.hadoop.io.WritableComparable |
mValue |
| Constructor and Description |
|---|
PigNullableWritable() |
| Modifier and Type | Method and Description |
|---|---|
PigNullableWritable |
clone() |
int |
compareTo(java.lang.Object o)
Compare two nullable objects.
|
boolean |
equals(java.lang.Object arg0) |
byte |
getIndex() |
abstract java.lang.Object |
getValueAsPigType() |
int |
hashCode() |
boolean |
isNull() |
void |
readFields(java.io.DataInput in) |
void |
setIndex(byte index) |
void |
setNull(boolean isNull) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public static final byte mqFlag
public static final byte idxSpace
protected org.apache.hadoop.io.WritableComparable mValue
public PigNullableWritable clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic boolean isNull()
public void setNull(boolean isNull)
isNull - the isNull to setpublic byte getIndex()
public void setIndex(byte index)
index - for this value.public abstract java.lang.Object getValueAsPigType()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2025 The Apache Software Foundation