public static class MetadataAPIHelper.BestRowIdenData extends Object
The JDBC getBestRowIdentifier() method returns column metadata for the best set of columns that uniquely identifies a table row. In Redshift JDBC, we're returning the primary key columns.
This class optimizes the lookup process by:
The HashSet approach provides efficient filtering when tables have many columns but few primary key columns, avoiding the need for nested loops during the filtering process.
| Constructor and Description |
|---|
BestRowIdenData(List<MetadataAPIHelper.ShowColumnsInfo> resultSet,
HashSet<String> pkColumnSet) |
| Modifier and Type | Method and Description |
|---|---|
HashSet<String> |
getPkColumnSet() |
List<MetadataAPIHelper.ShowColumnsInfo> |
getResultSet() |
public BestRowIdenData(List<MetadataAPIHelper.ShowColumnsInfo> resultSet, HashSet<String> pkColumnSet)
public List<MetadataAPIHelper.ShowColumnsInfo> getResultSet()
Copyright © 2025 Amazon.com Inc.. All rights reserved.