Package org.apache.calcite.sql.parser
Class StringAndPos
java.lang.Object
org.apache.calcite.sql.parser.StringAndPos
Contains a string, the offset of a token within the string, and a parser
 position containing the beginning and end line number.
- 
Field Summary
Fields - 
Method Summary
 
- 
Field Details
- 
sql
 - 
cursor
public final int cursor - 
pos
 
 - 
 - 
Method Details
- 
toString
 - 
hashCode
public int hashCode() - 
equals
 - 
of
Looks for one or two carets in a SQL string, and if present, converts them into a parser position.Examples:
- of("xxx^yyy") yields {"xxxyyy", position 3, line 1 column 4}
 - of("xxxyyy") yields {"xxxyyy", null}
 - of("xxx^yy^y") yields {"xxxyyy", position 3, line 4 column 4 through line 1 column 6}
 
 - 
addCarets
 
 -