public final class Tuple extends MRData
Constructor and Description |
---|
Tuple() |
Tuple(int size) |
Tuple(MRData... as) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(byte[] x,
int xs,
int xl,
byte[] y,
int ys,
int yl,
int[] size) |
static int |
compare2(byte[] x,
int xs,
int xl,
byte[] y,
int ys,
int yl,
int[] size) |
static int |
compare3(byte[] x,
int xs,
int xl,
byte[] y,
int ys,
int yl,
int[] size) |
int |
compareTo(MRData x) |
boolean |
equals(Object x) |
MRData |
first()
the first element of the tuple
|
MRData |
get(int i)
the i'th element of the tuple
|
int |
hashCode() |
void |
materializeAll() |
static Tuple |
read(DataInput in) |
static Tuple |
read2(DataInput in) |
static Tuple |
read3(DataInput in) |
void |
readFields(DataInput in) |
MRData |
second()
the second element of the tuple
|
Tuple |
set(int i,
MRData data)
replace the i'th element of a tuple with new data
|
MRData |
set(int i,
MRData data,
MRData ret)
replace the i'th element of a tuple with new data and return a new value
|
short |
size()
the number of elements in the tuple
|
String |
toString() |
void |
write(DataOutput out) |
MRData[] tuple
public Tuple()
public Tuple(int size)
public Tuple(MRData... as)
public short size()
public void materializeAll()
materializeAll
in class MRData
public MRData get(int i)
public MRData first()
public MRData second()
public MRData set(int i, MRData data, MRData ret)
public final void write(DataOutput out) throws IOException
IOException
public static final Tuple read(DataInput in) throws IOException
IOException
public static final Tuple read2(DataInput in) throws IOException
IOException
public static final Tuple read3(DataInput in) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
public int compareTo(MRData x)
public static final int compare(byte[] x, int xs, int xl, byte[] y, int ys, int yl, int[] size)
public static final int compare2(byte[] x, int xs, int xl, byte[] y, int ys, int yl, int[] size)
public static final int compare3(byte[] x, int xs, int xl, byte[] y, int ys, int yl, int[] size)
Copyright © 2013-2016 The Apache Software Foundation. All Rights Reserved.