public class CqlStrings extends Object
| Constructor and Description |
|---|
CqlStrings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
doubleQuote(String value)
Quote the given string; double quotes are escaped.
|
static String |
doubleQuoteUdts(String dataTypeName)
Given the text description of a CQL type, quote any UDT names inside it.
|
static String |
quote(String value)
Quote the given string; single quotes are escaped.
|
public static String quote(String value)
'').public static String doubleQuote(String value)
"").public static String doubleQuoteUdts(String dataTypeName)
map<text,Address> => map<text,"Address">
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.Copyright © 2022. All rights reserved.