Class RecordIdFormatParser
java.lang.Object
com.apple.foundationdb.record.lucene.idformat.RecordIdFormatParser
A simple parser for the string that represents the
RecordIdFormat.
Format syntax is:
[<format element>, ...]
Where the <format element> can be:
<FormatElementType> | <TupleElement>
and the <FormatElementType> is one of the NONE, NULL, INT8, UUID_AS_STRING etc,
and the <TupleElement> is (similar to above):
[<format element>, ...]
For example, the following are string representations of valid formats:
[INT8]
[INT8, INT64]
[NULL, [INT64_OR_NULL, UUID_AS_STRING], [NONE, UUID_AS_STRING]]
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordIdFormatParse a string representing a format (see syntax above) and return an instance ofRecordIdFormat.
-
Field Details
-
BEGIN_TUPLE_STR
- See Also:
-
END_TUPLE_STR
- See Also:
-
BEGIN_TUPLE_CHAR
public static final char BEGIN_TUPLE_CHAR- See Also:
-
END_TUPLE_CHAR
public static final char END_TUPLE_CHAR- See Also:
-
-
Method Details
-
parse
Parse a string representing a format (see syntax above) and return an instance ofRecordIdFormat.- Parameters:
formatString- the given string representation- Returns:
- the constructed format
- Throws:
RecordCoreFormatException- in case of parse failure
-