|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.lib.sort.SortFns
public class SortFns
A set of DoFn
s that are used by Crunch's Sort
library.
Nested Class Summary | |
---|---|
static class |
SortFns.AvroGenericFn<V extends Tuple>
Pulls a composite set of keys from an Avro GenericRecord instance. |
static class |
SortFns.KeyExtraction<V extends Tuple>
Utility class for encapsulating key extraction logic and serialization information about key extraction. |
static class |
SortFns.SingleKeyFn<V extends Tuple,K>
Extracts a single indexed key from a Tuple instance. |
static class |
SortFns.TupleKeyFn<V extends Tuple,K extends Tuple>
Extracts a composite key from a Tuple instance. |
Constructor Summary | |
---|---|
SortFns()
|
Method Summary | ||
---|---|---|
static
|
createOrderedTupleSchema(PType<S> ptype,
Sort.ColumnOrder[] orders)
Constructs an Avro schema for the given PType<S> that respects the given column
orderings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortFns()
Method Detail |
---|
public static <S> org.apache.avro.Schema createOrderedTupleSchema(PType<S> ptype, Sort.ColumnOrder[] orders)
PType<S>
that respects the given column
orderings.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |