Package com.tableau.hyperapi
Class ResultSchema
java.lang.Object
com.tableau.hyperapi.ResultSchema
The schema of a query result.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColumn
(int position) Returns the column at a specific position.getColumnByName
(Name columnName) Retrieves the column named "columnName", if it exists.getColumnByName
(String columnName) Retrieves the column named "columnName", if it exists.int
Returns the number of columns.getColumnPositionByName
(Name columnName) Retrieves the column position for column named "columnName", if it exists.getColumnPositionByName
(String columnName) Retrieves the column position for column named "columnName", if it exists.Returns all columns.
-
Method Details
-
getColumns
Returns all columns.- Returns:
- The columns.
-
getColumnCount
public int getColumnCount()Returns the number of columns.- Returns:
- The number of columns.
-
getColumn
Returns the column at a specific position.- Parameters:
position
- The index.- Returns:
- The column.
-
getColumnByName
Retrieves the column named "columnName", if it exists.- Parameters:
columnName
- The name of the column to retrieve.- Returns:
- The column if it exists.
-
getColumnByName
Retrieves the column named "columnName", if it exists.- Parameters:
columnName
- The name of the column to retrieve.- Returns:
- The column if it exists.
-
getColumnPositionByName
Retrieves the column position for column named "columnName", if it exists.- Parameters:
columnName
- The name of the column.- Returns:
- The position of the column if it exists.
-
getColumnPositionByName
Retrieves the column position for column named "columnName", if it exists.- Parameters:
columnName
- The name of the column.- Returns:
- The position of the column if it exists.
-