Class SelectQueryBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.timestream.query.SelectQueryBuilder
-
public class SelectQueryBuilder extends Object
Used to build a Timestream query which can select data from a table in a specific database directly or via a simplified view. The view is said to be simplified because it must be defined as a single 'select' statement itself which this class will turn into a WITH (select) as t1 to inject the requested query.
-
-
Constructor Summary
Constructors Constructor Description SelectQueryBuilder(org.stringtemplate.v4.ST template, String viewTextPropertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
List<String>
getConjucts()
String
getDatabaseName()
List<String>
getProjection()
String
getTableName()
String
getViewText()
SelectQueryBuilder
withConjucts(Constraints constraints)
SelectQueryBuilder
withDatabaseName(String databaseName)
SelectQueryBuilder
withProjection(org.apache.arrow.vector.types.pojo.Schema schema)
SelectQueryBuilder
withTableName(String tableName)
-
-
-
Constructor Detail
-
SelectQueryBuilder
public SelectQueryBuilder(org.stringtemplate.v4.ST template, String viewTextPropertyName)
-
-
Method Detail
-
withProjection
public SelectQueryBuilder withProjection(org.apache.arrow.vector.types.pojo.Schema schema)
-
getViewText
public String getViewText()
-
withConjucts
public SelectQueryBuilder withConjucts(Constraints constraints)
-
getTableName
public String getTableName()
-
withTableName
public SelectQueryBuilder withTableName(String tableName)
-
getDatabaseName
public String getDatabaseName()
-
withDatabaseName
public SelectQueryBuilder withDatabaseName(String databaseName)
-
build
public String build()
-
-