public class ReadyToCleanAbortHandler extends Object implements QueryHandler<List<CompactionInfo>>
| Constructor and Description |
|---|
ReadyToCleanAbortHandler(org.apache.hadoop.conf.Configuration conf,
long abortedTimeThreshold,
int abortedThreshold) |
| Modifier and Type | Method and Description |
|---|---|
List<CompactionInfo> |
extractData(ResultSet rs) |
String |
getParameterizedQueryString(DatabaseProduct dbProduct)
The parameterized query string.
|
org.springframework.jdbc.core.namedparam.SqlParameterSource |
getQueryParameters()
An
SqlParameterSource instance containing the required parameters for the query string. |
public ReadyToCleanAbortHandler(org.apache.hadoop.conf.Configuration conf,
long abortedTimeThreshold,
int abortedThreshold)
public String getParameterizedQueryString(DatabaseProduct dbProduct) throws MetaException
ParameterizedQuerygetParameterizedQueryString in interface ParameterizedQuerydbProduct - A DatabaseProduct instance representing the type of the underlying HMS dabatabe.MetaException - Thrown if the query string cannot be assembled.public org.springframework.jdbc.core.namedparam.SqlParameterSource getQueryParameters()
ParameterizedQuerySqlParameterSource instance containing the required parameters for the query string. If the query is not
parameterized, this method can either return null or an empty SqlParameterSource.getQueryParameters in interface ParameterizedQuerySqlParameterSource containing the parameters for the query.public List<CompactionInfo> extractData(ResultSet rs) throws org.springframework.dao.DataAccessException, SQLException
extractData in interface org.springframework.jdbc.core.ResultSetExtractor<List<CompactionInfo>>org.springframework.dao.DataAccessExceptionSQLExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.