public final class SqlRowMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_NOT_FOUND
Constant indicating that the column is not found.
|
Constructor and Description |
---|
SqlRowMetadata(List<SqlColumnMetadata> columns) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
findColumn(String columnName)
Find index of the column with the given name.
|
SqlColumnMetadata |
getColumn(int index)
Gets column metadata.
|
int |
getColumnCount()
Gets the number of columns in the row.
|
List<SqlColumnMetadata> |
getColumns()
Gets columns metadata.
|
int |
hashCode() |
String |
toString() |
public static final int COLUMN_NOT_FOUND
@PrivateApi public SqlRowMetadata(@Nonnull List<SqlColumnMetadata> columns)
public int getColumnCount()
@Nonnull public SqlColumnMetadata getColumn(int index)
index
- column index, zero-basedIndexOutOfBoundsException
- If the column index is out of bounds@Nonnull public List<SqlColumnMetadata> getColumns()
public int findColumn(@Nonnull String columnName)
SqlRow
.columnName
- column name (case sensitive)COLUMN_NOT_FOUND
if a column with the given name is not foundNullPointerException
- if column name is nullSqlRow
Copyright © 2020 Hazelcast, Inc.. All rights reserved.