public class CompactionMetricsDataHandler extends Object implements QueryHandler<CompactionMetricsData>
| Constructor and Description |
|---|
CompactionMetricsDataHandler(String dbName,
String tblName,
String partitionName,
CompactionMetricsData.MetricType type) |
| Modifier and Type | Method and Description |
|---|---|
CompactionMetricsData |
extractData(ResultSet rs) |
String |
getParameterizedQueryString(DatabaseProduct databaseProduct)
The parameterized query string.
|
org.springframework.jdbc.core.namedparam.SqlParameterSource |
getQueryParameters()
An
SqlParameterSource instance containing the required parameters for the query string. |
public CompactionMetricsDataHandler(String dbName, String tblName, String partitionName, CompactionMetricsData.MetricType type)
public String getParameterizedQueryString(DatabaseProduct databaseProduct) throws MetaException
ParameterizedQuerygetParameterizedQueryString in interface ParameterizedQuerydatabaseProduct - 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 CompactionMetricsData extractData(ResultSet rs) throws SQLException, org.springframework.dao.DataAccessException
extractData in interface org.springframework.jdbc.core.ResultSetExtractor<CompactionMetricsData>SQLExceptionorg.springframework.dao.DataAccessExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.