Package io.stargate.sgv2.api.common.cql
Class CqlStrings
java.lang.Object
io.stargate.sgv2.api.common.cql.CqlStrings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdoubleQuote(String value) Quote the given string; double quotes are escaped.static StringdoubleQuoteUdts(String dataTypeName) Given the text description of a CQL type, quote any UDT names inside it.static StringQuote the given string; single quotes are escaped.
-
Constructor Details
-
CqlStrings
public CqlStrings()
-
-
Method Details
-
quote
Quote the given string; single quotes are escaped. If the given string is null, this method returns a quoted empty string (''). -
doubleQuote
Quote the given string; double quotes are escaped. If the given string is null, this method returns a quoted empty string (""). -
doubleQuoteUdts
Given the text description of a CQL type, quote any UDT names inside it. For example:
The input string is assumed to be in "internal" form, ie exact case and unquoted. For simplicity, UDTs will be systematically quoted, even when they are not case-sensitive.map<text,Address> => map<text,"Address">
-