public IndexDescProto getIndex(final String tableName,
final String columnName) throws IOException {
ResultSet res = null;
PreparedStatement stmt = null;
IndexDescProto proto = null;
try {
String sql =
"SELECT index_name, " + C_TABLE_ID + ", column_name, data_type, "
+ "index_type, is_unique, is_clustered, is_ascending FROM indexes "