public class FindPotentialCompactionsFunction extends Object implements TransactionalFunction<Set<CompactionInfo>>
| Constructor and Description |
|---|
FindPotentialCompactionsFunction(org.apache.hadoop.conf.Configuration conf,
int abortedThreshold,
long abortedTimeThreshold,
long lastChecked) |
| Modifier and Type | Method and Description |
|---|---|
Set<CompactionInfo> |
execute(MultiDataSourceJdbcResource jdbcResource)
Implementations typically should execute transsactional database calls inside.
|
public FindPotentialCompactionsFunction(org.apache.hadoop.conf.Configuration conf,
int abortedThreshold,
long abortedTimeThreshold,
long lastChecked)
public Set<CompactionInfo> execute(MultiDataSourceJdbcResource jdbcResource) throws MetaException
TransactionalFunctionexecute in interface TransactionalFunction<Set<CompactionInfo>>jdbcResource - A MultiDataSourceJdbcResource instance responsible for providing all the necessary resources
to be able to perform transactional database calls.MetaException - Thrown in case of application error within the functionCopyright © 2024 The Apache Software Foundation. All rights reserved.