public class CachingOptions extends Object
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.Modifier and Type | Class and Description |
---|---|
static class |
CachingOptions.Builder
A Builder class to use for setting the
CachingOptions for a PCollection . |
Modifier and Type | Field and Description |
---|---|
static CachingOptions |
DEFAULT
An instance of
CachingOptions with the default caching settings. |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final CachingOptions DEFAULT
CachingOptions
with the default caching settings.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>
.Copyright © 2016 The Apache Software Foundation. All rights reserved.