Package com.clickhouse.jdbc.parser
Class ClickHouseSqlStatement
java.lang.Object
com.clickhouse.jdbc.parser.ClickHouseSqlStatement
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClickHouseSqlStatement(String sql, StatementType stmtType) ClickHouseSqlStatement(String sql, StatementType stmtType, String cluster, String database, String table, String input, String compressAlgorithm, String compressLevel, String format, String file, List<Integer> parameters, Map<String, Integer> positions, Map<String, String> settings, Set<String> tempTables) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKeyword(String keyword) booleangetContentBetweenKeywords(String startKeyword, String endKeyword) getContentBetweenKeywords(String startKeyword, String endKeyword, int startOffset) getDatabaseOrDefault(String database) intgetEndPosition(String keyword) getFile()getInput()getSQL()intgetStartPosition(String keyword) getTable()booleanbooleanbooleanhasFile()booleaninthashCode()booleanhasInput()booleanbooleanbooleanbooleanbooleanisDDL()booleanisDML()booleanbooleanbooleanisQuery()booleanbooleanisTCL()toString()
-
Field Details
-
DEFAULT_DATABASE
- See Also:
-
DEFAULT_TABLE
- See Also:
-
KEYWORD_DATABASE
- See Also:
-
KEYWORD_EXISTS
- See Also:
-
KEYWORD_FORMAT
- See Also:
-
KEYWORD_REPLACE
- See Also:
-
KEYWORD_TOTALS
- See Also:
-
KEYWORD_VALUES
- See Also:
-
KEYWORD_TABLE_COLUMNS_START
- See Also:
-
KEYWORD_TABLE_COLUMNS_END
- See Also:
-
KEYWORD_VALUES_START
- See Also:
-
KEYWORD_VALUES_END
- See Also:
-
-
Constructor Details
-
ClickHouseSqlStatement
-
ClickHouseSqlStatement
-
ClickHouseSqlStatement
public ClickHouseSqlStatement(String sql, StatementType stmtType, String cluster, String database, String table, String input, String compressAlgorithm, String compressLevel, String format, String file, List<Integer> parameters, Map<String, Integer> positions, Map<String, String> settings, Set<String> tempTables)
-
-
Method Details
-
getSQL
-
isRecognized
public boolean isRecognized() -
isDDL
public boolean isDDL() -
isDML
public boolean isDML() -
isQuery
public boolean isQuery() -
isMutation
public boolean isMutation() -
isTCL
public boolean isTCL() -
isIdemponent
public boolean isIdemponent() -
getLanguageType
-
getOperationType
-
getStatementType
-
getCluster
-
getDatabase
-
getDatabaseOrDefault
-
getTable
-
getInput
-
getCompressAlgorithm
-
getCompressLevel
-
getFormat
-
getFile
-
getContentBetweenKeywords
-
getContentBetweenKeywords
-
containsKeyword
-
hasCompressAlgorithm
public boolean hasCompressAlgorithm() -
hasCompressLevel
public boolean hasCompressLevel() -
hasFormat
public boolean hasFormat() -
hasInput
public boolean hasInput() -
hasFile
public boolean hasFile() -
hasSettings
public boolean hasSettings() -
hasWithTotals
public boolean hasWithTotals() -
hasValues
public boolean hasValues() -
hasTempTable
public boolean hasTempTable() -
getParameters
-
getStartPosition
-
getEndPosition
-
getPositions
-
getSettings
-
getTempTables
-
toString
-
hashCode
public int hashCode() -
equals
-