|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.property.Props
cascading.pipe.assembly.AggregateByProps
public class AggregateByProps
Class AggregateByProps is a fluent helper for setting various properties related to the cache used in AggregateBy
.
Field Summary | |
---|---|
static String |
AGGREGATE_BY_CACHE_FACTORY
property to control the cache factory used in AggregateBy. |
static String |
AGGREGATE_BY_CAPACITY
property to control the capacity of the cache to use. |
static int |
AGGREGATE_BY_DEFAULT_CAPACITY
default capacity of caches used in AggregateBy. |
static Class<? extends BaseCacheFactory> |
DEFAULT_CACHE_FACTORY_CLASS
default factory class for creating caches. |
Constructor Summary | |
---|---|
AggregateByProps()
|
Method Summary | |
---|---|
protected void |
addPropertiesTo(Properties properties)
|
static AggregateByProps |
aggregateByProps()
|
String |
getCacheFactoryClassName()
Returns the name of the cache factory. |
int |
getCapacity()
Returns the capacity. |
AggregateByProps |
setCacheFactoryClass(Class<? extends BaseCacheFactory> cacheFactory)
Sets the CacheFactory class to use. |
AggregateByProps |
setCacheFactoryClassName(String cacheFactoryClassName)
Sets the name of the CacheFactory class to use. |
AggregateByProps |
setCapacity(int capacity)
Sets the capacity of the cache. |
Methods inherited from class cascading.property.Props |
---|
buildProperties, buildProperties, buildProperties, buildProperties, setProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String AGGREGATE_BY_CACHE_FACTORY
public static final String AGGREGATE_BY_CAPACITY
public static int AGGREGATE_BY_DEFAULT_CAPACITY
public static final Class<? extends BaseCacheFactory> DEFAULT_CACHE_FACTORY_CLASS
Constructor Detail |
---|
public AggregateByProps()
Method Detail |
---|
public static AggregateByProps aggregateByProps()
public AggregateByProps setCacheFactoryClass(Class<? extends BaseCacheFactory> cacheFactory)
cacheFactory
- The cache factory class to use.public AggregateByProps setCacheFactoryClassName(String cacheFactoryClassName)
cacheFactoryClassName
- The full name of the cache factory class to use.public AggregateByProps setCapacity(int capacity)
capacity
- The capacity of the cache.public int getCapacity()
public String getCacheFactoryClassName()
protected void addPropertiesTo(Properties properties)
addPropertiesTo
in class Props
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |