This project has retired. For details please refer to its Attic page.
CachingOptions.Builder (Apache Crunch 0.10.0 API)

org.apache.crunch
Class CachingOptions.Builder

java.lang.Object
  extended by org.apache.crunch.CachingOptions.Builder
Enclosing class:
CachingOptions

public static class CachingOptions.Builder
extends Object

A Builder class to use for setting the CachingOptions for a PCollection. The default settings are to keep a single replica of the data deserialized in memory, without writing to disk unless it is required due to resource limitations.


Constructor Summary
CachingOptions.Builder()
           
 
Method Summary
 CachingOptions build()
           
 CachingOptions.Builder deserialized(boolean deserialized)
           
 CachingOptions.Builder replicas(int replicas)
           
 CachingOptions.Builder useDisk(boolean useDisk)
           
 CachingOptions.Builder useMemory(boolean useMemory)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingOptions.Builder

public CachingOptions.Builder()
Method Detail

useMemory

public CachingOptions.Builder useMemory(boolean useMemory)

useDisk

public CachingOptions.Builder useDisk(boolean useDisk)

deserialized

public CachingOptions.Builder deserialized(boolean deserialized)

replicas

public CachingOptions.Builder replicas(int replicas)

build

public CachingOptions build()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.