public class CompactActionFactory extends Object implements ActionFactory
CompactAction
.Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER |
CATALOG_CONF, COMPACT_STRATEGY, DATABASE, EXPIRATIONTIME, EXPIRE_STRATEGY, FULL, HELP, LOG, MINOR, PARTITION, PATH, TABLE, TABLE_CONF, TIMESTAMP_PATTERN, TIMESTAMPFORMATTER, WAREHOUSE
Constructor and Description |
---|
CompactActionFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkCompactStrategy(String compactStrategy) |
Optional<Action> |
create(MultipleParameterToolAdapter params) |
String |
identifier()
Returns a unique identifier among same factory interfaces.
|
void |
printHelp() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
catalogConfigMap, createAction, getPartitions, optionalConfigMap, optionalConfigMapList, printDefaultHelp
public static final String IDENTIFIER
public String identifier()
Factory
For consistency, an identifier should be declared as one lower case word (e.g. kafka
). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7
).
identifier
in interface Factory
public Optional<Action> create(MultipleParameterToolAdapter params)
create
in interface ActionFactory
public static boolean checkCompactStrategy(String compactStrategy)
public void printHelp()
printHelp
in interface ActionFactory
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.