Package org.apache.flink.cdc.common.text
Class TokenStream.Marker
- java.lang.Object
-
- org.apache.flink.cdc.common.text.TokenStream.Marker
-
- All Implemented Interfaces:
Comparable<TokenStream.Marker>
- Enclosing class:
- TokenStream
public static final class TokenStream.Marker extends Object implements Comparable<TokenStream.Marker>
An opaque marker for a position within the token stream.- See Also:
TokenStream.mark()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TokenStream.Marker that)Positionposition()Get the position of this marker, or null if this is at the start or end of the token stream.StringtoString()
-
-
-
Method Detail
-
position
public Position position()
Get the position of this marker, or null if this is at the start or end of the token stream.- Returns:
- the position.
-
compareTo
public int compareTo(TokenStream.Marker that)
- Specified by:
compareToin interfaceComparable<TokenStream.Marker>
-
-