Class Serializer
java.lang.Object
io.weaviate.client.v1.graphql.query.util.Serializer
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stringarray(T[] input) Creates array string It is up to user to make elements json safestatic <T,R> String Creates array string It is up to user to make elements json safestatic StringarrayWithQuotes(String[] input) Creates json safe array string Surrounds each input string with double quotes, nested quotes are escapedstatic StringCreates graphql safe string Nested quotes are escapedstatic StringCreates graphql safe string Surrounds input string with double quotes, nested quotes are escaped
-
Method Details
-
escape
Creates graphql safe string Nested quotes are escaped- Parameters:
input- string- Returns:
- escaped string
-
quote
Creates graphql safe string Surrounds input string with double quotes, nested quotes are escaped- Parameters:
input- string- Returns:
- quoted string
-
arrayWithQuotes
Creates json safe array string Surrounds each input string with double quotes, nested quotes are escaped- Parameters:
input- array of strings- Returns:
- json safe array string
-
array
Creates array string It is up to user to make elements json safe- Parameters:
input- array of arbitrary elements- Returns:
- array string
-
array
Creates array string It is up to user to make elements json safe- Parameters:
input- array of arbitrary elementsmapper- maps single element before building array- Returns:
- array string
-