public class TupleUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
compare(Tuple t1,
Tuple t2,
ImmutableBytesWritable ptr) |
static int |
compare(Tuple t1,
Tuple t2,
ImmutableBytesWritable ptr,
int keyOffset) |
static boolean |
equals(Tuple t1,
Tuple t2,
ImmutableBytesWritable ptr) |
static void |
getAggregateValue(Tuple r,
ImmutableBytesWritable ptr)
Set ptr to point to the value contained in the first KeyValue without
exploding Result into KeyValue array.
|
static ImmutableBytesPtr |
getConcatenatedValue(Tuple result,
List<Expression> expressions)
Concatenate results evaluated against a list of expressions
|
static int |
write(Tuple result,
DataOutput out) |
public static boolean equals(Tuple t1, Tuple t2, ImmutableBytesWritable ptr)
public static int compare(Tuple t1, Tuple t2, ImmutableBytesWritable ptr)
public static int compare(Tuple t1, Tuple t2, ImmutableBytesWritable ptr, int keyOffset)
public static void getAggregateValue(Tuple r, ImmutableBytesWritable ptr)
r
- ptr
- public static ImmutableBytesPtr getConcatenatedValue(Tuple result, List<Expression> expressions) throws IOException
result
- the tuple for expression evaluationexpressions
- IOException
public static int write(Tuple result, DataOutput out) throws IOException
IOException
Copyright © 2019 Apache Software Foundation. All Rights Reserved.