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
  extended by 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.


Constructor Summary
Sort.ColumnOrder(int column, Sort.Order order)
           
 
Method Summary
static Sort.ColumnOrder by(int column, Sort.Order order)
           
 int column()
           
 Sort.Order order()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sort.ColumnOrder

public Sort.ColumnOrder(int column,
                        Sort.Order order)
Method Detail

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.