com.ebay.erl.mobius.core
Class SortPersistable

java.lang.Object
  extended by com.ebay.erl.mobius.core.SortPersistable

public class SortPersistable
extends java.lang.Object

Specifies the output path and format of a sort job.

See MobiusJob.sort(Dataset) for information on creating a sort job. This product is licensed under the Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0. This product contains portions derived from Apache hadoop which is licensed under the Apache License, Version 2.0, available at http://hadoop.apache.org. © 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan


Method Summary
 Dataset save(MobiusJob job, org.apache.hadoop.fs.Path output)
          Save the sort result to the given output.
 Dataset save(MobiusJob job, org.apache.hadoop.fs.Path output, java.lang.Class<? extends org.apache.hadoop.mapred.FileOutputFormat> outputFormat)
          Save the sort result to the given output with the specified outputFormat.
 SortPersistable setConf(java.lang.String name, java.lang.String value)
          set a configuration property to this job's configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setConf

public SortPersistable setConf(java.lang.String name,
                               java.lang.String value)
set a configuration property to this job's configuration.


save

public Dataset save(MobiusJob job,
                    org.apache.hadoop.fs.Path output)
             throws java.io.IOException
Save the sort result to the given output.

The returned Dataset represents the sorted result, it can be used to do further analysis.

Throws:
java.io.IOException

save

public Dataset save(MobiusJob job,
                    org.apache.hadoop.fs.Path output,
                    java.lang.Class<? extends org.apache.hadoop.mapred.FileOutputFormat> outputFormat)
             throws java.io.IOException
Save the sort result to the given output with the specified outputFormat.

The returned Dataset represents the sorted result, it can be used to do further analysis.

Throws:
java.io.IOException