Package org.apache.cassandra.db.marshal
Class TypeParser
java.lang.Object
org.apache.cassandra.db.marshal.TypeParser
Parse a string containing an Type definition.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<Byte,AbstractType<?>> AbstractType<?>Parse and return the realPartitionerDefinedOrderfrom the string variablestr.List<AbstractType<?>>AbstractType<?>parse()Parse an AbstractType from current position of this parser.static AbstractType<?>parse(CharSequence compareWith) static AbstractType<?>Parse a string containing an type definition.static StringstringifyAliasesParameters(Map<Byte, AbstractType<?>> aliases) Helper function to ease the writing of AbstractType.toString() methods.static StringstringifyCollectionsParameters(Map<ByteBuffer, ? extends CollectionType> collections) static Stringstatic StringstringifyTypeParameters(List<AbstractType<?>> types) Helper function to ease the writing of AbstractType.toString() methods.static StringstringifyTypeParameters(List<AbstractType<?>> types, boolean ignoreFreezing) Helper function to ease the writing of AbstractType.toString() methods.static StringstringifyUserTypeParameters(String keysace, ByteBuffer typeName, List<FieldIdentifier> fields, List<AbstractType<?>> columnTypes, boolean ignoreFreezing) static StringstringifyVectorParameters(AbstractType<?> type, boolean ignoreFreezing, int dimension) toString()
-
Field Details
-
EMPTY_PARSER
-
-
Constructor Details
-
TypeParser
-
-
Method Details
-
parse
Parse a string containing an type definition. -
parse
public static AbstractType<?> parse(CharSequence compareWith) throws SyntaxException, ConfigurationException -
parse
Parse an AbstractType from current position of this parser. -
getPartitionerDefinedOrder
Parse and return the realPartitionerDefinedOrderfrom the string variablestr. Thestrformat can be likePartitionerDefinedOrder(<partitioner>)orPartitionerDefinedOrder(<partitioner>:<baseType>). -
stringifyTKeyValueParameters
-
getKeyValueParameters
- Throws:
SyntaxException
-
stringifyVectorParameters
public static String stringifyVectorParameters(AbstractType<?> type, boolean ignoreFreezing, int dimension) -
getVectorParameters
-
getTypeParameters
-
getAliasParameters
public Map<Byte,AbstractType<?>> getAliasParameters() throws SyntaxException, ConfigurationException -
getCollectionsParameters
public Map<ByteBuffer,CollectionType> getCollectionsParameters() throws SyntaxException, ConfigurationException -
getUserTypeParameters
public Pair<Pair<String,ByteBuffer>, getUserTypeParameters() throws SyntaxException, ConfigurationExceptionList<Pair<ByteBuffer, AbstractType>>> -
readNextIdentifier
-
toString
-
stringifyAliasesParameters
Helper function to ease the writing of AbstractType.toString() methods. -
stringifyTypeParameters
Helper function to ease the writing of AbstractType.toString() methods. -
stringifyTypeParameters
Helper function to ease the writing of AbstractType.toString() methods. -
stringifyCollectionsParameters
public static String stringifyCollectionsParameters(Map<ByteBuffer, ? extends CollectionType> collections) -
stringifyUserTypeParameters
public static String stringifyUserTypeParameters(String keysace, ByteBuffer typeName, List<FieldIdentifier> fields, List<AbstractType<?>> columnTypes, boolean ignoreFreezing)
-