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.Object
java.lang.CloneNotSupportedException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public 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.Object
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2017 The Apache Software Foundation