|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.CachingOptions
public class CachingOptions
Options for controlling how a PCollection<T> is cached for subsequent processing. Different pipeline
execution frameworks may use some or all of these options when deciding how to cache a given PCollection
depending on the implementation details of the framework.
| Nested Class Summary | |
|---|---|
static class |
CachingOptions.Builder
A Builder class to use for setting the CachingOptions for a PCollection. |
| Field Summary | |
|---|---|
static CachingOptions |
DEFAULT
An instance of CachingOptions with the default caching settings. |
| Method Summary | |
|---|---|
static CachingOptions.Builder |
builder()
Creates a new CachingOptions.Builder instance to use for specifying the caching options for a particular
PCollection<T>. |
boolean |
deserialized()
Whether the data should remain deserialized in the cache, which trades off CPU processing time for additional storage overhead. |
int |
replicas()
Returns the number of replicas of the data that should be maintained in the cache. |
boolean |
useDisk()
Whether the framework may cache data on disk. |
boolean |
useMemory()
Whether the framework may cache data in memory without writing it to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CachingOptions DEFAULT
CachingOptions with the default caching settings.
| Method Detail |
|---|
public boolean useDisk()
public boolean useMemory()
public boolean deserialized()
public int replicas()
public static CachingOptions.Builder builder()
CachingOptions.Builder instance to use for specifying the caching options for a particular
PCollection<T>.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||