This project has retired. For details please refer to its
Attic page .
Sort.ColumnOrder (Apache Crunch 0.10.0 API)
org.apache.crunch.lib
Class Sort.ColumnOrder
java.lang.Object
org.apache.crunch.lib.Sort.ColumnOrder
Enclosing class: Sort
public static class Sort.ColumnOrder extends Object
To sort by column 2 ascending then column 1 descending, you would use:
sortPairs(coll, by(2, ASCENDING), by(1, DESCENDING))
Column numbering is 1-based.
Sort.ColumnOrder
public Sort.ColumnOrder (int column,
Sort.Order order)
by
public static Sort.ColumnOrder by (int column,
Sort.Order order)
column
public int column ()
order
public Sort.Order order ()
toString
public String toString ()
Overrides: toString
in class Object
Copyright © 2014 The Apache Software Foundation . All Rights Reserved.