public class SortFns extends Object
DoFn
s that are used by Crunch's Sort
library.Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
SortFns() |
Modifier and Type | Method and Description |
---|---|
static <S> org.apache.avro.Schema |
createOrderedTupleSchema(PType<S> ptype,
Sort.ColumnOrder[] orders)
Constructs an Avro schema for the given
PType<S> that respects the given column
orderings. |
public static <S> org.apache.avro.Schema createOrderedTupleSchema(PType<S> ptype, Sort.ColumnOrder[] orders)
PType<S>
that respects the given column
orderings.Copyright © 2016 The Apache Software Foundation. All rights reserved.