org.apache.cassandra.cql3.Cql_Parser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-all Show documentation
Show all versions of cassandra-all Show documentation
The Apache Cassandra Project develops a highly scalable second-generation distributed database, bringing together Dynamo's fully distributed design and Bigtable's ColumnFamily-based data model.
// $ANTLR 3.5.2 Parser.g 2024-04-12 17:39:06
package org.apache.cassandra.cql3;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.cassandra.auth.*;
import org.apache.cassandra.config.ColumnDefinition;
import org.apache.cassandra.cql3.*;
import org.apache.cassandra.cql3.restrictions.CustomIndexExpression;
import org.apache.cassandra.cql3.statements.*;
import org.apache.cassandra.cql3.selection.*;
import org.apache.cassandra.cql3.functions.*;
import org.apache.cassandra.db.marshal.CollectionType;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.cassandra.exceptions.InvalidRequestException;
import org.apache.cassandra.exceptions.SyntaxException;
import org.apache.cassandra.utils.Pair;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class Cql_Parser extends Parser {
public static final int EOF=-1;
public static final int T__186=186;
public static final int T__187=187;
public static final int T__188=188;
public static final int T__189=189;
public static final int T__190=190;
public static final int T__191=191;
public static final int T__192=192;
public static final int T__193=193;
public static final int T__194=194;
public static final int T__195=195;
public static final int T__196=196;
public static final int T__197=197;
public static final int T__198=198;
public static final int T__199=199;
public static final int T__200=200;
public static final int T__201=201;
public static final int T__202=202;
public static final int T__203=203;
public static final int T__204=204;
public static final int T__205=205;
public static final int T__206=206;
public static final int T__207=207;
public static final int A=4;
public static final int B=5;
public static final int BOOLEAN=6;
public static final int C=7;
public static final int COMMENT=8;
public static final int D=9;
public static final int DIGIT=10;
public static final int DURATION=11;
public static final int DURATION_ISO_8601_PERIOD_DESIGNATORS=12;
public static final int DURATION_ISO_8601_TIME_DESIGNATORS=13;
public static final int DURATION_ISO_8601_WEEK_PERIOD_DESIGNATOR=14;
public static final int DURATION_UNIT=15;
public static final int E=16;
public static final int EMPTY_QUOTED_NAME=17;
public static final int EXPONENT=18;
public static final int F=19;
public static final int FLOAT=20;
public static final int G=21;
public static final int H=22;
public static final int HEX=23;
public static final int HEXNUMBER=24;
public static final int I=25;
public static final int IDENT=26;
public static final int INTEGER=27;
public static final int J=28;
public static final int K=29;
public static final int K_ADD=30;
public static final int K_AGGREGATE=31;
public static final int K_ALL=32;
public static final int K_ALLOW=33;
public static final int K_ALTER=34;
public static final int K_AND=35;
public static final int K_APPLY=36;
public static final int K_AS=37;
public static final int K_ASC=38;
public static final int K_ASCII=39;
public static final int K_AUTHORIZE=40;
public static final int K_BATCH=41;
public static final int K_BEGIN=42;
public static final int K_BIGINT=43;
public static final int K_BLOB=44;
public static final int K_BOOLEAN=45;
public static final int K_BY=46;
public static final int K_CALLED=47;
public static final int K_CAST=48;
public static final int K_CLUSTERING=49;
public static final int K_COLUMNFAMILY=50;
public static final int K_COMPACT=51;
public static final int K_CONTAINS=52;
public static final int K_COUNT=53;
public static final int K_COUNTER=54;
public static final int K_CREATE=55;
public static final int K_CUSTOM=56;
public static final int K_DATE=57;
public static final int K_DECIMAL=58;
public static final int K_DEFAULT=59;
public static final int K_DELETE=60;
public static final int K_DESC=61;
public static final int K_DESCRIBE=62;
public static final int K_DISTINCT=63;
public static final int K_DOUBLE=64;
public static final int K_DROP=65;
public static final int K_DURATION=66;
public static final int K_ENTRIES=67;
public static final int K_EXECUTE=68;
public static final int K_EXISTS=69;
public static final int K_FILTERING=70;
public static final int K_FINALFUNC=71;
public static final int K_FLOAT=72;
public static final int K_FROM=73;
public static final int K_FROZEN=74;
public static final int K_FULL=75;
public static final int K_FUNCTION=76;
public static final int K_FUNCTIONS=77;
public static final int K_GRANT=78;
public static final int K_GROUP=79;
public static final int K_IF=80;
public static final int K_IN=81;
public static final int K_INDEX=82;
public static final int K_INET=83;
public static final int K_INFINITY=84;
public static final int K_INITCOND=85;
public static final int K_INPUT=86;
public static final int K_INSERT=87;
public static final int K_INT=88;
public static final int K_INTO=89;
public static final int K_IS=90;
public static final int K_JSON=91;
public static final int K_KEY=92;
public static final int K_KEYS=93;
public static final int K_KEYSPACE=94;
public static final int K_KEYSPACES=95;
public static final int K_LANGUAGE=96;
public static final int K_LIKE=97;
public static final int K_LIMIT=98;
public static final int K_LIST=99;
public static final int K_LOGIN=100;
public static final int K_MAP=101;
public static final int K_MATERIALIZED=102;
public static final int K_MBEAN=103;
public static final int K_MBEANS=104;
public static final int K_MODIFY=105;
public static final int K_NAN=106;
public static final int K_NOLOGIN=107;
public static final int K_NORECURSIVE=108;
public static final int K_NOSUPERUSER=109;
public static final int K_NOT=110;
public static final int K_NULL=111;
public static final int K_OF=112;
public static final int K_ON=113;
public static final int K_OPTIONS=114;
public static final int K_OR=115;
public static final int K_ORDER=116;
public static final int K_PARTITION=117;
public static final int K_PASSWORD=118;
public static final int K_PER=119;
public static final int K_PERMISSION=120;
public static final int K_PERMISSIONS=121;
public static final int K_PRIMARY=122;
public static final int K_RENAME=123;
public static final int K_REPLACE=124;
public static final int K_RETURNS=125;
public static final int K_REVOKE=126;
public static final int K_ROLE=127;
public static final int K_ROLES=128;
public static final int K_SELECT=129;
public static final int K_SET=130;
public static final int K_SFUNC=131;
public static final int K_SMALLINT=132;
public static final int K_STATIC=133;
public static final int K_STORAGE=134;
public static final int K_STYPE=135;
public static final int K_SUPERUSER=136;
public static final int K_TEXT=137;
public static final int K_TIME=138;
public static final int K_TIMESTAMP=139;
public static final int K_TIMEUUID=140;
public static final int K_TINYINT=141;
public static final int K_TO=142;
public static final int K_TOKEN=143;
public static final int K_TRIGGER=144;
public static final int K_TRUNCATE=145;
public static final int K_TTL=146;
public static final int K_TUPLE=147;
public static final int K_TYPE=148;
public static final int K_UNLOGGED=149;
public static final int K_UNSET=150;
public static final int K_UPDATE=151;
public static final int K_USE=152;
public static final int K_USER=153;
public static final int K_USERS=154;
public static final int K_USING=155;
public static final int K_UUID=156;
public static final int K_VALUES=157;
public static final int K_VARCHAR=158;
public static final int K_VARINT=159;
public static final int K_VIEW=160;
public static final int K_WHERE=161;
public static final int K_WITH=162;
public static final int K_WRITETIME=163;
public static final int L=164;
public static final int LETTER=165;
public static final int M=166;
public static final int MULTILINE_COMMENT=167;
public static final int N=168;
public static final int O=169;
public static final int P=170;
public static final int Q=171;
public static final int QMARK=172;
public static final int QUOTED_NAME=173;
public static final int R=174;
public static final int S=175;
public static final int STRING_LITERAL=176;
public static final int T=177;
public static final int U=178;
public static final int UUID=179;
public static final int V=180;
public static final int W=181;
public static final int WS=182;
public static final int X=183;
public static final int Y=184;
public static final int Z=185;
// delegates
public Parser[] getDelegates() {
return new Parser[] {};
}
// delegators
public CqlParser gCql;
public CqlParser gParent;
public Cql_Parser(TokenStream input, CqlParser gCql) {
this(input, new RecognizerSharedState(), gCql);
}
public Cql_Parser(TokenStream input, RecognizerSharedState state, CqlParser gCql) {
super(input, state);
this.gCql = gCql;
gParent = gCql;
}
@Override public String[] getTokenNames() { return CqlParser.tokenNames; }
@Override public String getGrammarFileName() { return "Parser.g"; }
private final List listeners = new ArrayList();
protected final List bindVariables = new ArrayList();
public static final Set reservedTypeNames = new HashSet()
{{
add("byte");
add("complex");
add("enum");
add("date");
add("interval");
add("macaddr");
add("bitstring");
}};
public AbstractMarker.Raw newBindVariables(ColumnIdentifier name)
{
AbstractMarker.Raw marker = new AbstractMarker.Raw(bindVariables.size());
bindVariables.add(name);
return marker;
}
public AbstractMarker.INRaw newINBindVariables(ColumnIdentifier name)
{
AbstractMarker.INRaw marker = new AbstractMarker.INRaw(bindVariables.size());
bindVariables.add(name);
return marker;
}
public Tuples.Raw newTupleBindVariables(ColumnIdentifier name)
{
Tuples.Raw marker = new Tuples.Raw(bindVariables.size());
bindVariables.add(name);
return marker;
}
public Tuples.INRaw newTupleINBindVariables(ColumnIdentifier name)
{
Tuples.INRaw marker = new Tuples.INRaw(bindVariables.size());
bindVariables.add(name);
return marker;
}
public Json.Marker newJsonBindVariables(ColumnIdentifier name)
{
Json.Marker marker = new Json.Marker(bindVariables.size());
bindVariables.add(name);
return marker;
}
public void addErrorListener(ErrorListener listener)
{
this.listeners.add(listener);
}
public void removeErrorListener(ErrorListener listener)
{
this.listeners.remove(listener);
}
public void displayRecognitionError(String[] tokenNames, RecognitionException e)
{
for (int i = 0, m = listeners.size(); i < m; i++)
listeners.get(i).syntaxError(this, tokenNames, e);
}
protected void addRecognitionError(String msg)
{
for (int i = 0, m = listeners.size(); i < m; i++)
listeners.get(i).syntaxError(this, msg);
}
public Map convertPropertyMap(Maps.Literal map)
{
if (map == null || map.entries == null || map.entries.isEmpty())
return Collections.emptyMap();
Map res = new HashMap<>(map.entries.size());
for (Pair entry : map.entries)
{
// Because the parser tries to be smart and recover on error (to
// allow displaying more than one error I suppose), we have null
// entries in there. Just skip those, a proper error will be thrown in the end.
if (entry.left == null || entry.right == null)
break;
if (!(entry.left instanceof Constants.Literal))
{
String msg = "Invalid property name: " + entry.left;
if (entry.left instanceof AbstractMarker.Raw)
msg += " (bind variables are not supported in DDL queries)";
addRecognitionError(msg);
break;
}
if (!(entry.right instanceof Constants.Literal))
{
String msg = "Invalid property value: " + entry.right + " for property: " + entry.left;
if (entry.right instanceof AbstractMarker.Raw)
msg += " (bind variables are not supported in DDL queries)";
addRecognitionError(msg);
break;
}
if (res.put(((Constants.Literal)entry.left).getRawText(), ((Constants.Literal)entry.right).getRawText()) != null)
{
addRecognitionError(String.format("Multiple definition for property " + ((Constants.Literal)entry.left).getRawText()));
}
}
return res;
}
public void addRawUpdate(List> operations, ColumnDefinition.Raw key, Operation.RawUpdate update)
{
for (Pair p : operations)
{
if (p.left.equals(key) && !p.right.isCompatibleWith(update))
addRecognitionError("Multiple incompatible setting of column " + key);
}
operations.add(Pair.create(key, update));
}
public Set filterPermissions(Set permissions, IResource resource)
{
if (resource == null)
return Collections.emptySet();
Set filtered = new HashSet<>(permissions);
filtered.retainAll(resource.applicablePermissions());
if (filtered.isEmpty())
addRecognitionError("Resource type " + resource.getClass().getSimpleName() +
" does not support any of the requested permissions");
return filtered;
}
public String canonicalizeObjectName(String s, boolean enforcePattern)
{
// these two conditions are here because technically they are valid
// ObjectNames, but we want to restrict their use without adding unnecessary
// work to JMXResource construction as that also happens on hotter code paths
if ("".equals(s))
addRecognitionError("Empty JMX object name supplied");
if ("*:*".equals(s))
addRecognitionError("Please use ALL MBEANS instead of wildcard pattern");
try
{
javax.management.ObjectName objectName = javax.management.ObjectName.getInstance(s);
if (enforcePattern && !objectName.isPattern())
addRecognitionError("Plural form used, but non-pattern JMX object name specified (" + s + ")");
return objectName.getCanonicalName();
}
catch (javax.management.MalformedObjectNameException e)
{
addRecognitionError(s + " is not a valid JMX object name");
return s;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Recovery methods are overridden to avoid wasting work on recovering from errors when the result will be
// ignored anyway.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@Override
protected Object recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow) throws RecognitionException
{
throw new MismatchedTokenException(ttype, input);
}
@Override
public void recover(IntStream input, RecognitionException re)
{
// Do nothing.
}
// $ANTLR start "cqlStatement"
// Parser.g:207:1: cqlStatement returns [ParsedStatement stmt] : (st1= selectStatement |st2= insertStatement |st3= updateStatement |st4= batchStatement |st5= deleteStatement |st6= useStatement |st7= truncateStatement |st8= createKeyspaceStatement |st9= createTableStatement |st10= createIndexStatement |st11= dropKeyspaceStatement |st12= dropTableStatement |st13= dropIndexStatement |st14= alterTableStatement |st15= alterKeyspaceStatement |st16= grantPermissionsStatement |st17= revokePermissionsStatement |st18= listPermissionsStatement |st19= createUserStatement |st20= alterUserStatement |st21= dropUserStatement |st22= listUsersStatement |st23= createTriggerStatement |st24= dropTriggerStatement |st25= createTypeStatement |st26= alterTypeStatement |st27= dropTypeStatement |st28= createFunctionStatement |st29= dropFunctionStatement |st30= createAggregateStatement |st31= dropAggregateStatement |st32= createRoleStatement |st33= alterRoleStatement |st34= dropRoleStatement |st35= listRolesStatement |st36= grantRoleStatement |st37= revokeRoleStatement |st38= createMaterializedViewStatement |st39= dropMaterializedViewStatement |st40= alterMaterializedViewStatement );
public final ParsedStatement cqlStatement() throws RecognitionException {
ParsedStatement stmt = null;
SelectStatement.RawStatement st1 =null;
ModificationStatement.Parsed st2 =null;
UpdateStatement.ParsedUpdate st3 =null;
BatchStatement.Parsed st4 =null;
DeleteStatement.Parsed st5 =null;
UseStatement st6 =null;
TruncateStatement st7 =null;
CreateKeyspaceStatement st8 =null;
CreateTableStatement.RawStatement st9 =null;
CreateIndexStatement st10 =null;
DropKeyspaceStatement st11 =null;
DropTableStatement st12 =null;
DropIndexStatement st13 =null;
AlterTableStatement st14 =null;
AlterKeyspaceStatement st15 =null;
GrantPermissionsStatement st16 =null;
RevokePermissionsStatement st17 =null;
ListPermissionsStatement st18 =null;
CreateRoleStatement st19 =null;
AlterRoleStatement st20 =null;
DropRoleStatement st21 =null;
ListRolesStatement st22 =null;
CreateTriggerStatement st23 =null;
DropTriggerStatement st24 =null;
CreateTypeStatement st25 =null;
AlterTypeStatement st26 =null;
DropTypeStatement st27 =null;
CreateFunctionStatement st28 =null;
DropFunctionStatement st29 =null;
CreateAggregateStatement st30 =null;
DropAggregateStatement st31 =null;
CreateRoleStatement st32 =null;
AlterRoleStatement st33 =null;
DropRoleStatement st34 =null;
ListRolesStatement st35 =null;
GrantRoleStatement st36 =null;
RevokeRoleStatement st37 =null;
CreateViewStatement st38 =null;
DropViewStatement st39 =null;
AlterViewStatement st40 =null;
try {
// Parser.g:209:5: (st1= selectStatement |st2= insertStatement |st3= updateStatement |st4= batchStatement |st5= deleteStatement |st6= useStatement |st7= truncateStatement |st8= createKeyspaceStatement |st9= createTableStatement |st10= createIndexStatement |st11= dropKeyspaceStatement |st12= dropTableStatement |st13= dropIndexStatement |st14= alterTableStatement |st15= alterKeyspaceStatement |st16= grantPermissionsStatement |st17= revokePermissionsStatement |st18= listPermissionsStatement |st19= createUserStatement |st20= alterUserStatement |st21= dropUserStatement |st22= listUsersStatement |st23= createTriggerStatement |st24= dropTriggerStatement |st25= createTypeStatement |st26= alterTypeStatement |st27= dropTypeStatement |st28= createFunctionStatement |st29= dropFunctionStatement |st30= createAggregateStatement |st31= dropAggregateStatement |st32= createRoleStatement |st33= alterRoleStatement |st34= dropRoleStatement |st35= listRolesStatement |st36= grantRoleStatement |st37= revokeRoleStatement |st38= createMaterializedViewStatement |st39= dropMaterializedViewStatement |st40= alterMaterializedViewStatement )
int alt1=40;
alt1 = dfa1.predict(input);
switch (alt1) {
case 1 :
// Parser.g:209:7: st1= selectStatement
{
pushFollow(FOLLOW_selectStatement_in_cqlStatement59);
st1=selectStatement();
state._fsp--;
stmt = st1;
}
break;
case 2 :
// Parser.g:210:7: st2= insertStatement
{
pushFollow(FOLLOW_insertStatement_in_cqlStatement88);
st2=insertStatement();
state._fsp--;
stmt = st2;
}
break;
case 3 :
// Parser.g:211:7: st3= updateStatement
{
pushFollow(FOLLOW_updateStatement_in_cqlStatement117);
st3=updateStatement();
state._fsp--;
stmt = st3;
}
break;
case 4 :
// Parser.g:212:7: st4= batchStatement
{
pushFollow(FOLLOW_batchStatement_in_cqlStatement146);
st4=batchStatement();
state._fsp--;
stmt = st4;
}
break;
case 5 :
// Parser.g:213:7: st5= deleteStatement
{
pushFollow(FOLLOW_deleteStatement_in_cqlStatement176);
st5=deleteStatement();
state._fsp--;
stmt = st5;
}
break;
case 6 :
// Parser.g:214:7: st6= useStatement
{
pushFollow(FOLLOW_useStatement_in_cqlStatement205);
st6=useStatement();
state._fsp--;
stmt = st6;
}
break;
case 7 :
// Parser.g:215:7: st7= truncateStatement
{
pushFollow(FOLLOW_truncateStatement_in_cqlStatement237);
st7=truncateStatement();
state._fsp--;
stmt = st7;
}
break;
case 8 :
// Parser.g:216:7: st8= createKeyspaceStatement
{
pushFollow(FOLLOW_createKeyspaceStatement_in_cqlStatement264);
st8=createKeyspaceStatement();
state._fsp--;
stmt = st8;
}
break;
case 9 :
// Parser.g:217:7: st9= createTableStatement
{
pushFollow(FOLLOW_createTableStatement_in_cqlStatement285);
st9=createTableStatement();
state._fsp--;
stmt = st9;
}
break;
case 10 :
// Parser.g:218:7: st10= createIndexStatement
{
pushFollow(FOLLOW_createIndexStatement_in_cqlStatement308);
st10=createIndexStatement();
state._fsp--;
stmt = st10;
}
break;
case 11 :
// Parser.g:219:7: st11= dropKeyspaceStatement
{
pushFollow(FOLLOW_dropKeyspaceStatement_in_cqlStatement331);
st11=dropKeyspaceStatement();
state._fsp--;
stmt = st11;
}
break;
case 12 :
// Parser.g:220:7: st12= dropTableStatement
{
pushFollow(FOLLOW_dropTableStatement_in_cqlStatement353);
st12=dropTableStatement();
state._fsp--;
stmt = st12;
}
break;
case 13 :
// Parser.g:221:7: st13= dropIndexStatement
{
pushFollow(FOLLOW_dropIndexStatement_in_cqlStatement378);
st13=dropIndexStatement();
state._fsp--;
stmt = st13;
}
break;
case 14 :
// Parser.g:222:7: st14= alterTableStatement
{
pushFollow(FOLLOW_alterTableStatement_in_cqlStatement403);
st14=alterTableStatement();
state._fsp--;
stmt = st14;
}
break;
case 15 :
// Parser.g:223:7: st15= alterKeyspaceStatement
{
pushFollow(FOLLOW_alterKeyspaceStatement_in_cqlStatement427);
st15=alterKeyspaceStatement();
state._fsp--;
stmt = st15;
}
break;
case 16 :
// Parser.g:224:7: st16= grantPermissionsStatement
{
pushFollow(FOLLOW_grantPermissionsStatement_in_cqlStatement448);
st16=grantPermissionsStatement();
state._fsp--;
stmt = st16;
}
break;
case 17 :
// Parser.g:225:7: st17= revokePermissionsStatement
{
pushFollow(FOLLOW_revokePermissionsStatement_in_cqlStatement466);
st17=revokePermissionsStatement();
state._fsp--;
stmt = st17;
}
break;
case 18 :
// Parser.g:226:7: st18= listPermissionsStatement
{
pushFollow(FOLLOW_listPermissionsStatement_in_cqlStatement483);
st18=listPermissionsStatement();
state._fsp--;
stmt = st18;
}
break;
case 19 :
// Parser.g:227:7: st19= createUserStatement
{
pushFollow(FOLLOW_createUserStatement_in_cqlStatement502);
st19=createUserStatement();
state._fsp--;
stmt = st19;
}
break;
case 20 :
// Parser.g:228:7: st20= alterUserStatement
{
pushFollow(FOLLOW_alterUserStatement_in_cqlStatement526);
st20=alterUserStatement();
state._fsp--;
stmt = st20;
}
break;
case 21 :
// Parser.g:229:7: st21= dropUserStatement
{
pushFollow(FOLLOW_dropUserStatement_in_cqlStatement551);
st21=dropUserStatement();
state._fsp--;
stmt = st21;
}
break;
case 22 :
// Parser.g:230:7: st22= listUsersStatement
{
pushFollow(FOLLOW_listUsersStatement_in_cqlStatement577);
st22=listUsersStatement();
state._fsp--;
stmt = st22;
}
break;
case 23 :
// Parser.g:231:7: st23= createTriggerStatement
{
pushFollow(FOLLOW_createTriggerStatement_in_cqlStatement602);
st23=createTriggerStatement();
state._fsp--;
stmt = st23;
}
break;
case 24 :
// Parser.g:232:7: st24= dropTriggerStatement
{
pushFollow(FOLLOW_dropTriggerStatement_in_cqlStatement623);
st24=dropTriggerStatement();
state._fsp--;
stmt = st24;
}
break;
case 25 :
// Parser.g:233:7: st25= createTypeStatement
{
pushFollow(FOLLOW_createTypeStatement_in_cqlStatement646);
st25=createTypeStatement();
state._fsp--;
stmt = st25;
}
break;
case 26 :
// Parser.g:234:7: st26= alterTypeStatement
{
pushFollow(FOLLOW_alterTypeStatement_in_cqlStatement670);
st26=alterTypeStatement();
state._fsp--;
stmt = st26;
}
break;
case 27 :
// Parser.g:235:7: st27= dropTypeStatement
{
pushFollow(FOLLOW_dropTypeStatement_in_cqlStatement695);
st27=dropTypeStatement();
state._fsp--;
stmt = st27;
}
break;
case 28 :
// Parser.g:236:7: st28= createFunctionStatement
{
pushFollow(FOLLOW_createFunctionStatement_in_cqlStatement721);
st28=createFunctionStatement();
state._fsp--;
stmt = st28;
}
break;
case 29 :
// Parser.g:237:7: st29= dropFunctionStatement
{
pushFollow(FOLLOW_dropFunctionStatement_in_cqlStatement741);
st29=dropFunctionStatement();
state._fsp--;
stmt = st29;
}
break;
case 30 :
// Parser.g:238:7: st30= createAggregateStatement
{
pushFollow(FOLLOW_createAggregateStatement_in_cqlStatement763);
st30=createAggregateStatement();
state._fsp--;
stmt = st30;
}
break;
case 31 :
// Parser.g:239:7: st31= dropAggregateStatement
{
pushFollow(FOLLOW_dropAggregateStatement_in_cqlStatement782);
st31=dropAggregateStatement();
state._fsp--;
stmt = st31;
}
break;
case 32 :
// Parser.g:240:7: st32= createRoleStatement
{
pushFollow(FOLLOW_createRoleStatement_in_cqlStatement803);
st32=createRoleStatement();
state._fsp--;
stmt = st32;
}
break;
case 33 :
// Parser.g:241:7: st33= alterRoleStatement
{
pushFollow(FOLLOW_alterRoleStatement_in_cqlStatement827);
st33=alterRoleStatement();
state._fsp--;
stmt = st33;
}
break;
case 34 :
// Parser.g:242:7: st34= dropRoleStatement
{
pushFollow(FOLLOW_dropRoleStatement_in_cqlStatement852);
st34=dropRoleStatement();
state._fsp--;
stmt = st34;
}
break;
case 35 :
// Parser.g:243:7: st35= listRolesStatement
{
pushFollow(FOLLOW_listRolesStatement_in_cqlStatement878);
st35=listRolesStatement();
state._fsp--;
stmt = st35;
}
break;
case 36 :
// Parser.g:244:7: st36= grantRoleStatement
{
pushFollow(FOLLOW_grantRoleStatement_in_cqlStatement903);
st36=grantRoleStatement();
state._fsp--;
stmt = st36;
}
break;
case 37 :
// Parser.g:245:7: st37= revokeRoleStatement
{
pushFollow(FOLLOW_revokeRoleStatement_in_cqlStatement928);
st37=revokeRoleStatement();
state._fsp--;
stmt = st37;
}
break;
case 38 :
// Parser.g:246:7: st38= createMaterializedViewStatement
{
pushFollow(FOLLOW_createMaterializedViewStatement_in_cqlStatement952);
st38=createMaterializedViewStatement();
state._fsp--;
stmt = st38;
}
break;
case 39 :
// Parser.g:247:7: st39= dropMaterializedViewStatement
{
pushFollow(FOLLOW_dropMaterializedViewStatement_in_cqlStatement964);
st39=dropMaterializedViewStatement();
state._fsp--;
stmt = st39;
}
break;
case 40 :
// Parser.g:248:7: st40= alterMaterializedViewStatement
{
pushFollow(FOLLOW_alterMaterializedViewStatement_in_cqlStatement978);
st40=alterMaterializedViewStatement();
state._fsp--;
stmt = st40;
}
break;
}
if (stmt != null) stmt.setBoundVariables(bindVariables);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "cqlStatement"
// $ANTLR start "useStatement"
// Parser.g:254:1: useStatement returns [UseStatement stmt] : K_USE ks= keyspaceName ;
public final UseStatement useStatement() throws RecognitionException {
UseStatement stmt = null;
String ks =null;
try {
// Parser.g:255:5: ( K_USE ks= keyspaceName )
// Parser.g:255:7: K_USE ks= keyspaceName
{
match(input,K_USE,FOLLOW_K_USE_in_useStatement1004);
pushFollow(FOLLOW_keyspaceName_in_useStatement1008);
ks=keyspaceName();
state._fsp--;
stmt = new UseStatement(ks);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "useStatement"
// $ANTLR start "selectStatement"
// Parser.g:264:1: selectStatement returns [SelectStatement.RawStatement expr] : K_SELECT ( K_JSON )? ( ( K_DISTINCT )? sclause= selectClause ) K_FROM cf= columnFamilyName ( K_WHERE wclause= whereClause )? ( K_GROUP K_BY groupByClause[groups] ( ',' groupByClause[groups] )* )? ( K_ORDER K_BY orderByClause[orderings] ( ',' orderByClause[orderings] )* )? ( K_PER K_PARTITION K_LIMIT rows= intValue )? ( K_LIMIT rows= intValue )? ( K_ALLOW K_FILTERING )? ;
public final SelectStatement.RawStatement selectStatement() throws RecognitionException {
SelectStatement.RawStatement expr = null;
List sclause =null;
CFName cf =null;
WhereClause.Builder wclause =null;
Term.Raw rows =null;
boolean isDistinct = false;
Term.Raw limit = null;
Term.Raw perPartitionLimit = null;
Map orderings = new LinkedHashMap<>();
List groups = new ArrayList<>();
boolean allowFiltering = false;
boolean isJson = false;
try {
// Parser.g:274:5: ( K_SELECT ( K_JSON )? ( ( K_DISTINCT )? sclause= selectClause ) K_FROM cf= columnFamilyName ( K_WHERE wclause= whereClause )? ( K_GROUP K_BY groupByClause[groups] ( ',' groupByClause[groups] )* )? ( K_ORDER K_BY orderByClause[orderings] ( ',' orderByClause[orderings] )* )? ( K_PER K_PARTITION K_LIMIT rows= intValue )? ( K_LIMIT rows= intValue )? ( K_ALLOW K_FILTERING )? )
// Parser.g:274:7: K_SELECT ( K_JSON )? ( ( K_DISTINCT )? sclause= selectClause ) K_FROM cf= columnFamilyName ( K_WHERE wclause= whereClause )? ( K_GROUP K_BY groupByClause[groups] ( ',' groupByClause[groups] )* )? ( K_ORDER K_BY orderByClause[orderings] ( ',' orderByClause[orderings] )* )? ( K_PER K_PARTITION K_LIMIT rows= intValue )? ( K_LIMIT rows= intValue )? ( K_ALLOW K_FILTERING )?
{
match(input,K_SELECT,FOLLOW_K_SELECT_in_selectStatement1042);
// Parser.g:275:7: ( K_JSON )?
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==K_JSON) ) {
int LA2_1 = input.LA(2);
if ( (LA2_1==BOOLEAN||LA2_1==DURATION||LA2_1==EMPTY_QUOTED_NAME||LA2_1==FLOAT||LA2_1==HEXNUMBER||(LA2_1 >= IDENT && LA2_1 <= INTEGER)||(LA2_1 >= K_AGGREGATE && LA2_1 <= K_ALL)||LA2_1==K_ASCII||(LA2_1 >= K_BIGINT && LA2_1 <= K_BOOLEAN)||(LA2_1 >= K_CALLED && LA2_1 <= K_CLUSTERING)||(LA2_1 >= K_COMPACT && LA2_1 <= K_COUNTER)||(LA2_1 >= K_CUSTOM && LA2_1 <= K_DECIMAL)||(LA2_1 >= K_DISTINCT && LA2_1 <= K_DOUBLE)||LA2_1==K_DURATION||(LA2_1 >= K_EXISTS && LA2_1 <= K_FLOAT)||LA2_1==K_FROZEN||(LA2_1 >= K_FUNCTION && LA2_1 <= K_FUNCTIONS)||LA2_1==K_GROUP||(LA2_1 >= K_INET && LA2_1 <= K_INPUT)||LA2_1==K_INT||(LA2_1 >= K_JSON && LA2_1 <= K_KEYS)||(LA2_1 >= K_KEYSPACES && LA2_1 <= K_LIKE)||(LA2_1 >= K_LIST && LA2_1 <= K_MAP)||(LA2_1 >= K_NAN && LA2_1 <= K_NOLOGIN)||LA2_1==K_NOSUPERUSER||LA2_1==K_NULL||LA2_1==K_OPTIONS||(LA2_1 >= K_PARTITION && LA2_1 <= K_PERMISSIONS)||LA2_1==K_RETURNS||(LA2_1 >= K_ROLE && LA2_1 <= K_ROLES)||(LA2_1 >= K_SFUNC && LA2_1 <= K_TINYINT)||(LA2_1 >= K_TOKEN && LA2_1 <= K_TRIGGER)||(LA2_1 >= K_TTL && LA2_1 <= K_TYPE)||(LA2_1 >= K_USER && LA2_1 <= K_USERS)||(LA2_1 >= K_UUID && LA2_1 <= K_VARINT)||LA2_1==K_WRITETIME||(LA2_1 >= QMARK && LA2_1 <= QUOTED_NAME)||LA2_1==STRING_LITERAL||LA2_1==UUID||LA2_1==187||LA2_1==192||LA2_1==195||(LA2_1 >= 202 && LA2_1 <= 203)||LA2_1==206) ) {
alt2=1;
}
else if ( (LA2_1==K_AS) ) {
int LA2_4 = input.LA(3);
if ( (LA2_4==K_FROM||LA2_4==187||LA2_4==191||LA2_4==194) ) {
alt2=1;
}
else if ( (LA2_4==K_AS) ) {
int LA2_5 = input.LA(4);
if ( (LA2_5==IDENT||(LA2_5 >= K_AGGREGATE && LA2_5 <= K_ALL)||LA2_5==K_AS||LA2_5==K_ASCII||(LA2_5 >= K_BIGINT && LA2_5 <= K_BOOLEAN)||(LA2_5 >= K_CALLED && LA2_5 <= K_CLUSTERING)||(LA2_5 >= K_COMPACT && LA2_5 <= K_COUNTER)||(LA2_5 >= K_CUSTOM && LA2_5 <= K_DECIMAL)||(LA2_5 >= K_DISTINCT && LA2_5 <= K_DOUBLE)||LA2_5==K_DURATION||(LA2_5 >= K_EXISTS && LA2_5 <= K_FLOAT)||LA2_5==K_FROZEN||(LA2_5 >= K_FUNCTION && LA2_5 <= K_FUNCTIONS)||LA2_5==K_GROUP||LA2_5==K_INET||(LA2_5 >= K_INITCOND && LA2_5 <= K_INPUT)||LA2_5==K_INT||(LA2_5 >= K_JSON && LA2_5 <= K_KEYS)||(LA2_5 >= K_KEYSPACES && LA2_5 <= K_LIKE)||(LA2_5 >= K_LIST && LA2_5 <= K_MAP)||LA2_5==K_NOLOGIN||LA2_5==K_NOSUPERUSER||LA2_5==K_OPTIONS||(LA2_5 >= K_PARTITION && LA2_5 <= K_PERMISSIONS)||LA2_5==K_RETURNS||(LA2_5 >= K_ROLE && LA2_5 <= K_ROLES)||(LA2_5 >= K_SFUNC && LA2_5 <= K_TINYINT)||LA2_5==K_TRIGGER||(LA2_5 >= K_TTL && LA2_5 <= K_TYPE)||(LA2_5 >= K_USER && LA2_5 <= K_USERS)||(LA2_5 >= K_UUID && LA2_5 <= K_VARINT)||LA2_5==K_WRITETIME||LA2_5==QUOTED_NAME) ) {
alt2=1;
}
}
}
}
switch (alt2) {
case 1 :
// Parser.g:275:9: K_JSON
{
match(input,K_JSON,FOLLOW_K_JSON_in_selectStatement1052);
isJson = true;
}
break;
}
// Parser.g:276:7: ( ( K_DISTINCT )? sclause= selectClause )
// Parser.g:276:9: ( K_DISTINCT )? sclause= selectClause
{
// Parser.g:276:9: ( K_DISTINCT )?
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==K_DISTINCT) ) {
int LA3_1 = input.LA(2);
if ( (LA3_1==BOOLEAN||LA3_1==DURATION||LA3_1==EMPTY_QUOTED_NAME||LA3_1==FLOAT||LA3_1==HEXNUMBER||(LA3_1 >= IDENT && LA3_1 <= INTEGER)||(LA3_1 >= K_AGGREGATE && LA3_1 <= K_ALL)||LA3_1==K_ASCII||(LA3_1 >= K_BIGINT && LA3_1 <= K_BOOLEAN)||(LA3_1 >= K_CALLED && LA3_1 <= K_CLUSTERING)||(LA3_1 >= K_COMPACT && LA3_1 <= K_COUNTER)||(LA3_1 >= K_CUSTOM && LA3_1 <= K_DECIMAL)||(LA3_1 >= K_DISTINCT && LA3_1 <= K_DOUBLE)||LA3_1==K_DURATION||(LA3_1 >= K_EXISTS && LA3_1 <= K_FLOAT)||LA3_1==K_FROZEN||(LA3_1 >= K_FUNCTION && LA3_1 <= K_FUNCTIONS)||LA3_1==K_GROUP||(LA3_1 >= K_INET && LA3_1 <= K_INPUT)||LA3_1==K_INT||(LA3_1 >= K_JSON && LA3_1 <= K_KEYS)||(LA3_1 >= K_KEYSPACES && LA3_1 <= K_LIKE)||(LA3_1 >= K_LIST && LA3_1 <= K_MAP)||(LA3_1 >= K_NAN && LA3_1 <= K_NOLOGIN)||LA3_1==K_NOSUPERUSER||LA3_1==K_NULL||LA3_1==K_OPTIONS||(LA3_1 >= K_PARTITION && LA3_1 <= K_PERMISSIONS)||LA3_1==K_RETURNS||(LA3_1 >= K_ROLE && LA3_1 <= K_ROLES)||(LA3_1 >= K_SFUNC && LA3_1 <= K_TINYINT)||(LA3_1 >= K_TOKEN && LA3_1 <= K_TRIGGER)||(LA3_1 >= K_TTL && LA3_1 <= K_TYPE)||(LA3_1 >= K_USER && LA3_1 <= K_USERS)||(LA3_1 >= K_UUID && LA3_1 <= K_VARINT)||LA3_1==K_WRITETIME||(LA3_1 >= QMARK && LA3_1 <= QUOTED_NAME)||LA3_1==STRING_LITERAL||LA3_1==UUID||LA3_1==187||LA3_1==192||LA3_1==195||(LA3_1 >= 202 && LA3_1 <= 203)||LA3_1==206) ) {
alt3=1;
}
else if ( (LA3_1==K_AS) ) {
int LA3_4 = input.LA(3);
if ( (LA3_4==K_FROM||LA3_4==187||LA3_4==191||LA3_4==194) ) {
alt3=1;
}
else if ( (LA3_4==K_AS) ) {
int LA3_5 = input.LA(4);
if ( (LA3_5==IDENT||(LA3_5 >= K_AGGREGATE && LA3_5 <= K_ALL)||LA3_5==K_AS||LA3_5==K_ASCII||(LA3_5 >= K_BIGINT && LA3_5 <= K_BOOLEAN)||(LA3_5 >= K_CALLED && LA3_5 <= K_CLUSTERING)||(LA3_5 >= K_COMPACT && LA3_5 <= K_COUNTER)||(LA3_5 >= K_CUSTOM && LA3_5 <= K_DECIMAL)||(LA3_5 >= K_DISTINCT && LA3_5 <= K_DOUBLE)||LA3_5==K_DURATION||(LA3_5 >= K_EXISTS && LA3_5 <= K_FLOAT)||LA3_5==K_FROZEN||(LA3_5 >= K_FUNCTION && LA3_5 <= K_FUNCTIONS)||LA3_5==K_GROUP||LA3_5==K_INET||(LA3_5 >= K_INITCOND && LA3_5 <= K_INPUT)||LA3_5==K_INT||(LA3_5 >= K_JSON && LA3_5 <= K_KEYS)||(LA3_5 >= K_KEYSPACES && LA3_5 <= K_LIKE)||(LA3_5 >= K_LIST && LA3_5 <= K_MAP)||LA3_5==K_NOLOGIN||LA3_5==K_NOSUPERUSER||LA3_5==K_OPTIONS||(LA3_5 >= K_PARTITION && LA3_5 <= K_PERMISSIONS)||LA3_5==K_RETURNS||(LA3_5 >= K_ROLE && LA3_5 <= K_ROLES)||(LA3_5 >= K_SFUNC && LA3_5 <= K_TINYINT)||LA3_5==K_TRIGGER||(LA3_5 >= K_TTL && LA3_5 <= K_TYPE)||(LA3_5 >= K_USER && LA3_5 <= K_USERS)||(LA3_5 >= K_UUID && LA3_5 <= K_VARINT)||LA3_5==K_WRITETIME||LA3_5==QUOTED_NAME) ) {
alt3=1;
}
}
}
}
switch (alt3) {
case 1 :
// Parser.g:276:11: K_DISTINCT
{
match(input,K_DISTINCT,FOLLOW_K_DISTINCT_in_selectStatement1069);
isDistinct = true;
}
break;
}
pushFollow(FOLLOW_selectClause_in_selectStatement1078);
sclause=selectClause();
state._fsp--;
}
match(input,K_FROM,FOLLOW_K_FROM_in_selectStatement1088);
pushFollow(FOLLOW_columnFamilyName_in_selectStatement1092);
cf=columnFamilyName();
state._fsp--;
// Parser.g:278:7: ( K_WHERE wclause= whereClause )?
int alt4=2;
int LA4_0 = input.LA(1);
if ( (LA4_0==K_WHERE) ) {
alt4=1;
}
switch (alt4) {
case 1 :
// Parser.g:278:9: K_WHERE wclause= whereClause
{
match(input,K_WHERE,FOLLOW_K_WHERE_in_selectStatement1102);
pushFollow(FOLLOW_whereClause_in_selectStatement1106);
wclause=whereClause();
state._fsp--;
}
break;
}
// Parser.g:279:7: ( K_GROUP K_BY groupByClause[groups] ( ',' groupByClause[groups] )* )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==K_GROUP) ) {
alt6=1;
}
switch (alt6) {
case 1 :
// Parser.g:279:9: K_GROUP K_BY groupByClause[groups] ( ',' groupByClause[groups] )*
{
match(input,K_GROUP,FOLLOW_K_GROUP_in_selectStatement1119);
match(input,K_BY,FOLLOW_K_BY_in_selectStatement1121);
pushFollow(FOLLOW_groupByClause_in_selectStatement1123);
groupByClause(groups);
state._fsp--;
// Parser.g:279:44: ( ',' groupByClause[groups] )*
loop5:
while (true) {
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==191) ) {
alt5=1;
}
switch (alt5) {
case 1 :
// Parser.g:279:46: ',' groupByClause[groups]
{
match(input,191,FOLLOW_191_in_selectStatement1128);
pushFollow(FOLLOW_groupByClause_in_selectStatement1130);
groupByClause(groups);
state._fsp--;
}
break;
default :
break loop5;
}
}
}
break;
}
// Parser.g:280:7: ( K_ORDER K_BY orderByClause[orderings] ( ',' orderByClause[orderings] )* )?
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==K_ORDER) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// Parser.g:280:9: K_ORDER K_BY orderByClause[orderings] ( ',' orderByClause[orderings] )*
{
match(input,K_ORDER,FOLLOW_K_ORDER_in_selectStatement1147);
match(input,K_BY,FOLLOW_K_BY_in_selectStatement1149);
pushFollow(FOLLOW_orderByClause_in_selectStatement1151);
orderByClause(orderings);
state._fsp--;
// Parser.g:280:47: ( ',' orderByClause[orderings] )*
loop7:
while (true) {
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==191) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// Parser.g:280:49: ',' orderByClause[orderings]
{
match(input,191,FOLLOW_191_in_selectStatement1156);
pushFollow(FOLLOW_orderByClause_in_selectStatement1158);
orderByClause(orderings);
state._fsp--;
}
break;
default :
break loop7;
}
}
}
break;
}
// Parser.g:281:7: ( K_PER K_PARTITION K_LIMIT rows= intValue )?
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0==K_PER) ) {
alt9=1;
}
switch (alt9) {
case 1 :
// Parser.g:281:9: K_PER K_PARTITION K_LIMIT rows= intValue
{
match(input,K_PER,FOLLOW_K_PER_in_selectStatement1175);
match(input,K_PARTITION,FOLLOW_K_PARTITION_in_selectStatement1177);
match(input,K_LIMIT,FOLLOW_K_LIMIT_in_selectStatement1179);
pushFollow(FOLLOW_intValue_in_selectStatement1183);
rows=intValue();
state._fsp--;
perPartitionLimit = rows;
}
break;
}
// Parser.g:282:7: ( K_LIMIT rows= intValue )?
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0==K_LIMIT) ) {
alt10=1;
}
switch (alt10) {
case 1 :
// Parser.g:282:9: K_LIMIT rows= intValue
{
match(input,K_LIMIT,FOLLOW_K_LIMIT_in_selectStatement1198);
pushFollow(FOLLOW_intValue_in_selectStatement1202);
rows=intValue();
state._fsp--;
limit = rows;
}
break;
}
// Parser.g:283:7: ( K_ALLOW K_FILTERING )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==K_ALLOW) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// Parser.g:283:9: K_ALLOW K_FILTERING
{
match(input,K_ALLOW,FOLLOW_K_ALLOW_in_selectStatement1217);
match(input,K_FILTERING,FOLLOW_K_FILTERING_in_selectStatement1219);
allowFiltering = true;
}
break;
}
SelectStatement.Parameters params = new SelectStatement.Parameters(orderings,
groups,
isDistinct,
allowFiltering,
isJson);
WhereClause where = wclause == null ? WhereClause.empty() : wclause.build();
expr = new SelectStatement.RawStatement(cf, params, sclause, where, limit, perPartitionLimit);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "selectStatement"
// $ANTLR start "selectClause"
// Parser.g:295:1: selectClause returns [List expr] : (t1= selector ( ',' tN= selector )* | '\\*' );
public final List selectClause() throws RecognitionException {
List expr = null;
RawSelector t1 =null;
RawSelector tN =null;
try {
// Parser.g:296:5: (t1= selector ( ',' tN= selector )* | '\\*' )
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0==BOOLEAN||LA13_0==DURATION||LA13_0==EMPTY_QUOTED_NAME||LA13_0==FLOAT||LA13_0==HEXNUMBER||(LA13_0 >= IDENT && LA13_0 <= INTEGER)||(LA13_0 >= K_AGGREGATE && LA13_0 <= K_ALL)||LA13_0==K_AS||LA13_0==K_ASCII||(LA13_0 >= K_BIGINT && LA13_0 <= K_BOOLEAN)||(LA13_0 >= K_CALLED && LA13_0 <= K_CLUSTERING)||(LA13_0 >= K_COMPACT && LA13_0 <= K_COUNTER)||(LA13_0 >= K_CUSTOM && LA13_0 <= K_DECIMAL)||(LA13_0 >= K_DISTINCT && LA13_0 <= K_DOUBLE)||LA13_0==K_DURATION||(LA13_0 >= K_EXISTS && LA13_0 <= K_FLOAT)||LA13_0==K_FROZEN||(LA13_0 >= K_FUNCTION && LA13_0 <= K_FUNCTIONS)||LA13_0==K_GROUP||(LA13_0 >= K_INET && LA13_0 <= K_INPUT)||LA13_0==K_INT||(LA13_0 >= K_JSON && LA13_0 <= K_KEYS)||(LA13_0 >= K_KEYSPACES && LA13_0 <= K_LIKE)||(LA13_0 >= K_LIST && LA13_0 <= K_MAP)||(LA13_0 >= K_NAN && LA13_0 <= K_NOLOGIN)||LA13_0==K_NOSUPERUSER||LA13_0==K_NULL||LA13_0==K_OPTIONS||(LA13_0 >= K_PARTITION && LA13_0 <= K_PERMISSIONS)||LA13_0==K_RETURNS||(LA13_0 >= K_ROLE && LA13_0 <= K_ROLES)||(LA13_0 >= K_SFUNC && LA13_0 <= K_TINYINT)||(LA13_0 >= K_TOKEN && LA13_0 <= K_TRIGGER)||(LA13_0 >= K_TTL && LA13_0 <= K_TYPE)||(LA13_0 >= K_USER && LA13_0 <= K_USERS)||(LA13_0 >= K_UUID && LA13_0 <= K_VARINT)||LA13_0==K_WRITETIME||(LA13_0 >= QMARK && LA13_0 <= QUOTED_NAME)||LA13_0==STRING_LITERAL||LA13_0==UUID||LA13_0==187||LA13_0==192||LA13_0==195||LA13_0==202||LA13_0==206) ) {
alt13=1;
}
else if ( (LA13_0==203) ) {
alt13=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 13, 0, input);
throw nvae;
}
switch (alt13) {
case 1 :
// Parser.g:296:7: t1= selector ( ',' tN= selector )*
{
pushFollow(FOLLOW_selector_in_selectClause1256);
t1=selector();
state._fsp--;
expr = new ArrayList(); expr.add(t1);
// Parser.g:296:76: ( ',' tN= selector )*
loop12:
while (true) {
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0==191) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// Parser.g:296:77: ',' tN= selector
{
match(input,191,FOLLOW_191_in_selectClause1261);
pushFollow(FOLLOW_selector_in_selectClause1265);
tN=selector();
state._fsp--;
expr.add(tN);
}
break;
default :
break loop12;
}
}
}
break;
case 2 :
// Parser.g:297:7: '\\*'
{
match(input,203,FOLLOW_203_in_selectClause1277);
expr = Collections.emptyList();
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "selectClause"
// $ANTLR start "selector"
// Parser.g:300:1: selector returns [RawSelector s] : us= unaliasedSelector ( K_AS c= noncol_ident )? ;
public final RawSelector selector() throws RecognitionException {
RawSelector s = null;
Selectable.Raw us =null;
ColumnIdentifier c =null;
ColumnIdentifier alias = null;
try {
// Parser.g:302:5: (us= unaliasedSelector ( K_AS c= noncol_ident )? )
// Parser.g:302:7: us= unaliasedSelector ( K_AS c= noncol_ident )?
{
pushFollow(FOLLOW_unaliasedSelector_in_selector1310);
us=unaliasedSelector();
state._fsp--;
// Parser.g:302:28: ( K_AS c= noncol_ident )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==K_AS) ) {
alt14=1;
}
switch (alt14) {
case 1 :
// Parser.g:302:29: K_AS c= noncol_ident
{
match(input,K_AS,FOLLOW_K_AS_in_selector1313);
pushFollow(FOLLOW_noncol_ident_in_selector1317);
c=noncol_ident();
state._fsp--;
alias = c;
}
break;
}
s = new RawSelector(us, alias);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return s;
}
// $ANTLR end "selector"
// $ANTLR start "unaliasedSelector"
// Parser.g:309:1: unaliasedSelector returns [Selectable.Raw s] : (c= cident |v= value | '(' ct= comparatorType ')' v= value | K_COUNT '(' '\\*' ')' | K_WRITETIME '(' c= cident ')' | K_TTL '(' c= cident ')' | K_CAST '(' sn= unaliasedSelector K_AS t= native_type ')' |f= functionName args= selectionFunctionArgs ) ( '.' fi= fident )* ;
public final Selectable.Raw unaliasedSelector() throws RecognitionException {
Selectable.Raw s = null;
ColumnDefinition.Raw c =null;
Term.Raw v =null;
CQL3Type.Raw ct =null;
Selectable.Raw sn =null;
CQL3Type t =null;
FunctionName f =null;
List args =null;
FieldIdentifier fi =null;
Selectable.Raw tmp = null;
try {
// Parser.g:311:5: ( (c= cident |v= value | '(' ct= comparatorType ')' v= value | K_COUNT '(' '\\*' ')' | K_WRITETIME '(' c= cident ')' | K_TTL '(' c= cident ')' | K_CAST '(' sn= unaliasedSelector K_AS t= native_type ')' |f= functionName args= selectionFunctionArgs ) ( '.' fi= fident )* )
// Parser.g:311:8: (c= cident |v= value | '(' ct= comparatorType ')' v= value | K_COUNT '(' '\\*' ')' | K_WRITETIME '(' c= cident ')' | K_TTL '(' c= cident ')' | K_CAST '(' sn= unaliasedSelector K_AS t= native_type ')' |f= functionName args= selectionFunctionArgs ) ( '.' fi= fident )*
{
// Parser.g:311:8: (c= cident |v= value | '(' ct= comparatorType ')' v= value | K_COUNT '(' '\\*' ')' | K_WRITETIME '(' c= cident ')' | K_TTL '(' c= cident ')' | K_CAST '(' sn= unaliasedSelector K_AS t= native_type ')' |f= functionName args= selectionFunctionArgs )
int alt15=8;
alt15 = dfa15.predict(input);
switch (alt15) {
case 1 :
// Parser.g:311:10: c= cident
{
pushFollow(FOLLOW_cident_in_unaliasedSelector1360);
c=cident();
state._fsp--;
tmp = c;
}
break;
case 2 :
// Parser.g:312:10: v= value
{
pushFollow(FOLLOW_value_in_unaliasedSelector1408);
v=value();
state._fsp--;
tmp = new Selectable.WithTerm.Raw(v);
}
break;
case 3 :
// Parser.g:313:10: '(' ct= comparatorType ')' v= value
{
match(input,187,FOLLOW_187_in_unaliasedSelector1455);
pushFollow(FOLLOW_comparatorType_in_unaliasedSelector1459);
ct=comparatorType();
state._fsp--;
match(input,188,FOLLOW_188_in_unaliasedSelector1461);
pushFollow(FOLLOW_value_in_unaliasedSelector1465);
v=value();
state._fsp--;
tmp = new Selectable.WithTerm.Raw(new TypeCast(ct, v));
}
break;
case 4 :
// Parser.g:314:10: K_COUNT '(' '\\*' ')'
{
match(input,K_COUNT,FOLLOW_K_COUNT_in_unaliasedSelector1486);
match(input,187,FOLLOW_187_in_unaliasedSelector1488);
match(input,203,FOLLOW_203_in_unaliasedSelector1490);
match(input,188,FOLLOW_188_in_unaliasedSelector1492);
tmp = Selectable.WithFunction.Raw.newCountRowsFunction();
}
break;
case 5 :
// Parser.g:315:10: K_WRITETIME '(' c= cident ')'
{
match(input,K_WRITETIME,FOLLOW_K_WRITETIME_in_unaliasedSelector1526);
match(input,187,FOLLOW_187_in_unaliasedSelector1528);
pushFollow(FOLLOW_cident_in_unaliasedSelector1532);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_unaliasedSelector1534);
tmp = new Selectable.WritetimeOrTTL.Raw(c, true);
}
break;
case 6 :
// Parser.g:316:10: K_TTL '(' c= cident ')'
{
match(input,K_TTL,FOLLOW_K_TTL_in_unaliasedSelector1560);
match(input,187,FOLLOW_187_in_unaliasedSelector1568);
pushFollow(FOLLOW_cident_in_unaliasedSelector1572);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_unaliasedSelector1574);
tmp = new Selectable.WritetimeOrTTL.Raw(c, false);
}
break;
case 7 :
// Parser.g:317:10: K_CAST '(' sn= unaliasedSelector K_AS t= native_type ')'
{
match(input,K_CAST,FOLLOW_K_CAST_in_unaliasedSelector1600);
match(input,187,FOLLOW_187_in_unaliasedSelector1607);
pushFollow(FOLLOW_unaliasedSelector_in_unaliasedSelector1611);
sn=unaliasedSelector();
state._fsp--;
match(input,K_AS,FOLLOW_K_AS_in_unaliasedSelector1613);
pushFollow(FOLLOW_native_type_in_unaliasedSelector1617);
t=native_type();
state._fsp--;
match(input,188,FOLLOW_188_in_unaliasedSelector1619);
tmp = new Selectable.WithCast.Raw(sn, t);
}
break;
case 8 :
// Parser.g:318:10: f= functionName args= selectionFunctionArgs
{
pushFollow(FOLLOW_functionName_in_unaliasedSelector1634);
f=functionName();
state._fsp--;
pushFollow(FOLLOW_selectionFunctionArgs_in_unaliasedSelector1638);
args=selectionFunctionArgs();
state._fsp--;
tmp = new Selectable.WithFunction.Raw(f, args);
}
break;
}
// Parser.g:319:10: ( '.' fi= fident )*
loop16:
while (true) {
int alt16=2;
int LA16_0 = input.LA(1);
if ( (LA16_0==194) ) {
alt16=1;
}
switch (alt16) {
case 1 :
// Parser.g:319:12: '.' fi= fident
{
match(input,194,FOLLOW_194_in_unaliasedSelector1653);
pushFollow(FOLLOW_fident_in_unaliasedSelector1657);
fi=fident();
state._fsp--;
tmp = new Selectable.WithFieldSelection.Raw(tmp, fi);
}
break;
default :
break loop16;
}
}
s = tmp;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return s;
}
// $ANTLR end "unaliasedSelector"
// $ANTLR start "selectionFunctionArgs"
// Parser.g:322:1: selectionFunctionArgs returns [List a] : ( '(' ')' | '(' s1= unaliasedSelector ( ',' sn= unaliasedSelector )* ')' );
public final List selectionFunctionArgs() throws RecognitionException {
List a = null;
Selectable.Raw s1 =null;
Selectable.Raw sn =null;
try {
// Parser.g:323:5: ( '(' ')' | '(' s1= unaliasedSelector ( ',' sn= unaliasedSelector )* ')' )
int alt18=2;
int LA18_0 = input.LA(1);
if ( (LA18_0==187) ) {
int LA18_1 = input.LA(2);
if ( (LA18_1==188) ) {
alt18=1;
}
else if ( (LA18_1==BOOLEAN||LA18_1==DURATION||LA18_1==EMPTY_QUOTED_NAME||LA18_1==FLOAT||LA18_1==HEXNUMBER||(LA18_1 >= IDENT && LA18_1 <= INTEGER)||(LA18_1 >= K_AGGREGATE && LA18_1 <= K_ALL)||LA18_1==K_AS||LA18_1==K_ASCII||(LA18_1 >= K_BIGINT && LA18_1 <= K_BOOLEAN)||(LA18_1 >= K_CALLED && LA18_1 <= K_CLUSTERING)||(LA18_1 >= K_COMPACT && LA18_1 <= K_COUNTER)||(LA18_1 >= K_CUSTOM && LA18_1 <= K_DECIMAL)||(LA18_1 >= K_DISTINCT && LA18_1 <= K_DOUBLE)||LA18_1==K_DURATION||(LA18_1 >= K_EXISTS && LA18_1 <= K_FLOAT)||LA18_1==K_FROZEN||(LA18_1 >= K_FUNCTION && LA18_1 <= K_FUNCTIONS)||LA18_1==K_GROUP||(LA18_1 >= K_INET && LA18_1 <= K_INPUT)||LA18_1==K_INT||(LA18_1 >= K_JSON && LA18_1 <= K_KEYS)||(LA18_1 >= K_KEYSPACES && LA18_1 <= K_LIKE)||(LA18_1 >= K_LIST && LA18_1 <= K_MAP)||(LA18_1 >= K_NAN && LA18_1 <= K_NOLOGIN)||LA18_1==K_NOSUPERUSER||LA18_1==K_NULL||LA18_1==K_OPTIONS||(LA18_1 >= K_PARTITION && LA18_1 <= K_PERMISSIONS)||LA18_1==K_RETURNS||(LA18_1 >= K_ROLE && LA18_1 <= K_ROLES)||(LA18_1 >= K_SFUNC && LA18_1 <= K_TINYINT)||(LA18_1 >= K_TOKEN && LA18_1 <= K_TRIGGER)||(LA18_1 >= K_TTL && LA18_1 <= K_TYPE)||(LA18_1 >= K_USER && LA18_1 <= K_USERS)||(LA18_1 >= K_UUID && LA18_1 <= K_VARINT)||LA18_1==K_WRITETIME||(LA18_1 >= QMARK && LA18_1 <= QUOTED_NAME)||LA18_1==STRING_LITERAL||LA18_1==UUID||LA18_1==187||LA18_1==192||LA18_1==195||LA18_1==202||LA18_1==206) ) {
alt18=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 18, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1 :
// Parser.g:323:7: '(' ')'
{
match(input,187,FOLLOW_187_in_selectionFunctionArgs1685);
match(input,188,FOLLOW_188_in_selectionFunctionArgs1687);
a = Collections.emptyList();
}
break;
case 2 :
// Parser.g:324:7: '(' s1= unaliasedSelector ( ',' sn= unaliasedSelector )* ')'
{
match(input,187,FOLLOW_187_in_selectionFunctionArgs1697);
pushFollow(FOLLOW_unaliasedSelector_in_selectionFunctionArgs1701);
s1=unaliasedSelector();
state._fsp--;
List args = new ArrayList(); args.add(s1);
// Parser.g:325:11: ( ',' sn= unaliasedSelector )*
loop17:
while (true) {
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==191) ) {
alt17=1;
}
switch (alt17) {
case 1 :
// Parser.g:325:13: ',' sn= unaliasedSelector
{
match(input,191,FOLLOW_191_in_selectionFunctionArgs1717);
pushFollow(FOLLOW_unaliasedSelector_in_selectionFunctionArgs1721);
sn=unaliasedSelector();
state._fsp--;
args.add(sn);
}
break;
default :
break loop17;
}
}
match(input,188,FOLLOW_188_in_selectionFunctionArgs1734);
a = args;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return a;
}
// $ANTLR end "selectionFunctionArgs"
// $ANTLR start "whereClause"
// Parser.g:329:1: whereClause returns [WhereClause.Builder clause] : relationOrExpression[$clause] ( K_AND relationOrExpression[$clause] )* ;
public final WhereClause.Builder whereClause() throws RecognitionException {
WhereClause.Builder clause = null;
clause = new WhereClause.Builder();
try {
// Parser.g:331:5: ( relationOrExpression[$clause] ( K_AND relationOrExpression[$clause] )* )
// Parser.g:331:7: relationOrExpression[$clause] ( K_AND relationOrExpression[$clause] )*
{
pushFollow(FOLLOW_relationOrExpression_in_whereClause1765);
relationOrExpression(clause);
state._fsp--;
// Parser.g:331:37: ( K_AND relationOrExpression[$clause] )*
loop19:
while (true) {
int alt19=2;
int LA19_0 = input.LA(1);
if ( (LA19_0==K_AND) ) {
alt19=1;
}
switch (alt19) {
case 1 :
// Parser.g:331:38: K_AND relationOrExpression[$clause]
{
match(input,K_AND,FOLLOW_K_AND_in_whereClause1769);
pushFollow(FOLLOW_relationOrExpression_in_whereClause1771);
relationOrExpression(clause);
state._fsp--;
}
break;
default :
break loop19;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return clause;
}
// $ANTLR end "whereClause"
// $ANTLR start "relationOrExpression"
// Parser.g:334:1: relationOrExpression[WhereClause.Builder clause] : ( relation[$clause] | customIndexExpression[$clause] );
public final void relationOrExpression(WhereClause.Builder clause) throws RecognitionException {
try {
// Parser.g:335:5: ( relation[$clause] | customIndexExpression[$clause] )
int alt20=2;
int LA20_0 = input.LA(1);
if ( (LA20_0==EMPTY_QUOTED_NAME||LA20_0==IDENT||(LA20_0 >= K_AGGREGATE && LA20_0 <= K_ALL)||LA20_0==K_AS||LA20_0==K_ASCII||(LA20_0 >= K_BIGINT && LA20_0 <= K_BOOLEAN)||(LA20_0 >= K_CALLED && LA20_0 <= K_CLUSTERING)||(LA20_0 >= K_COMPACT && LA20_0 <= K_COUNTER)||(LA20_0 >= K_CUSTOM && LA20_0 <= K_DECIMAL)||(LA20_0 >= K_DISTINCT && LA20_0 <= K_DOUBLE)||LA20_0==K_DURATION||(LA20_0 >= K_EXISTS && LA20_0 <= K_FLOAT)||LA20_0==K_FROZEN||(LA20_0 >= K_FUNCTION && LA20_0 <= K_FUNCTIONS)||LA20_0==K_GROUP||LA20_0==K_INET||(LA20_0 >= K_INITCOND && LA20_0 <= K_INPUT)||LA20_0==K_INT||(LA20_0 >= K_JSON && LA20_0 <= K_KEYS)||(LA20_0 >= K_KEYSPACES && LA20_0 <= K_LIKE)||(LA20_0 >= K_LIST && LA20_0 <= K_MAP)||LA20_0==K_NOLOGIN||LA20_0==K_NOSUPERUSER||LA20_0==K_OPTIONS||(LA20_0 >= K_PARTITION && LA20_0 <= K_PERMISSIONS)||LA20_0==K_RETURNS||(LA20_0 >= K_ROLE && LA20_0 <= K_ROLES)||(LA20_0 >= K_SFUNC && LA20_0 <= K_TINYINT)||(LA20_0 >= K_TOKEN && LA20_0 <= K_TRIGGER)||(LA20_0 >= K_TTL && LA20_0 <= K_TYPE)||(LA20_0 >= K_USER && LA20_0 <= K_USERS)||(LA20_0 >= K_UUID && LA20_0 <= K_VARINT)||LA20_0==K_WRITETIME||LA20_0==QUOTED_NAME||LA20_0==187) ) {
alt20=1;
}
else if ( (LA20_0==205) ) {
alt20=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 20, 0, input);
throw nvae;
}
switch (alt20) {
case 1 :
// Parser.g:335:7: relation[$clause]
{
pushFollow(FOLLOW_relation_in_relationOrExpression1793);
relation(clause);
state._fsp--;
}
break;
case 2 :
// Parser.g:336:7: customIndexExpression[$clause]
{
pushFollow(FOLLOW_customIndexExpression_in_relationOrExpression1802);
customIndexExpression(clause);
state._fsp--;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "relationOrExpression"
// $ANTLR start "customIndexExpression"
// Parser.g:339:1: customIndexExpression[WhereClause.Builder clause] : 'expr(' idxName[name] ',' t= term ')' ;
public final void customIndexExpression(WhereClause.Builder clause) throws RecognitionException {
Term.Raw t =null;
IndexName name = new IndexName();
try {
// Parser.g:341:5: ( 'expr(' idxName[name] ',' t= term ')' )
// Parser.g:341:7: 'expr(' idxName[name] ',' t= term ')'
{
match(input,205,FOLLOW_205_in_customIndexExpression1830);
pushFollow(FOLLOW_idxName_in_customIndexExpression1832);
idxName(name);
state._fsp--;
match(input,191,FOLLOW_191_in_customIndexExpression1835);
pushFollow(FOLLOW_term_in_customIndexExpression1839);
t=term();
state._fsp--;
match(input,188,FOLLOW_188_in_customIndexExpression1841);
clause.add(new CustomIndexExpression(name, t));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "customIndexExpression"
// $ANTLR start "orderByClause"
// Parser.g:344:1: orderByClause[Map orderings] : c= cident ( K_ASC | K_DESC )? ;
public final void orderByClause(Map orderings) throws RecognitionException {
ColumnDefinition.Raw c =null;
boolean reversed = false;
try {
// Parser.g:348:5: (c= cident ( K_ASC | K_DESC )? )
// Parser.g:348:7: c= cident ( K_ASC | K_DESC )?
{
pushFollow(FOLLOW_cident_in_orderByClause1871);
c=cident();
state._fsp--;
// Parser.g:348:16: ( K_ASC | K_DESC )?
int alt21=3;
int LA21_0 = input.LA(1);
if ( (LA21_0==K_ASC) ) {
alt21=1;
}
else if ( (LA21_0==K_DESC) ) {
alt21=2;
}
switch (alt21) {
case 1 :
// Parser.g:348:17: K_ASC
{
match(input,K_ASC,FOLLOW_K_ASC_in_orderByClause1874);
}
break;
case 2 :
// Parser.g:348:25: K_DESC
{
match(input,K_DESC,FOLLOW_K_DESC_in_orderByClause1878);
reversed = true;
}
break;
}
orderings.put(c, reversed);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "orderByClause"
// $ANTLR start "groupByClause"
// Parser.g:351:1: groupByClause[List groups] : c= cident ;
public final void groupByClause(List groups) throws RecognitionException {
ColumnDefinition.Raw c =null;
try {
// Parser.g:352:5: (c= cident )
// Parser.g:352:7: c= cident
{
pushFollow(FOLLOW_cident_in_groupByClause1904);
c=cident();
state._fsp--;
groups.add(c);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "groupByClause"
// $ANTLR start "insertStatement"
// Parser.g:361:1: insertStatement returns [ModificationStatement.Parsed expr] : K_INSERT K_INTO cf= columnFamilyName (st1= normalInsertStatement[cf] | K_JSON st2= jsonInsertStatement[cf] ) ;
public final ModificationStatement.Parsed insertStatement() throws RecognitionException {
ModificationStatement.Parsed expr = null;
CFName cf =null;
UpdateStatement.ParsedInsert st1 =null;
UpdateStatement.ParsedInsertJson st2 =null;
try {
// Parser.g:362:5: ( K_INSERT K_INTO cf= columnFamilyName (st1= normalInsertStatement[cf] | K_JSON st2= jsonInsertStatement[cf] ) )
// Parser.g:362:7: K_INSERT K_INTO cf= columnFamilyName (st1= normalInsertStatement[cf] | K_JSON st2= jsonInsertStatement[cf] )
{
match(input,K_INSERT,FOLLOW_K_INSERT_in_insertStatement1929);
match(input,K_INTO,FOLLOW_K_INTO_in_insertStatement1931);
pushFollow(FOLLOW_columnFamilyName_in_insertStatement1935);
cf=columnFamilyName();
state._fsp--;
// Parser.g:363:9: (st1= normalInsertStatement[cf] | K_JSON st2= jsonInsertStatement[cf] )
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0==187) ) {
alt22=1;
}
else if ( (LA22_0==K_JSON) ) {
alt22=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 22, 0, input);
throw nvae;
}
switch (alt22) {
case 1 :
// Parser.g:363:11: st1= normalInsertStatement[cf]
{
pushFollow(FOLLOW_normalInsertStatement_in_insertStatement1949);
st1=normalInsertStatement(cf);
state._fsp--;
expr = st1;
}
break;
case 2 :
// Parser.g:364:11: K_JSON st2= jsonInsertStatement[cf]
{
match(input,K_JSON,FOLLOW_K_JSON_in_insertStatement1964);
pushFollow(FOLLOW_jsonInsertStatement_in_insertStatement1968);
st2=jsonInsertStatement(cf);
state._fsp--;
expr = st2;
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "insertStatement"
// $ANTLR start "normalInsertStatement"
// Parser.g:367:1: normalInsertStatement[CFName cf] returns [UpdateStatement.ParsedInsert expr] : '(' c1= cident ( ',' cn= cident )* ')' K_VALUES '(' v1= term ( ',' vn= term )* ')' ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )? ;
public final UpdateStatement.ParsedInsert normalInsertStatement(CFName cf) throws RecognitionException {
UpdateStatement.ParsedInsert expr = null;
ColumnDefinition.Raw c1 =null;
ColumnDefinition.Raw cn =null;
Term.Raw v1 =null;
Term.Raw vn =null;
Attributes.Raw attrs = new Attributes.Raw();
List columnNames = new ArrayList<>();
List values = new ArrayList<>();
boolean ifNotExists = false;
try {
// Parser.g:374:5: ( '(' c1= cident ( ',' cn= cident )* ')' K_VALUES '(' v1= term ( ',' vn= term )* ')' ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )? )
// Parser.g:374:7: '(' c1= cident ( ',' cn= cident )* ')' K_VALUES '(' v1= term ( ',' vn= term )* ')' ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )?
{
match(input,187,FOLLOW_187_in_normalInsertStatement2004);
pushFollow(FOLLOW_cident_in_normalInsertStatement2008);
c1=cident();
state._fsp--;
columnNames.add(c1);
// Parser.g:374:47: ( ',' cn= cident )*
loop23:
while (true) {
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==191) ) {
alt23=1;
}
switch (alt23) {
case 1 :
// Parser.g:374:49: ',' cn= cident
{
match(input,191,FOLLOW_191_in_normalInsertStatement2015);
pushFollow(FOLLOW_cident_in_normalInsertStatement2019);
cn=cident();
state._fsp--;
columnNames.add(cn);
}
break;
default :
break loop23;
}
}
match(input,188,FOLLOW_188_in_normalInsertStatement2026);
match(input,K_VALUES,FOLLOW_K_VALUES_in_normalInsertStatement2034);
match(input,187,FOLLOW_187_in_normalInsertStatement2042);
pushFollow(FOLLOW_term_in_normalInsertStatement2046);
v1=term();
state._fsp--;
values.add(v1);
// Parser.g:376:39: ( ',' vn= term )*
loop24:
while (true) {
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==191) ) {
alt24=1;
}
switch (alt24) {
case 1 :
// Parser.g:376:41: ',' vn= term
{
match(input,191,FOLLOW_191_in_normalInsertStatement2052);
pushFollow(FOLLOW_term_in_normalInsertStatement2056);
vn=term();
state._fsp--;
values.add(vn);
}
break;
default :
break loop24;
}
}
match(input,188,FOLLOW_188_in_normalInsertStatement2063);
// Parser.g:377:7: ( K_IF K_NOT K_EXISTS )?
int alt25=2;
int LA25_0 = input.LA(1);
if ( (LA25_0==K_IF) ) {
alt25=1;
}
switch (alt25) {
case 1 :
// Parser.g:377:9: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_normalInsertStatement2073);
match(input,K_NOT,FOLLOW_K_NOT_in_normalInsertStatement2075);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_normalInsertStatement2077);
ifNotExists = true;
}
break;
}
// Parser.g:378:7: ( usingClause[attrs] )?
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==K_USING) ) {
alt26=1;
}
switch (alt26) {
case 1 :
// Parser.g:378:9: usingClause[attrs]
{
pushFollow(FOLLOW_usingClause_in_normalInsertStatement2092);
usingClause(attrs);
state._fsp--;
}
break;
}
expr = new UpdateStatement.ParsedInsert(cf, attrs, columnNames, values, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "normalInsertStatement"
// $ANTLR start "jsonInsertStatement"
// Parser.g:384:1: jsonInsertStatement[CFName cf] returns [UpdateStatement.ParsedInsertJson expr] : val= jsonValue ( K_DEFAULT ( K_NULL | ( K_UNSET ) ) )? ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )? ;
public final UpdateStatement.ParsedInsertJson jsonInsertStatement(CFName cf) throws RecognitionException {
UpdateStatement.ParsedInsertJson expr = null;
Json.Raw val =null;
Attributes.Raw attrs = new Attributes.Raw();
boolean ifNotExists = false;
boolean defaultUnset = false;
try {
// Parser.g:390:5: (val= jsonValue ( K_DEFAULT ( K_NULL | ( K_UNSET ) ) )? ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )? )
// Parser.g:390:7: val= jsonValue ( K_DEFAULT ( K_NULL | ( K_UNSET ) ) )? ( K_IF K_NOT K_EXISTS )? ( usingClause[attrs] )?
{
pushFollow(FOLLOW_jsonValue_in_jsonInsertStatement2138);
val=jsonValue();
state._fsp--;
// Parser.g:391:7: ( K_DEFAULT ( K_NULL | ( K_UNSET ) ) )?
int alt28=2;
int LA28_0 = input.LA(1);
if ( (LA28_0==K_DEFAULT) ) {
alt28=1;
}
switch (alt28) {
case 1 :
// Parser.g:391:9: K_DEFAULT ( K_NULL | ( K_UNSET ) )
{
match(input,K_DEFAULT,FOLLOW_K_DEFAULT_in_jsonInsertStatement2148);
// Parser.g:391:19: ( K_NULL | ( K_UNSET ) )
int alt27=2;
int LA27_0 = input.LA(1);
if ( (LA27_0==K_NULL) ) {
alt27=1;
}
else if ( (LA27_0==K_UNSET) ) {
alt27=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 27, 0, input);
throw nvae;
}
switch (alt27) {
case 1 :
// Parser.g:391:21: K_NULL
{
match(input,K_NULL,FOLLOW_K_NULL_in_jsonInsertStatement2152);
}
break;
case 2 :
// Parser.g:391:30: ( K_UNSET )
{
// Parser.g:391:30: ( K_UNSET )
// Parser.g:391:32: K_UNSET
{
defaultUnset = true;
match(input,K_UNSET,FOLLOW_K_UNSET_in_jsonInsertStatement2160);
}
}
break;
}
}
break;
}
// Parser.g:392:7: ( K_IF K_NOT K_EXISTS )?
int alt29=2;
int LA29_0 = input.LA(1);
if ( (LA29_0==K_IF) ) {
alt29=1;
}
switch (alt29) {
case 1 :
// Parser.g:392:9: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_jsonInsertStatement2176);
match(input,K_NOT,FOLLOW_K_NOT_in_jsonInsertStatement2178);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_jsonInsertStatement2180);
ifNotExists = true;
}
break;
}
// Parser.g:393:7: ( usingClause[attrs] )?
int alt30=2;
int LA30_0 = input.LA(1);
if ( (LA30_0==K_USING) ) {
alt30=1;
}
switch (alt30) {
case 1 :
// Parser.g:393:9: usingClause[attrs]
{
pushFollow(FOLLOW_usingClause_in_jsonInsertStatement2195);
usingClause(attrs);
state._fsp--;
}
break;
}
expr = new UpdateStatement.ParsedInsertJson(cf, attrs, val, defaultUnset, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "jsonInsertStatement"
// $ANTLR start "jsonValue"
// Parser.g:399:1: jsonValue returns [Json.Raw value] : (s= STRING_LITERAL | ':' id= noncol_ident | QMARK );
public final Json.Raw jsonValue() throws RecognitionException {
Json.Raw value = null;
Token s=null;
ColumnIdentifier id =null;
try {
// Parser.g:400:5: (s= STRING_LITERAL | ':' id= noncol_ident | QMARK )
int alt31=3;
switch ( input.LA(1) ) {
case STRING_LITERAL:
{
alt31=1;
}
break;
case 195:
{
alt31=2;
}
break;
case QMARK:
{
alt31=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 31, 0, input);
throw nvae;
}
switch (alt31) {
case 1 :
// Parser.g:400:7: s= STRING_LITERAL
{
s=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_jsonValue2230);
value = new Json.Literal((s!=null?s.getText():null));
}
break;
case 2 :
// Parser.g:401:7: ':' id= noncol_ident
{
match(input,195,FOLLOW_195_in_jsonValue2240);
pushFollow(FOLLOW_noncol_ident_in_jsonValue2244);
id=noncol_ident();
state._fsp--;
value = newJsonBindVariables(id);
}
break;
case 3 :
// Parser.g:402:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_jsonValue2258);
value = newJsonBindVariables(null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return value;
}
// $ANTLR end "jsonValue"
// $ANTLR start "usingClause"
// Parser.g:405:1: usingClause[Attributes.Raw attrs] : K_USING usingClauseObjective[attrs] ( K_AND usingClauseObjective[attrs] )* ;
public final void usingClause(Attributes.Raw attrs) throws RecognitionException {
try {
// Parser.g:406:5: ( K_USING usingClauseObjective[attrs] ( K_AND usingClauseObjective[attrs] )* )
// Parser.g:406:7: K_USING usingClauseObjective[attrs] ( K_AND usingClauseObjective[attrs] )*
{
match(input,K_USING,FOLLOW_K_USING_in_usingClause2289);
pushFollow(FOLLOW_usingClauseObjective_in_usingClause2291);
usingClauseObjective(attrs);
state._fsp--;
// Parser.g:406:43: ( K_AND usingClauseObjective[attrs] )*
loop32:
while (true) {
int alt32=2;
int LA32_0 = input.LA(1);
if ( (LA32_0==K_AND) ) {
alt32=1;
}
switch (alt32) {
case 1 :
// Parser.g:406:45: K_AND usingClauseObjective[attrs]
{
match(input,K_AND,FOLLOW_K_AND_in_usingClause2296);
pushFollow(FOLLOW_usingClauseObjective_in_usingClause2298);
usingClauseObjective(attrs);
state._fsp--;
}
break;
default :
break loop32;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "usingClause"
// $ANTLR start "usingClauseObjective"
// Parser.g:409:1: usingClauseObjective[Attributes.Raw attrs] : ( K_TIMESTAMP ts= intValue | K_TTL t= intValue );
public final void usingClauseObjective(Attributes.Raw attrs) throws RecognitionException {
Term.Raw ts =null;
Term.Raw t =null;
try {
// Parser.g:410:5: ( K_TIMESTAMP ts= intValue | K_TTL t= intValue )
int alt33=2;
int LA33_0 = input.LA(1);
if ( (LA33_0==K_TIMESTAMP) ) {
alt33=1;
}
else if ( (LA33_0==K_TTL) ) {
alt33=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 33, 0, input);
throw nvae;
}
switch (alt33) {
case 1 :
// Parser.g:410:7: K_TIMESTAMP ts= intValue
{
match(input,K_TIMESTAMP,FOLLOW_K_TIMESTAMP_in_usingClauseObjective2320);
pushFollow(FOLLOW_intValue_in_usingClauseObjective2324);
ts=intValue();
state._fsp--;
attrs.timestamp = ts;
}
break;
case 2 :
// Parser.g:411:7: K_TTL t= intValue
{
match(input,K_TTL,FOLLOW_K_TTL_in_usingClauseObjective2334);
pushFollow(FOLLOW_intValue_in_usingClauseObjective2338);
t=intValue();
state._fsp--;
attrs.timeToLive = t;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "usingClauseObjective"
// $ANTLR start "updateStatement"
// Parser.g:421:1: updateStatement returns [UpdateStatement.ParsedUpdate expr] : K_UPDATE cf= columnFamilyName ( usingClause[attrs] )? K_SET columnOperation[operations] ( ',' columnOperation[operations] )* K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )? ;
public final UpdateStatement.ParsedUpdate updateStatement() throws RecognitionException {
UpdateStatement.ParsedUpdate expr = null;
CFName cf =null;
WhereClause.Builder wclause =null;
List> conditions =null;
Attributes.Raw attrs = new Attributes.Raw();
List> operations = new ArrayList<>();
boolean ifExists = false;
try {
// Parser.g:427:5: ( K_UPDATE cf= columnFamilyName ( usingClause[attrs] )? K_SET columnOperation[operations] ( ',' columnOperation[operations] )* K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )? )
// Parser.g:427:7: K_UPDATE cf= columnFamilyName ( usingClause[attrs] )? K_SET columnOperation[operations] ( ',' columnOperation[operations] )* K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )?
{
match(input,K_UPDATE,FOLLOW_K_UPDATE_in_updateStatement2372);
pushFollow(FOLLOW_columnFamilyName_in_updateStatement2376);
cf=columnFamilyName();
state._fsp--;
// Parser.g:428:7: ( usingClause[attrs] )?
int alt34=2;
int LA34_0 = input.LA(1);
if ( (LA34_0==K_USING) ) {
alt34=1;
}
switch (alt34) {
case 1 :
// Parser.g:428:9: usingClause[attrs]
{
pushFollow(FOLLOW_usingClause_in_updateStatement2386);
usingClause(attrs);
state._fsp--;
}
break;
}
match(input,K_SET,FOLLOW_K_SET_in_updateStatement2398);
pushFollow(FOLLOW_columnOperation_in_updateStatement2400);
columnOperation(operations);
state._fsp--;
// Parser.g:429:41: ( ',' columnOperation[operations] )*
loop35:
while (true) {
int alt35=2;
int LA35_0 = input.LA(1);
if ( (LA35_0==191) ) {
alt35=1;
}
switch (alt35) {
case 1 :
// Parser.g:429:42: ',' columnOperation[operations]
{
match(input,191,FOLLOW_191_in_updateStatement2404);
pushFollow(FOLLOW_columnOperation_in_updateStatement2406);
columnOperation(operations);
state._fsp--;
}
break;
default :
break loop35;
}
}
match(input,K_WHERE,FOLLOW_K_WHERE_in_updateStatement2417);
pushFollow(FOLLOW_whereClause_in_updateStatement2421);
wclause=whereClause();
state._fsp--;
// Parser.g:431:7: ( K_IF ( K_EXISTS |conditions= updateConditions ) )?
int alt37=2;
int LA37_0 = input.LA(1);
if ( (LA37_0==K_IF) ) {
alt37=1;
}
switch (alt37) {
case 1 :
// Parser.g:431:9: K_IF ( K_EXISTS |conditions= updateConditions )
{
match(input,K_IF,FOLLOW_K_IF_in_updateStatement2431);
// Parser.g:431:14: ( K_EXISTS |conditions= updateConditions )
int alt36=2;
int LA36_0 = input.LA(1);
if ( (LA36_0==K_EXISTS) ) {
int LA36_1 = input.LA(2);
if ( (LA36_1==EOF||LA36_1==K_APPLY||LA36_1==K_DELETE||LA36_1==K_INSERT||LA36_1==K_UPDATE||LA36_1==196) ) {
alt36=1;
}
else if ( (LA36_1==K_IN||LA36_1==186||LA36_1==194||(LA36_1 >= 197 && LA36_1 <= 202)) ) {
alt36=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 36, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA36_0==EMPTY_QUOTED_NAME||LA36_0==IDENT||(LA36_0 >= K_AGGREGATE && LA36_0 <= K_ALL)||LA36_0==K_AS||LA36_0==K_ASCII||(LA36_0 >= K_BIGINT && LA36_0 <= K_BOOLEAN)||(LA36_0 >= K_CALLED && LA36_0 <= K_CLUSTERING)||(LA36_0 >= K_COMPACT && LA36_0 <= K_COUNTER)||(LA36_0 >= K_CUSTOM && LA36_0 <= K_DECIMAL)||(LA36_0 >= K_DISTINCT && LA36_0 <= K_DOUBLE)||LA36_0==K_DURATION||(LA36_0 >= K_FILTERING && LA36_0 <= K_FLOAT)||LA36_0==K_FROZEN||(LA36_0 >= K_FUNCTION && LA36_0 <= K_FUNCTIONS)||LA36_0==K_GROUP||LA36_0==K_INET||(LA36_0 >= K_INITCOND && LA36_0 <= K_INPUT)||LA36_0==K_INT||(LA36_0 >= K_JSON && LA36_0 <= K_KEYS)||(LA36_0 >= K_KEYSPACES && LA36_0 <= K_LIKE)||(LA36_0 >= K_LIST && LA36_0 <= K_MAP)||LA36_0==K_NOLOGIN||LA36_0==K_NOSUPERUSER||LA36_0==K_OPTIONS||(LA36_0 >= K_PARTITION && LA36_0 <= K_PERMISSIONS)||LA36_0==K_RETURNS||(LA36_0 >= K_ROLE && LA36_0 <= K_ROLES)||(LA36_0 >= K_SFUNC && LA36_0 <= K_TINYINT)||LA36_0==K_TRIGGER||(LA36_0 >= K_TTL && LA36_0 <= K_TYPE)||(LA36_0 >= K_USER && LA36_0 <= K_USERS)||(LA36_0 >= K_UUID && LA36_0 <= K_VARINT)||LA36_0==K_WRITETIME||LA36_0==QUOTED_NAME) ) {
alt36=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 36, 0, input);
throw nvae;
}
switch (alt36) {
case 1 :
// Parser.g:431:16: K_EXISTS
{
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_updateStatement2435);
ifExists = true;
}
break;
case 2 :
// Parser.g:431:48: conditions= updateConditions
{
pushFollow(FOLLOW_updateConditions_in_updateStatement2443);
conditions=updateConditions();
state._fsp--;
}
break;
}
}
break;
}
expr = new UpdateStatement.ParsedUpdate(cf,
attrs,
operations,
wclause.build(),
conditions == null ? Collections.>emptyList() : conditions,
ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "updateStatement"
// $ANTLR start "updateConditions"
// Parser.g:442:1: updateConditions returns [List> conditions] : columnCondition[conditions] ( K_AND columnCondition[conditions] )* ;
public final List> updateConditions() throws RecognitionException {
List> conditions = null;
conditions = new ArrayList>();
try {
// Parser.g:444:5: ( columnCondition[conditions] ( K_AND columnCondition[conditions] )* )
// Parser.g:444:7: columnCondition[conditions] ( K_AND columnCondition[conditions] )*
{
pushFollow(FOLLOW_columnCondition_in_updateConditions2485);
columnCondition(conditions);
state._fsp--;
// Parser.g:444:35: ( K_AND columnCondition[conditions] )*
loop38:
while (true) {
int alt38=2;
int LA38_0 = input.LA(1);
if ( (LA38_0==K_AND) ) {
alt38=1;
}
switch (alt38) {
case 1 :
// Parser.g:444:37: K_AND columnCondition[conditions]
{
match(input,K_AND,FOLLOW_K_AND_in_updateConditions2490);
pushFollow(FOLLOW_columnCondition_in_updateConditions2492);
columnCondition(conditions);
state._fsp--;
}
break;
default :
break loop38;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return conditions;
}
// $ANTLR end "updateConditions"
// $ANTLR start "deleteStatement"
// Parser.g:455:1: deleteStatement returns [DeleteStatement.Parsed expr] : K_DELETE (dels= deleteSelection )? K_FROM cf= columnFamilyName ( usingClauseDelete[attrs] )? K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )? ;
public final DeleteStatement.Parsed deleteStatement() throws RecognitionException {
DeleteStatement.Parsed expr = null;
List dels =null;
CFName cf =null;
WhereClause.Builder wclause =null;
List> conditions =null;
Attributes.Raw attrs = new Attributes.Raw();
List columnDeletions = Collections.emptyList();
boolean ifExists = false;
try {
// Parser.g:461:5: ( K_DELETE (dels= deleteSelection )? K_FROM cf= columnFamilyName ( usingClauseDelete[attrs] )? K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )? )
// Parser.g:461:7: K_DELETE (dels= deleteSelection )? K_FROM cf= columnFamilyName ( usingClauseDelete[attrs] )? K_WHERE wclause= whereClause ( K_IF ( K_EXISTS |conditions= updateConditions ) )?
{
match(input,K_DELETE,FOLLOW_K_DELETE_in_deleteStatement2529);
// Parser.g:461:16: (dels= deleteSelection )?
int alt39=2;
int LA39_0 = input.LA(1);
if ( (LA39_0==EMPTY_QUOTED_NAME||LA39_0==IDENT||(LA39_0 >= K_AGGREGATE && LA39_0 <= K_ALL)||LA39_0==K_AS||LA39_0==K_ASCII||(LA39_0 >= K_BIGINT && LA39_0 <= K_BOOLEAN)||(LA39_0 >= K_CALLED && LA39_0 <= K_CLUSTERING)||(LA39_0 >= K_COMPACT && LA39_0 <= K_COUNTER)||(LA39_0 >= K_CUSTOM && LA39_0 <= K_DECIMAL)||(LA39_0 >= K_DISTINCT && LA39_0 <= K_DOUBLE)||LA39_0==K_DURATION||(LA39_0 >= K_EXISTS && LA39_0 <= K_FLOAT)||LA39_0==K_FROZEN||(LA39_0 >= K_FUNCTION && LA39_0 <= K_FUNCTIONS)||LA39_0==K_GROUP||LA39_0==K_INET||(LA39_0 >= K_INITCOND && LA39_0 <= K_INPUT)||LA39_0==K_INT||(LA39_0 >= K_JSON && LA39_0 <= K_KEYS)||(LA39_0 >= K_KEYSPACES && LA39_0 <= K_LIKE)||(LA39_0 >= K_LIST && LA39_0 <= K_MAP)||LA39_0==K_NOLOGIN||LA39_0==K_NOSUPERUSER||LA39_0==K_OPTIONS||(LA39_0 >= K_PARTITION && LA39_0 <= K_PERMISSIONS)||LA39_0==K_RETURNS||(LA39_0 >= K_ROLE && LA39_0 <= K_ROLES)||(LA39_0 >= K_SFUNC && LA39_0 <= K_TINYINT)||LA39_0==K_TRIGGER||(LA39_0 >= K_TTL && LA39_0 <= K_TYPE)||(LA39_0 >= K_USER && LA39_0 <= K_USERS)||(LA39_0 >= K_UUID && LA39_0 <= K_VARINT)||LA39_0==K_WRITETIME||LA39_0==QUOTED_NAME) ) {
alt39=1;
}
switch (alt39) {
case 1 :
// Parser.g:461:18: dels= deleteSelection
{
pushFollow(FOLLOW_deleteSelection_in_deleteStatement2535);
dels=deleteSelection();
state._fsp--;
columnDeletions = dels;
}
break;
}
match(input,K_FROM,FOLLOW_K_FROM_in_deleteStatement2548);
pushFollow(FOLLOW_columnFamilyName_in_deleteStatement2552);
cf=columnFamilyName();
state._fsp--;
// Parser.g:463:7: ( usingClauseDelete[attrs] )?
int alt40=2;
int LA40_0 = input.LA(1);
if ( (LA40_0==K_USING) ) {
alt40=1;
}
switch (alt40) {
case 1 :
// Parser.g:463:9: usingClauseDelete[attrs]
{
pushFollow(FOLLOW_usingClauseDelete_in_deleteStatement2562);
usingClauseDelete(attrs);
state._fsp--;
}
break;
}
match(input,K_WHERE,FOLLOW_K_WHERE_in_deleteStatement2574);
pushFollow(FOLLOW_whereClause_in_deleteStatement2578);
wclause=whereClause();
state._fsp--;
// Parser.g:465:7: ( K_IF ( K_EXISTS |conditions= updateConditions ) )?
int alt42=2;
int LA42_0 = input.LA(1);
if ( (LA42_0==K_IF) ) {
alt42=1;
}
switch (alt42) {
case 1 :
// Parser.g:465:9: K_IF ( K_EXISTS |conditions= updateConditions )
{
match(input,K_IF,FOLLOW_K_IF_in_deleteStatement2588);
// Parser.g:465:14: ( K_EXISTS |conditions= updateConditions )
int alt41=2;
int LA41_0 = input.LA(1);
if ( (LA41_0==K_EXISTS) ) {
int LA41_1 = input.LA(2);
if ( (LA41_1==EOF||LA41_1==K_APPLY||LA41_1==K_DELETE||LA41_1==K_INSERT||LA41_1==K_UPDATE||LA41_1==196) ) {
alt41=1;
}
else if ( (LA41_1==K_IN||LA41_1==186||LA41_1==194||(LA41_1 >= 197 && LA41_1 <= 202)) ) {
alt41=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 41, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA41_0==EMPTY_QUOTED_NAME||LA41_0==IDENT||(LA41_0 >= K_AGGREGATE && LA41_0 <= K_ALL)||LA41_0==K_AS||LA41_0==K_ASCII||(LA41_0 >= K_BIGINT && LA41_0 <= K_BOOLEAN)||(LA41_0 >= K_CALLED && LA41_0 <= K_CLUSTERING)||(LA41_0 >= K_COMPACT && LA41_0 <= K_COUNTER)||(LA41_0 >= K_CUSTOM && LA41_0 <= K_DECIMAL)||(LA41_0 >= K_DISTINCT && LA41_0 <= K_DOUBLE)||LA41_0==K_DURATION||(LA41_0 >= K_FILTERING && LA41_0 <= K_FLOAT)||LA41_0==K_FROZEN||(LA41_0 >= K_FUNCTION && LA41_0 <= K_FUNCTIONS)||LA41_0==K_GROUP||LA41_0==K_INET||(LA41_0 >= K_INITCOND && LA41_0 <= K_INPUT)||LA41_0==K_INT||(LA41_0 >= K_JSON && LA41_0 <= K_KEYS)||(LA41_0 >= K_KEYSPACES && LA41_0 <= K_LIKE)||(LA41_0 >= K_LIST && LA41_0 <= K_MAP)||LA41_0==K_NOLOGIN||LA41_0==K_NOSUPERUSER||LA41_0==K_OPTIONS||(LA41_0 >= K_PARTITION && LA41_0 <= K_PERMISSIONS)||LA41_0==K_RETURNS||(LA41_0 >= K_ROLE && LA41_0 <= K_ROLES)||(LA41_0 >= K_SFUNC && LA41_0 <= K_TINYINT)||LA41_0==K_TRIGGER||(LA41_0 >= K_TTL && LA41_0 <= K_TYPE)||(LA41_0 >= K_USER && LA41_0 <= K_USERS)||(LA41_0 >= K_UUID && LA41_0 <= K_VARINT)||LA41_0==K_WRITETIME||LA41_0==QUOTED_NAME) ) {
alt41=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 41, 0, input);
throw nvae;
}
switch (alt41) {
case 1 :
// Parser.g:465:16: K_EXISTS
{
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_deleteStatement2592);
ifExists = true;
}
break;
case 2 :
// Parser.g:465:48: conditions= updateConditions
{
pushFollow(FOLLOW_updateConditions_in_deleteStatement2600);
conditions=updateConditions();
state._fsp--;
}
break;
}
}
break;
}
expr = new DeleteStatement.Parsed(cf,
attrs,
columnDeletions,
wclause.build(),
conditions == null ? Collections.>emptyList() : conditions,
ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "deleteStatement"
// $ANTLR start "deleteSelection"
// Parser.g:476:1: deleteSelection returns [List operations] :t1= deleteOp ( ',' tN= deleteOp )* ;
public final List deleteSelection() throws RecognitionException {
List operations = null;
Operation.RawDeletion t1 =null;
Operation.RawDeletion tN =null;
try {
// Parser.g:477:5: (t1= deleteOp ( ',' tN= deleteOp )* )
// Parser.g:477:7: t1= deleteOp ( ',' tN= deleteOp )*
{
operations = new ArrayList();
pushFollow(FOLLOW_deleteOp_in_deleteSelection2647);
t1=deleteOp();
state._fsp--;
operations.add(t1);
// Parser.g:479:11: ( ',' tN= deleteOp )*
loop43:
while (true) {
int alt43=2;
int LA43_0 = input.LA(1);
if ( (LA43_0==191) ) {
alt43=1;
}
switch (alt43) {
case 1 :
// Parser.g:479:12: ',' tN= deleteOp
{
match(input,191,FOLLOW_191_in_deleteSelection2662);
pushFollow(FOLLOW_deleteOp_in_deleteSelection2666);
tN=deleteOp();
state._fsp--;
operations.add(tN);
}
break;
default :
break loop43;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return operations;
}
// $ANTLR end "deleteSelection"
// $ANTLR start "deleteOp"
// Parser.g:482:1: deleteOp returns [Operation.RawDeletion op] : (c= cident |c= cident '[' t= term ']' |c= cident '.' field= fident );
public final Operation.RawDeletion deleteOp() throws RecognitionException {
Operation.RawDeletion op = null;
ColumnDefinition.Raw c =null;
Term.Raw t =null;
FieldIdentifier field =null;
try {
// Parser.g:483:5: (c= cident |c= cident '[' t= term ']' |c= cident '.' field= fident )
int alt44=3;
alt44 = dfa44.predict(input);
switch (alt44) {
case 1 :
// Parser.g:483:7: c= cident
{
pushFollow(FOLLOW_cident_in_deleteOp2693);
c=cident();
state._fsp--;
op = new Operation.ColumnDeletion(c);
}
break;
case 2 :
// Parser.g:484:7: c= cident '[' t= term ']'
{
pushFollow(FOLLOW_cident_in_deleteOp2720);
c=cident();
state._fsp--;
match(input,202,FOLLOW_202_in_deleteOp2722);
pushFollow(FOLLOW_term_in_deleteOp2726);
t=term();
state._fsp--;
match(input,204,FOLLOW_204_in_deleteOp2728);
op = new Operation.ElementDeletion(c, t);
}
break;
case 3 :
// Parser.g:485:7: c= cident '.' field= fident
{
pushFollow(FOLLOW_cident_in_deleteOp2740);
c=cident();
state._fsp--;
match(input,194,FOLLOW_194_in_deleteOp2742);
pushFollow(FOLLOW_fident_in_deleteOp2746);
field=fident();
state._fsp--;
op = new Operation.FieldDeletion(c, field);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return op;
}
// $ANTLR end "deleteOp"
// $ANTLR start "usingClauseDelete"
// Parser.g:488:1: usingClauseDelete[Attributes.Raw attrs] : K_USING K_TIMESTAMP ts= intValue ;
public final void usingClauseDelete(Attributes.Raw attrs) throws RecognitionException {
Term.Raw ts =null;
try {
// Parser.g:489:5: ( K_USING K_TIMESTAMP ts= intValue )
// Parser.g:489:7: K_USING K_TIMESTAMP ts= intValue
{
match(input,K_USING,FOLLOW_K_USING_in_usingClauseDelete2766);
match(input,K_TIMESTAMP,FOLLOW_K_TIMESTAMP_in_usingClauseDelete2768);
pushFollow(FOLLOW_intValue_in_usingClauseDelete2772);
ts=intValue();
state._fsp--;
attrs.timestamp = ts;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "usingClauseDelete"
// $ANTLR start "batchStatement"
// Parser.g:516:1: batchStatement returns [BatchStatement.Parsed expr] : K_BEGIN ( K_UNLOGGED | K_COUNTER )? K_BATCH ( usingClause[attrs] )? (s= batchStatementObjective ( ';' )? )* K_APPLY K_BATCH ;
public final BatchStatement.Parsed batchStatement() throws RecognitionException {
BatchStatement.Parsed expr = null;
ModificationStatement.Parsed s =null;
BatchStatement.Type type = BatchStatement.Type.LOGGED;
List statements = new ArrayList();
Attributes.Raw attrs = new Attributes.Raw();
try {
// Parser.g:522:5: ( K_BEGIN ( K_UNLOGGED | K_COUNTER )? K_BATCH ( usingClause[attrs] )? (s= batchStatementObjective ( ';' )? )* K_APPLY K_BATCH )
// Parser.g:522:7: K_BEGIN ( K_UNLOGGED | K_COUNTER )? K_BATCH ( usingClause[attrs] )? (s= batchStatementObjective ( ';' )? )* K_APPLY K_BATCH
{
match(input,K_BEGIN,FOLLOW_K_BEGIN_in_batchStatement2806);
// Parser.g:523:7: ( K_UNLOGGED | K_COUNTER )?
int alt45=3;
int LA45_0 = input.LA(1);
if ( (LA45_0==K_UNLOGGED) ) {
alt45=1;
}
else if ( (LA45_0==K_COUNTER) ) {
alt45=2;
}
switch (alt45) {
case 1 :
// Parser.g:523:9: K_UNLOGGED
{
match(input,K_UNLOGGED,FOLLOW_K_UNLOGGED_in_batchStatement2816);
type = BatchStatement.Type.UNLOGGED;
}
break;
case 2 :
// Parser.g:523:63: K_COUNTER
{
match(input,K_COUNTER,FOLLOW_K_COUNTER_in_batchStatement2822);
type = BatchStatement.Type.COUNTER;
}
break;
}
match(input,K_BATCH,FOLLOW_K_BATCH_in_batchStatement2835);
// Parser.g:524:15: ( usingClause[attrs] )?
int alt46=2;
int LA46_0 = input.LA(1);
if ( (LA46_0==K_USING) ) {
alt46=1;
}
switch (alt46) {
case 1 :
// Parser.g:524:17: usingClause[attrs]
{
pushFollow(FOLLOW_usingClause_in_batchStatement2839);
usingClause(attrs);
state._fsp--;
}
break;
}
// Parser.g:525:11: (s= batchStatementObjective ( ';' )? )*
loop48:
while (true) {
int alt48=2;
int LA48_0 = input.LA(1);
if ( (LA48_0==K_DELETE||LA48_0==K_INSERT||LA48_0==K_UPDATE) ) {
alt48=1;
}
switch (alt48) {
case 1 :
// Parser.g:525:13: s= batchStatementObjective ( ';' )?
{
pushFollow(FOLLOW_batchStatementObjective_in_batchStatement2859);
s=batchStatementObjective();
state._fsp--;
// Parser.g:525:39: ( ';' )?
int alt47=2;
int LA47_0 = input.LA(1);
if ( (LA47_0==196) ) {
alt47=1;
}
switch (alt47) {
case 1 :
// Parser.g:525:39: ';'
{
match(input,196,FOLLOW_196_in_batchStatement2861);
}
break;
}
statements.add(s);
}
break;
default :
break loop48;
}
}
match(input,K_APPLY,FOLLOW_K_APPLY_in_batchStatement2875);
match(input,K_BATCH,FOLLOW_K_BATCH_in_batchStatement2877);
expr = new BatchStatement.Parsed(type, attrs, statements);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "batchStatement"
// $ANTLR start "batchStatementObjective"
// Parser.g:532:1: batchStatementObjective returns [ModificationStatement.Parsed statement] : (i= insertStatement |u= updateStatement |d= deleteStatement );
public final ModificationStatement.Parsed batchStatementObjective() throws RecognitionException {
ModificationStatement.Parsed statement = null;
ModificationStatement.Parsed i =null;
UpdateStatement.ParsedUpdate u =null;
DeleteStatement.Parsed d =null;
try {
// Parser.g:533:5: (i= insertStatement |u= updateStatement |d= deleteStatement )
int alt49=3;
switch ( input.LA(1) ) {
case K_INSERT:
{
alt49=1;
}
break;
case K_UPDATE:
{
alt49=2;
}
break;
case K_DELETE:
{
alt49=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 49, 0, input);
throw nvae;
}
switch (alt49) {
case 1 :
// Parser.g:533:7: i= insertStatement
{
pushFollow(FOLLOW_insertStatement_in_batchStatementObjective2908);
i=insertStatement();
state._fsp--;
statement = i;
}
break;
case 2 :
// Parser.g:534:7: u= updateStatement
{
pushFollow(FOLLOW_updateStatement_in_batchStatementObjective2921);
u=updateStatement();
state._fsp--;
statement = u;
}
break;
case 3 :
// Parser.g:535:7: d= deleteStatement
{
pushFollow(FOLLOW_deleteStatement_in_batchStatementObjective2934);
d=deleteStatement();
state._fsp--;
statement = d;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return statement;
}
// $ANTLR end "batchStatementObjective"
// $ANTLR start "createAggregateStatement"
// Parser.g:538:1: createAggregateStatement returns [CreateAggregateStatement expr] : K_CREATE ( K_OR K_REPLACE )? K_AGGREGATE ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' K_SFUNC sfunc= allowedFunctionName K_STYPE stype= comparatorType ( K_FINALFUNC ffunc= allowedFunctionName )? ( K_INITCOND ival= term )? ;
public final CreateAggregateStatement createAggregateStatement() throws RecognitionException {
CreateAggregateStatement expr = null;
FunctionName fn =null;
CQL3Type.Raw v =null;
String sfunc =null;
CQL3Type.Raw stype =null;
String ffunc =null;
Term.Raw ival =null;
boolean orReplace = false;
boolean ifNotExists = false;
List argsTypes = new ArrayList<>();
try {
// Parser.g:545:5: ( K_CREATE ( K_OR K_REPLACE )? K_AGGREGATE ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' K_SFUNC sfunc= allowedFunctionName K_STYPE stype= comparatorType ( K_FINALFUNC ffunc= allowedFunctionName )? ( K_INITCOND ival= term )? )
// Parser.g:545:7: K_CREATE ( K_OR K_REPLACE )? K_AGGREGATE ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' K_SFUNC sfunc= allowedFunctionName K_STYPE stype= comparatorType ( K_FINALFUNC ffunc= allowedFunctionName )? ( K_INITCOND ival= term )?
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createAggregateStatement2967);
// Parser.g:545:16: ( K_OR K_REPLACE )?
int alt50=2;
int LA50_0 = input.LA(1);
if ( (LA50_0==K_OR) ) {
alt50=1;
}
switch (alt50) {
case 1 :
// Parser.g:545:17: K_OR K_REPLACE
{
match(input,K_OR,FOLLOW_K_OR_in_createAggregateStatement2970);
match(input,K_REPLACE,FOLLOW_K_REPLACE_in_createAggregateStatement2972);
orReplace = true;
}
break;
}
match(input,K_AGGREGATE,FOLLOW_K_AGGREGATE_in_createAggregateStatement2984);
// Parser.g:547:7: ( K_IF K_NOT K_EXISTS )?
int alt51=2;
int LA51_0 = input.LA(1);
if ( (LA51_0==K_IF) ) {
alt51=1;
}
switch (alt51) {
case 1 :
// Parser.g:547:8: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createAggregateStatement2993);
match(input,K_NOT,FOLLOW_K_NOT_in_createAggregateStatement2995);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createAggregateStatement2997);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_functionName_in_createAggregateStatement3011);
fn=functionName();
state._fsp--;
match(input,187,FOLLOW_187_in_createAggregateStatement3019);
// Parser.g:550:9: (v= comparatorType ( ',' v= comparatorType )* )?
int alt53=2;
int LA53_0 = input.LA(1);
if ( (LA53_0==IDENT||(LA53_0 >= K_AGGREGATE && LA53_0 <= K_ALL)||LA53_0==K_AS||LA53_0==K_ASCII||(LA53_0 >= K_BIGINT && LA53_0 <= K_BOOLEAN)||(LA53_0 >= K_CALLED && LA53_0 <= K_CLUSTERING)||(LA53_0 >= K_COMPACT && LA53_0 <= K_COUNTER)||(LA53_0 >= K_CUSTOM && LA53_0 <= K_DECIMAL)||(LA53_0 >= K_DISTINCT && LA53_0 <= K_DOUBLE)||LA53_0==K_DURATION||(LA53_0 >= K_EXISTS && LA53_0 <= K_FLOAT)||LA53_0==K_FROZEN||(LA53_0 >= K_FUNCTION && LA53_0 <= K_FUNCTIONS)||LA53_0==K_GROUP||LA53_0==K_INET||(LA53_0 >= K_INITCOND && LA53_0 <= K_INPUT)||LA53_0==K_INT||(LA53_0 >= K_JSON && LA53_0 <= K_KEYS)||(LA53_0 >= K_KEYSPACES && LA53_0 <= K_LIKE)||(LA53_0 >= K_LIST && LA53_0 <= K_MAP)||LA53_0==K_NOLOGIN||LA53_0==K_NOSUPERUSER||LA53_0==K_OPTIONS||(LA53_0 >= K_PARTITION && LA53_0 <= K_PERMISSIONS)||LA53_0==K_RETURNS||(LA53_0 >= K_ROLE && LA53_0 <= K_ROLES)||(LA53_0 >= K_SET && LA53_0 <= K_TINYINT)||LA53_0==K_TRIGGER||(LA53_0 >= K_TTL && LA53_0 <= K_TYPE)||(LA53_0 >= K_USER && LA53_0 <= K_USERS)||(LA53_0 >= K_UUID && LA53_0 <= K_VARINT)||LA53_0==K_WRITETIME||LA53_0==QUOTED_NAME||LA53_0==STRING_LITERAL) ) {
alt53=1;
}
switch (alt53) {
case 1 :
// Parser.g:551:11: v= comparatorType ( ',' v= comparatorType )*
{
pushFollow(FOLLOW_comparatorType_in_createAggregateStatement3043);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
// Parser.g:552:11: ( ',' v= comparatorType )*
loop52:
while (true) {
int alt52=2;
int LA52_0 = input.LA(1);
if ( (LA52_0==191) ) {
alt52=1;
}
switch (alt52) {
case 1 :
// Parser.g:552:13: ',' v= comparatorType
{
match(input,191,FOLLOW_191_in_createAggregateStatement3059);
pushFollow(FOLLOW_comparatorType_in_createAggregateStatement3063);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
}
break;
default :
break loop52;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_createAggregateStatement3087);
match(input,K_SFUNC,FOLLOW_K_SFUNC_in_createAggregateStatement3095);
pushFollow(FOLLOW_allowedFunctionName_in_createAggregateStatement3101);
sfunc=allowedFunctionName();
state._fsp--;
match(input,K_STYPE,FOLLOW_K_STYPE_in_createAggregateStatement3109);
pushFollow(FOLLOW_comparatorType_in_createAggregateStatement3115);
stype=comparatorType();
state._fsp--;
// Parser.g:557:7: ( K_FINALFUNC ffunc= allowedFunctionName )?
int alt54=2;
int LA54_0 = input.LA(1);
if ( (LA54_0==K_FINALFUNC) ) {
alt54=1;
}
switch (alt54) {
case 1 :
// Parser.g:558:9: K_FINALFUNC ffunc= allowedFunctionName
{
match(input,K_FINALFUNC,FOLLOW_K_FINALFUNC_in_createAggregateStatement3133);
pushFollow(FOLLOW_allowedFunctionName_in_createAggregateStatement3139);
ffunc=allowedFunctionName();
state._fsp--;
}
break;
}
// Parser.g:560:7: ( K_INITCOND ival= term )?
int alt55=2;
int LA55_0 = input.LA(1);
if ( (LA55_0==K_INITCOND) ) {
alt55=1;
}
switch (alt55) {
case 1 :
// Parser.g:561:9: K_INITCOND ival= term
{
match(input,K_INITCOND,FOLLOW_K_INITCOND_in_createAggregateStatement3166);
pushFollow(FOLLOW_term_in_createAggregateStatement3172);
ival=term();
state._fsp--;
}
break;
}
expr = new CreateAggregateStatement(fn, argsTypes, sfunc, stype, ffunc, ival, orReplace, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createAggregateStatement"
// $ANTLR start "dropAggregateStatement"
// Parser.g:566:1: dropAggregateStatement returns [DropAggregateStatement expr] : K_DROP K_AGGREGATE ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )? ;
public final DropAggregateStatement dropAggregateStatement() throws RecognitionException {
DropAggregateStatement expr = null;
FunctionName fn =null;
CQL3Type.Raw v =null;
boolean ifExists = false;
List argsTypes = new ArrayList<>();
boolean argsPresent = false;
try {
// Parser.g:572:5: ( K_DROP K_AGGREGATE ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )? )
// Parser.g:572:7: K_DROP K_AGGREGATE ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )?
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropAggregateStatement3219);
match(input,K_AGGREGATE,FOLLOW_K_AGGREGATE_in_dropAggregateStatement3221);
// Parser.g:573:7: ( K_IF K_EXISTS )?
int alt56=2;
int LA56_0 = input.LA(1);
if ( (LA56_0==K_IF) ) {
alt56=1;
}
switch (alt56) {
case 1 :
// Parser.g:573:8: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropAggregateStatement3230);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropAggregateStatement3232);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_functionName_in_dropAggregateStatement3247);
fn=functionName();
state._fsp--;
// Parser.g:575:7: ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )?
int alt59=2;
int LA59_0 = input.LA(1);
if ( (LA59_0==187) ) {
alt59=1;
}
switch (alt59) {
case 1 :
// Parser.g:576:9: '(' (v= comparatorType ( ',' v= comparatorType )* )? ')'
{
match(input,187,FOLLOW_187_in_dropAggregateStatement3265);
// Parser.g:577:11: (v= comparatorType ( ',' v= comparatorType )* )?
int alt58=2;
int LA58_0 = input.LA(1);
if ( (LA58_0==IDENT||(LA58_0 >= K_AGGREGATE && LA58_0 <= K_ALL)||LA58_0==K_AS||LA58_0==K_ASCII||(LA58_0 >= K_BIGINT && LA58_0 <= K_BOOLEAN)||(LA58_0 >= K_CALLED && LA58_0 <= K_CLUSTERING)||(LA58_0 >= K_COMPACT && LA58_0 <= K_COUNTER)||(LA58_0 >= K_CUSTOM && LA58_0 <= K_DECIMAL)||(LA58_0 >= K_DISTINCT && LA58_0 <= K_DOUBLE)||LA58_0==K_DURATION||(LA58_0 >= K_EXISTS && LA58_0 <= K_FLOAT)||LA58_0==K_FROZEN||(LA58_0 >= K_FUNCTION && LA58_0 <= K_FUNCTIONS)||LA58_0==K_GROUP||LA58_0==K_INET||(LA58_0 >= K_INITCOND && LA58_0 <= K_INPUT)||LA58_0==K_INT||(LA58_0 >= K_JSON && LA58_0 <= K_KEYS)||(LA58_0 >= K_KEYSPACES && LA58_0 <= K_LIKE)||(LA58_0 >= K_LIST && LA58_0 <= K_MAP)||LA58_0==K_NOLOGIN||LA58_0==K_NOSUPERUSER||LA58_0==K_OPTIONS||(LA58_0 >= K_PARTITION && LA58_0 <= K_PERMISSIONS)||LA58_0==K_RETURNS||(LA58_0 >= K_ROLE && LA58_0 <= K_ROLES)||(LA58_0 >= K_SET && LA58_0 <= K_TINYINT)||LA58_0==K_TRIGGER||(LA58_0 >= K_TTL && LA58_0 <= K_TYPE)||(LA58_0 >= K_USER && LA58_0 <= K_USERS)||(LA58_0 >= K_UUID && LA58_0 <= K_VARINT)||LA58_0==K_WRITETIME||LA58_0==QUOTED_NAME||LA58_0==STRING_LITERAL) ) {
alt58=1;
}
switch (alt58) {
case 1 :
// Parser.g:578:13: v= comparatorType ( ',' v= comparatorType )*
{
pushFollow(FOLLOW_comparatorType_in_dropAggregateStatement3293);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
// Parser.g:579:13: ( ',' v= comparatorType )*
loop57:
while (true) {
int alt57=2;
int LA57_0 = input.LA(1);
if ( (LA57_0==191) ) {
alt57=1;
}
switch (alt57) {
case 1 :
// Parser.g:579:15: ',' v= comparatorType
{
match(input,191,FOLLOW_191_in_dropAggregateStatement3311);
pushFollow(FOLLOW_comparatorType_in_dropAggregateStatement3315);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
}
break;
default :
break loop57;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_dropAggregateStatement3343);
argsPresent = true;
}
break;
}
expr = new DropAggregateStatement(fn, argsTypes, argsPresent, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "dropAggregateStatement"
// $ANTLR start "createFunctionStatement"
// Parser.g:587:1: createFunctionStatement returns [CreateFunctionStatement expr] : K_CREATE ( K_OR K_REPLACE )? K_FUNCTION ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (k= noncol_ident v= comparatorType ( ',' k= noncol_ident v= comparatorType )* )? ')' ( ( K_RETURNS K_NULL ) | ( K_CALLED ) ) K_ON K_NULL K_INPUT K_RETURNS rt= comparatorType K_LANGUAGE language= IDENT K_AS body= STRING_LITERAL ;
public final CreateFunctionStatement createFunctionStatement() throws RecognitionException {
CreateFunctionStatement expr = null;
Token language=null;
Token body=null;
FunctionName fn =null;
ColumnIdentifier k =null;
CQL3Type.Raw v =null;
CQL3Type.Raw rt =null;
boolean orReplace = false;
boolean ifNotExists = false;
List argsNames = new ArrayList<>();
List argsTypes = new ArrayList<>();
boolean calledOnNullInput = false;
try {
// Parser.g:596:5: ( K_CREATE ( K_OR K_REPLACE )? K_FUNCTION ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (k= noncol_ident v= comparatorType ( ',' k= noncol_ident v= comparatorType )* )? ')' ( ( K_RETURNS K_NULL ) | ( K_CALLED ) ) K_ON K_NULL K_INPUT K_RETURNS rt= comparatorType K_LANGUAGE language= IDENT K_AS body= STRING_LITERAL )
// Parser.g:596:7: K_CREATE ( K_OR K_REPLACE )? K_FUNCTION ( K_IF K_NOT K_EXISTS )? fn= functionName '(' (k= noncol_ident v= comparatorType ( ',' k= noncol_ident v= comparatorType )* )? ')' ( ( K_RETURNS K_NULL ) | ( K_CALLED ) ) K_ON K_NULL K_INPUT K_RETURNS rt= comparatorType K_LANGUAGE language= IDENT K_AS body= STRING_LITERAL
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createFunctionStatement3400);
// Parser.g:596:16: ( K_OR K_REPLACE )?
int alt60=2;
int LA60_0 = input.LA(1);
if ( (LA60_0==K_OR) ) {
alt60=1;
}
switch (alt60) {
case 1 :
// Parser.g:596:17: K_OR K_REPLACE
{
match(input,K_OR,FOLLOW_K_OR_in_createFunctionStatement3403);
match(input,K_REPLACE,FOLLOW_K_REPLACE_in_createFunctionStatement3405);
orReplace = true;
}
break;
}
match(input,K_FUNCTION,FOLLOW_K_FUNCTION_in_createFunctionStatement3417);
// Parser.g:598:7: ( K_IF K_NOT K_EXISTS )?
int alt61=2;
int LA61_0 = input.LA(1);
if ( (LA61_0==K_IF) ) {
alt61=1;
}
switch (alt61) {
case 1 :
// Parser.g:598:8: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createFunctionStatement3426);
match(input,K_NOT,FOLLOW_K_NOT_in_createFunctionStatement3428);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createFunctionStatement3430);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_functionName_in_createFunctionStatement3444);
fn=functionName();
state._fsp--;
match(input,187,FOLLOW_187_in_createFunctionStatement3452);
// Parser.g:601:9: (k= noncol_ident v= comparatorType ( ',' k= noncol_ident v= comparatorType )* )?
int alt63=2;
int LA63_0 = input.LA(1);
if ( (LA63_0==IDENT||(LA63_0 >= K_AGGREGATE && LA63_0 <= K_ALL)||LA63_0==K_AS||LA63_0==K_ASCII||(LA63_0 >= K_BIGINT && LA63_0 <= K_BOOLEAN)||(LA63_0 >= K_CALLED && LA63_0 <= K_CLUSTERING)||(LA63_0 >= K_COMPACT && LA63_0 <= K_COUNTER)||(LA63_0 >= K_CUSTOM && LA63_0 <= K_DECIMAL)||(LA63_0 >= K_DISTINCT && LA63_0 <= K_DOUBLE)||LA63_0==K_DURATION||(LA63_0 >= K_EXISTS && LA63_0 <= K_FLOAT)||LA63_0==K_FROZEN||(LA63_0 >= K_FUNCTION && LA63_0 <= K_FUNCTIONS)||LA63_0==K_GROUP||LA63_0==K_INET||(LA63_0 >= K_INITCOND && LA63_0 <= K_INPUT)||LA63_0==K_INT||(LA63_0 >= K_JSON && LA63_0 <= K_KEYS)||(LA63_0 >= K_KEYSPACES && LA63_0 <= K_LIKE)||(LA63_0 >= K_LIST && LA63_0 <= K_MAP)||LA63_0==K_NOLOGIN||LA63_0==K_NOSUPERUSER||LA63_0==K_OPTIONS||(LA63_0 >= K_PARTITION && LA63_0 <= K_PERMISSIONS)||LA63_0==K_RETURNS||(LA63_0 >= K_ROLE && LA63_0 <= K_ROLES)||(LA63_0 >= K_SFUNC && LA63_0 <= K_TINYINT)||LA63_0==K_TRIGGER||(LA63_0 >= K_TTL && LA63_0 <= K_TYPE)||(LA63_0 >= K_USER && LA63_0 <= K_USERS)||(LA63_0 >= K_UUID && LA63_0 <= K_VARINT)||LA63_0==K_WRITETIME||LA63_0==QUOTED_NAME) ) {
alt63=1;
}
switch (alt63) {
case 1 :
// Parser.g:602:11: k= noncol_ident v= comparatorType ( ',' k= noncol_ident v= comparatorType )*
{
pushFollow(FOLLOW_noncol_ident_in_createFunctionStatement3476);
k=noncol_ident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_createFunctionStatement3480);
v=comparatorType();
state._fsp--;
argsNames.add(k); argsTypes.add(v);
// Parser.g:603:11: ( ',' k= noncol_ident v= comparatorType )*
loop62:
while (true) {
int alt62=2;
int LA62_0 = input.LA(1);
if ( (LA62_0==191) ) {
alt62=1;
}
switch (alt62) {
case 1 :
// Parser.g:603:13: ',' k= noncol_ident v= comparatorType
{
match(input,191,FOLLOW_191_in_createFunctionStatement3496);
pushFollow(FOLLOW_noncol_ident_in_createFunctionStatement3500);
k=noncol_ident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_createFunctionStatement3504);
v=comparatorType();
state._fsp--;
argsNames.add(k); argsTypes.add(v);
}
break;
default :
break loop62;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_createFunctionStatement3528);
// Parser.g:606:7: ( ( K_RETURNS K_NULL ) | ( K_CALLED ) )
int alt64=2;
int LA64_0 = input.LA(1);
if ( (LA64_0==K_RETURNS) ) {
alt64=1;
}
else if ( (LA64_0==K_CALLED) ) {
alt64=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 64, 0, input);
throw nvae;
}
switch (alt64) {
case 1 :
// Parser.g:606:9: ( K_RETURNS K_NULL )
{
// Parser.g:606:9: ( K_RETURNS K_NULL )
// Parser.g:606:10: K_RETURNS K_NULL
{
match(input,K_RETURNS,FOLLOW_K_RETURNS_in_createFunctionStatement3539);
match(input,K_NULL,FOLLOW_K_NULL_in_createFunctionStatement3541);
}
}
break;
case 2 :
// Parser.g:606:30: ( K_CALLED )
{
// Parser.g:606:30: ( K_CALLED )
// Parser.g:606:31: K_CALLED
{
match(input,K_CALLED,FOLLOW_K_CALLED_in_createFunctionStatement3547);
calledOnNullInput=true;
}
}
break;
}
match(input,K_ON,FOLLOW_K_ON_in_createFunctionStatement3553);
match(input,K_NULL,FOLLOW_K_NULL_in_createFunctionStatement3555);
match(input,K_INPUT,FOLLOW_K_INPUT_in_createFunctionStatement3557);
match(input,K_RETURNS,FOLLOW_K_RETURNS_in_createFunctionStatement3565);
pushFollow(FOLLOW_comparatorType_in_createFunctionStatement3571);
rt=comparatorType();
state._fsp--;
match(input,K_LANGUAGE,FOLLOW_K_LANGUAGE_in_createFunctionStatement3579);
language=(Token)match(input,IDENT,FOLLOW_IDENT_in_createFunctionStatement3585);
match(input,K_AS,FOLLOW_K_AS_in_createFunctionStatement3593);
body=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_createFunctionStatement3599);
expr = new CreateFunctionStatement(fn, (language!=null?language.getText():null).toLowerCase(), (body!=null?body.getText():null),
argsNames, argsTypes, rt, calledOnNullInput, orReplace, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createFunctionStatement"
// $ANTLR start "dropFunctionStatement"
// Parser.g:614:1: dropFunctionStatement returns [DropFunctionStatement expr] : K_DROP K_FUNCTION ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )? ;
public final DropFunctionStatement dropFunctionStatement() throws RecognitionException {
DropFunctionStatement expr = null;
FunctionName fn =null;
CQL3Type.Raw v =null;
boolean ifExists = false;
List argsTypes = new ArrayList<>();
boolean argsPresent = false;
try {
// Parser.g:620:5: ( K_DROP K_FUNCTION ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )? )
// Parser.g:620:7: K_DROP K_FUNCTION ( K_IF K_EXISTS )? fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )?
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropFunctionStatement3637);
match(input,K_FUNCTION,FOLLOW_K_FUNCTION_in_dropFunctionStatement3639);
// Parser.g:621:7: ( K_IF K_EXISTS )?
int alt65=2;
int LA65_0 = input.LA(1);
if ( (LA65_0==K_IF) ) {
alt65=1;
}
switch (alt65) {
case 1 :
// Parser.g:621:8: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropFunctionStatement3648);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropFunctionStatement3650);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_functionName_in_dropFunctionStatement3665);
fn=functionName();
state._fsp--;
// Parser.g:623:7: ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )?
int alt68=2;
int LA68_0 = input.LA(1);
if ( (LA68_0==187) ) {
alt68=1;
}
switch (alt68) {
case 1 :
// Parser.g:624:9: '(' (v= comparatorType ( ',' v= comparatorType )* )? ')'
{
match(input,187,FOLLOW_187_in_dropFunctionStatement3683);
// Parser.g:625:11: (v= comparatorType ( ',' v= comparatorType )* )?
int alt67=2;
int LA67_0 = input.LA(1);
if ( (LA67_0==IDENT||(LA67_0 >= K_AGGREGATE && LA67_0 <= K_ALL)||LA67_0==K_AS||LA67_0==K_ASCII||(LA67_0 >= K_BIGINT && LA67_0 <= K_BOOLEAN)||(LA67_0 >= K_CALLED && LA67_0 <= K_CLUSTERING)||(LA67_0 >= K_COMPACT && LA67_0 <= K_COUNTER)||(LA67_0 >= K_CUSTOM && LA67_0 <= K_DECIMAL)||(LA67_0 >= K_DISTINCT && LA67_0 <= K_DOUBLE)||LA67_0==K_DURATION||(LA67_0 >= K_EXISTS && LA67_0 <= K_FLOAT)||LA67_0==K_FROZEN||(LA67_0 >= K_FUNCTION && LA67_0 <= K_FUNCTIONS)||LA67_0==K_GROUP||LA67_0==K_INET||(LA67_0 >= K_INITCOND && LA67_0 <= K_INPUT)||LA67_0==K_INT||(LA67_0 >= K_JSON && LA67_0 <= K_KEYS)||(LA67_0 >= K_KEYSPACES && LA67_0 <= K_LIKE)||(LA67_0 >= K_LIST && LA67_0 <= K_MAP)||LA67_0==K_NOLOGIN||LA67_0==K_NOSUPERUSER||LA67_0==K_OPTIONS||(LA67_0 >= K_PARTITION && LA67_0 <= K_PERMISSIONS)||LA67_0==K_RETURNS||(LA67_0 >= K_ROLE && LA67_0 <= K_ROLES)||(LA67_0 >= K_SET && LA67_0 <= K_TINYINT)||LA67_0==K_TRIGGER||(LA67_0 >= K_TTL && LA67_0 <= K_TYPE)||(LA67_0 >= K_USER && LA67_0 <= K_USERS)||(LA67_0 >= K_UUID && LA67_0 <= K_VARINT)||LA67_0==K_WRITETIME||LA67_0==QUOTED_NAME||LA67_0==STRING_LITERAL) ) {
alt67=1;
}
switch (alt67) {
case 1 :
// Parser.g:626:13: v= comparatorType ( ',' v= comparatorType )*
{
pushFollow(FOLLOW_comparatorType_in_dropFunctionStatement3711);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
// Parser.g:627:13: ( ',' v= comparatorType )*
loop66:
while (true) {
int alt66=2;
int LA66_0 = input.LA(1);
if ( (LA66_0==191) ) {
alt66=1;
}
switch (alt66) {
case 1 :
// Parser.g:627:15: ',' v= comparatorType
{
match(input,191,FOLLOW_191_in_dropFunctionStatement3729);
pushFollow(FOLLOW_comparatorType_in_dropFunctionStatement3733);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
}
break;
default :
break loop66;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_dropFunctionStatement3761);
argsPresent = true;
}
break;
}
expr = new DropFunctionStatement(fn, argsTypes, argsPresent, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "dropFunctionStatement"
// $ANTLR start "createKeyspaceStatement"
// Parser.g:638:1: createKeyspaceStatement returns [CreateKeyspaceStatement expr] : K_CREATE K_KEYSPACE ( K_IF K_NOT K_EXISTS )? ks= keyspaceName K_WITH properties[attrs] ;
public final CreateKeyspaceStatement createKeyspaceStatement() throws RecognitionException {
CreateKeyspaceStatement expr = null;
String ks =null;
KeyspaceAttributes attrs = new KeyspaceAttributes();
boolean ifNotExists = false;
try {
// Parser.g:643:5: ( K_CREATE K_KEYSPACE ( K_IF K_NOT K_EXISTS )? ks= keyspaceName K_WITH properties[attrs] )
// Parser.g:643:7: K_CREATE K_KEYSPACE ( K_IF K_NOT K_EXISTS )? ks= keyspaceName K_WITH properties[attrs]
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createKeyspaceStatement3820);
match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_createKeyspaceStatement3822);
// Parser.g:643:27: ( K_IF K_NOT K_EXISTS )?
int alt69=2;
int LA69_0 = input.LA(1);
if ( (LA69_0==K_IF) ) {
alt69=1;
}
switch (alt69) {
case 1 :
// Parser.g:643:28: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createKeyspaceStatement3825);
match(input,K_NOT,FOLLOW_K_NOT_in_createKeyspaceStatement3827);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createKeyspaceStatement3829);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_keyspaceName_in_createKeyspaceStatement3838);
ks=keyspaceName();
state._fsp--;
match(input,K_WITH,FOLLOW_K_WITH_in_createKeyspaceStatement3846);
pushFollow(FOLLOW_properties_in_createKeyspaceStatement3848);
properties(attrs);
state._fsp--;
expr = new CreateKeyspaceStatement(ks, attrs, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createKeyspaceStatement"
// $ANTLR start "createTableStatement"
// Parser.g:654:1: createTableStatement returns [CreateTableStatement.RawStatement expr] : K_CREATE K_COLUMNFAMILY ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName cfamDefinition[expr] ;
public final CreateTableStatement.RawStatement createTableStatement() throws RecognitionException {
CreateTableStatement.RawStatement expr = null;
CFName cf =null;
boolean ifNotExists = false;
try {
// Parser.g:656:5: ( K_CREATE K_COLUMNFAMILY ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName cfamDefinition[expr] )
// Parser.g:656:7: K_CREATE K_COLUMNFAMILY ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName cfamDefinition[expr]
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createTableStatement3883);
match(input,K_COLUMNFAMILY,FOLLOW_K_COLUMNFAMILY_in_createTableStatement3885);
// Parser.g:656:31: ( K_IF K_NOT K_EXISTS )?
int alt70=2;
int LA70_0 = input.LA(1);
if ( (LA70_0==K_IF) ) {
alt70=1;
}
switch (alt70) {
case 1 :
// Parser.g:656:32: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createTableStatement3888);
match(input,K_NOT,FOLLOW_K_NOT_in_createTableStatement3890);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createTableStatement3892);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_createTableStatement3907);
cf=columnFamilyName();
state._fsp--;
expr = new CreateTableStatement.RawStatement(cf, ifNotExists);
pushFollow(FOLLOW_cfamDefinition_in_createTableStatement3917);
cfamDefinition(expr);
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createTableStatement"
// $ANTLR start "cfamDefinition"
// Parser.g:661:1: cfamDefinition[CreateTableStatement.RawStatement expr] : '(' cfamColumns[expr] ( ',' ( cfamColumns[expr] )? )* ')' ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )? ;
public final void cfamDefinition(CreateTableStatement.RawStatement expr) throws RecognitionException {
try {
// Parser.g:662:5: ( '(' cfamColumns[expr] ( ',' ( cfamColumns[expr] )? )* ')' ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )? )
// Parser.g:662:7: '(' cfamColumns[expr] ( ',' ( cfamColumns[expr] )? )* ')' ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )?
{
match(input,187,FOLLOW_187_in_cfamDefinition3936);
pushFollow(FOLLOW_cfamColumns_in_cfamDefinition3938);
cfamColumns(expr);
state._fsp--;
// Parser.g:662:29: ( ',' ( cfamColumns[expr] )? )*
loop72:
while (true) {
int alt72=2;
int LA72_0 = input.LA(1);
if ( (LA72_0==191) ) {
alt72=1;
}
switch (alt72) {
case 1 :
// Parser.g:662:31: ',' ( cfamColumns[expr] )?
{
match(input,191,FOLLOW_191_in_cfamDefinition3943);
// Parser.g:662:35: ( cfamColumns[expr] )?
int alt71=2;
int LA71_0 = input.LA(1);
if ( (LA71_0==IDENT||(LA71_0 >= K_AGGREGATE && LA71_0 <= K_ALL)||LA71_0==K_AS||LA71_0==K_ASCII||(LA71_0 >= K_BIGINT && LA71_0 <= K_BOOLEAN)||(LA71_0 >= K_CALLED && LA71_0 <= K_CLUSTERING)||(LA71_0 >= K_COMPACT && LA71_0 <= K_COUNTER)||(LA71_0 >= K_CUSTOM && LA71_0 <= K_DECIMAL)||(LA71_0 >= K_DISTINCT && LA71_0 <= K_DOUBLE)||LA71_0==K_DURATION||(LA71_0 >= K_EXISTS && LA71_0 <= K_FLOAT)||LA71_0==K_FROZEN||(LA71_0 >= K_FUNCTION && LA71_0 <= K_FUNCTIONS)||LA71_0==K_GROUP||LA71_0==K_INET||(LA71_0 >= K_INITCOND && LA71_0 <= K_INPUT)||LA71_0==K_INT||(LA71_0 >= K_JSON && LA71_0 <= K_KEYS)||(LA71_0 >= K_KEYSPACES && LA71_0 <= K_LIKE)||(LA71_0 >= K_LIST && LA71_0 <= K_MAP)||LA71_0==K_NOLOGIN||LA71_0==K_NOSUPERUSER||LA71_0==K_OPTIONS||(LA71_0 >= K_PARTITION && LA71_0 <= K_PRIMARY)||LA71_0==K_RETURNS||(LA71_0 >= K_ROLE && LA71_0 <= K_ROLES)||(LA71_0 >= K_SFUNC && LA71_0 <= K_TINYINT)||LA71_0==K_TRIGGER||(LA71_0 >= K_TTL && LA71_0 <= K_TYPE)||(LA71_0 >= K_USER && LA71_0 <= K_USERS)||(LA71_0 >= K_UUID && LA71_0 <= K_VARINT)||LA71_0==K_WRITETIME||LA71_0==QUOTED_NAME) ) {
alt71=1;
}
switch (alt71) {
case 1 :
// Parser.g:662:35: cfamColumns[expr]
{
pushFollow(FOLLOW_cfamColumns_in_cfamDefinition3945);
cfamColumns(expr);
state._fsp--;
}
break;
}
}
break;
default :
break loop72;
}
}
match(input,188,FOLLOW_188_in_cfamDefinition3952);
// Parser.g:663:7: ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )?
int alt74=2;
int LA74_0 = input.LA(1);
if ( (LA74_0==K_WITH) ) {
alt74=1;
}
switch (alt74) {
case 1 :
// Parser.g:663:9: K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )*
{
match(input,K_WITH,FOLLOW_K_WITH_in_cfamDefinition3962);
pushFollow(FOLLOW_cfamProperty_in_cfamDefinition3964);
cfamProperty(expr.properties);
state._fsp--;
// Parser.g:663:46: ( K_AND cfamProperty[expr.properties] )*
loop73:
while (true) {
int alt73=2;
int LA73_0 = input.LA(1);
if ( (LA73_0==K_AND) ) {
alt73=1;
}
switch (alt73) {
case 1 :
// Parser.g:663:48: K_AND cfamProperty[expr.properties]
{
match(input,K_AND,FOLLOW_K_AND_in_cfamDefinition3969);
pushFollow(FOLLOW_cfamProperty_in_cfamDefinition3971);
cfamProperty(expr.properties);
state._fsp--;
}
break;
default :
break loop73;
}
}
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "cfamDefinition"
// $ANTLR start "cfamColumns"
// Parser.g:666:1: cfamColumns[CreateTableStatement.RawStatement expr] : (k= ident v= comparatorType ( K_STATIC )? ( K_PRIMARY K_KEY )? | K_PRIMARY K_KEY '(' pkDef[expr] ( ',' c= ident )* ')' );
public final void cfamColumns(CreateTableStatement.RawStatement expr) throws RecognitionException {
ColumnIdentifier k =null;
CQL3Type.Raw v =null;
ColumnIdentifier c =null;
try {
// Parser.g:667:5: (k= ident v= comparatorType ( K_STATIC )? ( K_PRIMARY K_KEY )? | K_PRIMARY K_KEY '(' pkDef[expr] ( ',' c= ident )* ')' )
int alt78=2;
int LA78_0 = input.LA(1);
if ( (LA78_0==IDENT||(LA78_0 >= K_AGGREGATE && LA78_0 <= K_ALL)||LA78_0==K_AS||LA78_0==K_ASCII||(LA78_0 >= K_BIGINT && LA78_0 <= K_BOOLEAN)||(LA78_0 >= K_CALLED && LA78_0 <= K_CLUSTERING)||(LA78_0 >= K_COMPACT && LA78_0 <= K_COUNTER)||(LA78_0 >= K_CUSTOM && LA78_0 <= K_DECIMAL)||(LA78_0 >= K_DISTINCT && LA78_0 <= K_DOUBLE)||LA78_0==K_DURATION||(LA78_0 >= K_EXISTS && LA78_0 <= K_FLOAT)||LA78_0==K_FROZEN||(LA78_0 >= K_FUNCTION && LA78_0 <= K_FUNCTIONS)||LA78_0==K_GROUP||LA78_0==K_INET||(LA78_0 >= K_INITCOND && LA78_0 <= K_INPUT)||LA78_0==K_INT||(LA78_0 >= K_JSON && LA78_0 <= K_KEYS)||(LA78_0 >= K_KEYSPACES && LA78_0 <= K_LIKE)||(LA78_0 >= K_LIST && LA78_0 <= K_MAP)||LA78_0==K_NOLOGIN||LA78_0==K_NOSUPERUSER||LA78_0==K_OPTIONS||(LA78_0 >= K_PARTITION && LA78_0 <= K_PERMISSIONS)||LA78_0==K_RETURNS||(LA78_0 >= K_ROLE && LA78_0 <= K_ROLES)||(LA78_0 >= K_SFUNC && LA78_0 <= K_TINYINT)||LA78_0==K_TRIGGER||(LA78_0 >= K_TTL && LA78_0 <= K_TYPE)||(LA78_0 >= K_USER && LA78_0 <= K_USERS)||(LA78_0 >= K_UUID && LA78_0 <= K_VARINT)||LA78_0==K_WRITETIME||LA78_0==QUOTED_NAME) ) {
alt78=1;
}
else if ( (LA78_0==K_PRIMARY) ) {
alt78=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 78, 0, input);
throw nvae;
}
switch (alt78) {
case 1 :
// Parser.g:667:7: k= ident v= comparatorType ( K_STATIC )? ( K_PRIMARY K_KEY )?
{
pushFollow(FOLLOW_ident_in_cfamColumns3997);
k=ident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_cfamColumns4001);
v=comparatorType();
state._fsp--;
boolean isStatic=false;
// Parser.g:667:60: ( K_STATIC )?
int alt75=2;
int LA75_0 = input.LA(1);
if ( (LA75_0==K_STATIC) ) {
alt75=1;
}
switch (alt75) {
case 1 :
// Parser.g:667:61: K_STATIC
{
match(input,K_STATIC,FOLLOW_K_STATIC_in_cfamColumns4006);
isStatic = true;
}
break;
}
expr.addDefinition(k, v, isStatic);
// Parser.g:668:9: ( K_PRIMARY K_KEY )?
int alt76=2;
int LA76_0 = input.LA(1);
if ( (LA76_0==K_PRIMARY) ) {
alt76=1;
}
switch (alt76) {
case 1 :
// Parser.g:668:10: K_PRIMARY K_KEY
{
match(input,K_PRIMARY,FOLLOW_K_PRIMARY_in_cfamColumns4023);
match(input,K_KEY,FOLLOW_K_KEY_in_cfamColumns4025);
expr.addKeyAliases(Collections.singletonList(k));
}
break;
}
}
break;
case 2 :
// Parser.g:669:7: K_PRIMARY K_KEY '(' pkDef[expr] ( ',' c= ident )* ')'
{
match(input,K_PRIMARY,FOLLOW_K_PRIMARY_in_cfamColumns4037);
match(input,K_KEY,FOLLOW_K_KEY_in_cfamColumns4039);
match(input,187,FOLLOW_187_in_cfamColumns4041);
pushFollow(FOLLOW_pkDef_in_cfamColumns4043);
pkDef(expr);
state._fsp--;
// Parser.g:669:39: ( ',' c= ident )*
loop77:
while (true) {
int alt77=2;
int LA77_0 = input.LA(1);
if ( (LA77_0==191) ) {
alt77=1;
}
switch (alt77) {
case 1 :
// Parser.g:669:40: ',' c= ident
{
match(input,191,FOLLOW_191_in_cfamColumns4047);
pushFollow(FOLLOW_ident_in_cfamColumns4051);
c=ident();
state._fsp--;
expr.addColumnAlias(c);
}
break;
default :
break loop77;
}
}
match(input,188,FOLLOW_188_in_cfamColumns4058);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "cfamColumns"
// $ANTLR start "pkDef"
// Parser.g:672:1: pkDef[CreateTableStatement.RawStatement expr] : (k= ident | '(' k1= ident ( ',' kn= ident )* ')' );
public final void pkDef(CreateTableStatement.RawStatement expr) throws RecognitionException {
ColumnIdentifier k =null;
ColumnIdentifier k1 =null;
ColumnIdentifier kn =null;
try {
// Parser.g:673:5: (k= ident | '(' k1= ident ( ',' kn= ident )* ')' )
int alt80=2;
int LA80_0 = input.LA(1);
if ( (LA80_0==IDENT||(LA80_0 >= K_AGGREGATE && LA80_0 <= K_ALL)||LA80_0==K_AS||LA80_0==K_ASCII||(LA80_0 >= K_BIGINT && LA80_0 <= K_BOOLEAN)||(LA80_0 >= K_CALLED && LA80_0 <= K_CLUSTERING)||(LA80_0 >= K_COMPACT && LA80_0 <= K_COUNTER)||(LA80_0 >= K_CUSTOM && LA80_0 <= K_DECIMAL)||(LA80_0 >= K_DISTINCT && LA80_0 <= K_DOUBLE)||LA80_0==K_DURATION||(LA80_0 >= K_EXISTS && LA80_0 <= K_FLOAT)||LA80_0==K_FROZEN||(LA80_0 >= K_FUNCTION && LA80_0 <= K_FUNCTIONS)||LA80_0==K_GROUP||LA80_0==K_INET||(LA80_0 >= K_INITCOND && LA80_0 <= K_INPUT)||LA80_0==K_INT||(LA80_0 >= K_JSON && LA80_0 <= K_KEYS)||(LA80_0 >= K_KEYSPACES && LA80_0 <= K_LIKE)||(LA80_0 >= K_LIST && LA80_0 <= K_MAP)||LA80_0==K_NOLOGIN||LA80_0==K_NOSUPERUSER||LA80_0==K_OPTIONS||(LA80_0 >= K_PARTITION && LA80_0 <= K_PERMISSIONS)||LA80_0==K_RETURNS||(LA80_0 >= K_ROLE && LA80_0 <= K_ROLES)||(LA80_0 >= K_SFUNC && LA80_0 <= K_TINYINT)||LA80_0==K_TRIGGER||(LA80_0 >= K_TTL && LA80_0 <= K_TYPE)||(LA80_0 >= K_USER && LA80_0 <= K_USERS)||(LA80_0 >= K_UUID && LA80_0 <= K_VARINT)||LA80_0==K_WRITETIME||LA80_0==QUOTED_NAME) ) {
alt80=1;
}
else if ( (LA80_0==187) ) {
alt80=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 80, 0, input);
throw nvae;
}
switch (alt80) {
case 1 :
// Parser.g:673:7: k= ident
{
pushFollow(FOLLOW_ident_in_pkDef4078);
k=ident();
state._fsp--;
expr.addKeyAliases(Collections.singletonList(k));
}
break;
case 2 :
// Parser.g:674:7: '(' k1= ident ( ',' kn= ident )* ')'
{
match(input,187,FOLLOW_187_in_pkDef4088);
List l = new ArrayList();
pushFollow(FOLLOW_ident_in_pkDef4094);
k1=ident();
state._fsp--;
l.add(k1);
// Parser.g:674:101: ( ',' kn= ident )*
loop79:
while (true) {
int alt79=2;
int LA79_0 = input.LA(1);
if ( (LA79_0==191) ) {
alt79=1;
}
switch (alt79) {
case 1 :
// Parser.g:674:103: ',' kn= ident
{
match(input,191,FOLLOW_191_in_pkDef4100);
pushFollow(FOLLOW_ident_in_pkDef4104);
kn=ident();
state._fsp--;
l.add(kn);
}
break;
default :
break loop79;
}
}
match(input,188,FOLLOW_188_in_pkDef4111);
expr.addKeyAliases(l);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "pkDef"
// $ANTLR start "cfamProperty"
// Parser.g:677:1: cfamProperty[CFProperties props] : ( property[props.properties] | K_COMPACT K_STORAGE | K_CLUSTERING K_ORDER K_BY '(' cfamOrdering[props] ( ',' cfamOrdering[props] )* ')' );
public final void cfamProperty(CFProperties props) throws RecognitionException {
try {
// Parser.g:678:5: ( property[props.properties] | K_COMPACT K_STORAGE | K_CLUSTERING K_ORDER K_BY '(' cfamOrdering[props] ( ',' cfamOrdering[props] )* ')' )
int alt82=3;
switch ( input.LA(1) ) {
case IDENT:
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
case QUOTED_NAME:
{
alt82=1;
}
break;
case K_COMPACT:
{
int LA82_2 = input.LA(2);
if ( (LA82_2==K_STORAGE) ) {
alt82=2;
}
else if ( (LA82_2==199) ) {
alt82=1;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 82, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_CLUSTERING:
{
int LA82_3 = input.LA(2);
if ( (LA82_3==K_ORDER) ) {
alt82=3;
}
else if ( (LA82_3==199) ) {
alt82=1;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 82, 3, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 82, 0, input);
throw nvae;
}
switch (alt82) {
case 1 :
// Parser.g:678:7: property[props.properties]
{
pushFollow(FOLLOW_property_in_cfamProperty4131);
property(props.properties);
state._fsp--;
}
break;
case 2 :
// Parser.g:679:7: K_COMPACT K_STORAGE
{
match(input,K_COMPACT,FOLLOW_K_COMPACT_in_cfamProperty4140);
match(input,K_STORAGE,FOLLOW_K_STORAGE_in_cfamProperty4142);
props.setCompactStorage();
}
break;
case 3 :
// Parser.g:680:7: K_CLUSTERING K_ORDER K_BY '(' cfamOrdering[props] ( ',' cfamOrdering[props] )* ')'
{
match(input,K_CLUSTERING,FOLLOW_K_CLUSTERING_in_cfamProperty4152);
match(input,K_ORDER,FOLLOW_K_ORDER_in_cfamProperty4154);
match(input,K_BY,FOLLOW_K_BY_in_cfamProperty4156);
match(input,187,FOLLOW_187_in_cfamProperty4158);
pushFollow(FOLLOW_cfamOrdering_in_cfamProperty4160);
cfamOrdering(props);
state._fsp--;
// Parser.g:680:57: ( ',' cfamOrdering[props] )*
loop81:
while (true) {
int alt81=2;
int LA81_0 = input.LA(1);
if ( (LA81_0==191) ) {
alt81=1;
}
switch (alt81) {
case 1 :
// Parser.g:680:58: ',' cfamOrdering[props]
{
match(input,191,FOLLOW_191_in_cfamProperty4164);
pushFollow(FOLLOW_cfamOrdering_in_cfamProperty4166);
cfamOrdering(props);
state._fsp--;
}
break;
default :
break loop81;
}
}
match(input,188,FOLLOW_188_in_cfamProperty4171);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "cfamProperty"
// $ANTLR start "cfamOrdering"
// Parser.g:683:1: cfamOrdering[CFProperties props] : k= ident ( K_ASC | K_DESC ) ;
public final void cfamOrdering(CFProperties props) throws RecognitionException {
ColumnIdentifier k =null;
boolean reversed=false;
try {
// Parser.g:685:5: (k= ident ( K_ASC | K_DESC ) )
// Parser.g:685:7: k= ident ( K_ASC | K_DESC )
{
pushFollow(FOLLOW_ident_in_cfamOrdering4199);
k=ident();
state._fsp--;
// Parser.g:685:15: ( K_ASC | K_DESC )
int alt83=2;
int LA83_0 = input.LA(1);
if ( (LA83_0==K_ASC) ) {
alt83=1;
}
else if ( (LA83_0==K_DESC) ) {
alt83=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 83, 0, input);
throw nvae;
}
switch (alt83) {
case 1 :
// Parser.g:685:16: K_ASC
{
match(input,K_ASC,FOLLOW_K_ASC_in_cfamOrdering4202);
}
break;
case 2 :
// Parser.g:685:24: K_DESC
{
match(input,K_DESC,FOLLOW_K_DESC_in_cfamOrdering4206);
reversed=true;
}
break;
}
props.setOrdering(k, reversed);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "cfamOrdering"
// $ANTLR start "createTypeStatement"
// Parser.g:696:1: createTypeStatement returns [CreateTypeStatement expr] : K_CREATE K_TYPE ( K_IF K_NOT K_EXISTS )? tn= userTypeName '(' typeColumns[expr] ( ',' ( typeColumns[expr] )? )* ')' ;
public final CreateTypeStatement createTypeStatement() throws RecognitionException {
CreateTypeStatement expr = null;
UTName tn =null;
boolean ifNotExists = false;
try {
// Parser.g:698:5: ( K_CREATE K_TYPE ( K_IF K_NOT K_EXISTS )? tn= userTypeName '(' typeColumns[expr] ( ',' ( typeColumns[expr] )? )* ')' )
// Parser.g:698:7: K_CREATE K_TYPE ( K_IF K_NOT K_EXISTS )? tn= userTypeName '(' typeColumns[expr] ( ',' ( typeColumns[expr] )? )* ')'
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createTypeStatement4245);
match(input,K_TYPE,FOLLOW_K_TYPE_in_createTypeStatement4247);
// Parser.g:698:23: ( K_IF K_NOT K_EXISTS )?
int alt84=2;
int LA84_0 = input.LA(1);
if ( (LA84_0==K_IF) ) {
alt84=1;
}
switch (alt84) {
case 1 :
// Parser.g:698:24: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createTypeStatement4250);
match(input,K_NOT,FOLLOW_K_NOT_in_createTypeStatement4252);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createTypeStatement4254);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_userTypeName_in_createTypeStatement4272);
tn=userTypeName();
state._fsp--;
expr = new CreateTypeStatement(tn, ifNotExists);
match(input,187,FOLLOW_187_in_createTypeStatement4285);
pushFollow(FOLLOW_typeColumns_in_createTypeStatement4287);
typeColumns(expr);
state._fsp--;
// Parser.g:700:32: ( ',' ( typeColumns[expr] )? )*
loop86:
while (true) {
int alt86=2;
int LA86_0 = input.LA(1);
if ( (LA86_0==191) ) {
alt86=1;
}
switch (alt86) {
case 1 :
// Parser.g:700:34: ',' ( typeColumns[expr] )?
{
match(input,191,FOLLOW_191_in_createTypeStatement4292);
// Parser.g:700:38: ( typeColumns[expr] )?
int alt85=2;
int LA85_0 = input.LA(1);
if ( (LA85_0==IDENT||(LA85_0 >= K_AGGREGATE && LA85_0 <= K_ALL)||LA85_0==K_AS||LA85_0==K_ASCII||(LA85_0 >= K_BIGINT && LA85_0 <= K_BOOLEAN)||(LA85_0 >= K_CALLED && LA85_0 <= K_CLUSTERING)||(LA85_0 >= K_COMPACT && LA85_0 <= K_COUNTER)||(LA85_0 >= K_CUSTOM && LA85_0 <= K_DECIMAL)||(LA85_0 >= K_DISTINCT && LA85_0 <= K_DOUBLE)||LA85_0==K_DURATION||(LA85_0 >= K_EXISTS && LA85_0 <= K_FLOAT)||LA85_0==K_FROZEN||(LA85_0 >= K_FUNCTION && LA85_0 <= K_FUNCTIONS)||LA85_0==K_GROUP||LA85_0==K_INET||(LA85_0 >= K_INITCOND && LA85_0 <= K_INPUT)||LA85_0==K_INT||(LA85_0 >= K_JSON && LA85_0 <= K_KEYS)||(LA85_0 >= K_KEYSPACES && LA85_0 <= K_LIKE)||(LA85_0 >= K_LIST && LA85_0 <= K_MAP)||LA85_0==K_NOLOGIN||LA85_0==K_NOSUPERUSER||LA85_0==K_OPTIONS||(LA85_0 >= K_PARTITION && LA85_0 <= K_PERMISSIONS)||LA85_0==K_RETURNS||(LA85_0 >= K_ROLE && LA85_0 <= K_ROLES)||(LA85_0 >= K_SFUNC && LA85_0 <= K_TINYINT)||LA85_0==K_TRIGGER||(LA85_0 >= K_TTL && LA85_0 <= K_TYPE)||(LA85_0 >= K_USER && LA85_0 <= K_USERS)||(LA85_0 >= K_UUID && LA85_0 <= K_VARINT)||LA85_0==K_WRITETIME||LA85_0==QUOTED_NAME) ) {
alt85=1;
}
switch (alt85) {
case 1 :
// Parser.g:700:38: typeColumns[expr]
{
pushFollow(FOLLOW_typeColumns_in_createTypeStatement4294);
typeColumns(expr);
state._fsp--;
}
break;
}
}
break;
default :
break loop86;
}
}
match(input,188,FOLLOW_188_in_createTypeStatement4301);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createTypeStatement"
// $ANTLR start "typeColumns"
// Parser.g:703:1: typeColumns[CreateTypeStatement expr] : k= fident v= comparatorType ;
public final void typeColumns(CreateTypeStatement expr) throws RecognitionException {
FieldIdentifier k =null;
CQL3Type.Raw v =null;
try {
// Parser.g:704:5: (k= fident v= comparatorType )
// Parser.g:704:7: k= fident v= comparatorType
{
pushFollow(FOLLOW_fident_in_typeColumns4321);
k=fident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_typeColumns4325);
v=comparatorType();
state._fsp--;
expr.addDefinition(k, v);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "typeColumns"
// $ANTLR start "createIndexStatement"
// Parser.g:712:1: createIndexStatement returns [CreateIndexStatement expr] : K_CREATE ( K_CUSTOM )? K_INDEX ( K_IF K_NOT K_EXISTS )? ( idxName[name] )? K_ON cf= columnFamilyName '(' ( indexIdent[targets] ( ',' indexIdent[targets] )* )? ')' ( K_USING cls= STRING_LITERAL )? ( K_WITH properties[props] )? ;
public final CreateIndexStatement createIndexStatement() throws RecognitionException {
CreateIndexStatement expr = null;
Token cls=null;
CFName cf =null;
IndexPropDefs props = new IndexPropDefs();
boolean ifNotExists = false;
IndexName name = new IndexName();
List targets = new ArrayList<>();
try {
// Parser.g:719:5: ( K_CREATE ( K_CUSTOM )? K_INDEX ( K_IF K_NOT K_EXISTS )? ( idxName[name] )? K_ON cf= columnFamilyName '(' ( indexIdent[targets] ( ',' indexIdent[targets] )* )? ')' ( K_USING cls= STRING_LITERAL )? ( K_WITH properties[props] )? )
// Parser.g:719:7: K_CREATE ( K_CUSTOM )? K_INDEX ( K_IF K_NOT K_EXISTS )? ( idxName[name] )? K_ON cf= columnFamilyName '(' ( indexIdent[targets] ( ',' indexIdent[targets] )* )? ')' ( K_USING cls= STRING_LITERAL )? ( K_WITH properties[props] )?
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createIndexStatement4360);
// Parser.g:719:16: ( K_CUSTOM )?
int alt87=2;
int LA87_0 = input.LA(1);
if ( (LA87_0==K_CUSTOM) ) {
alt87=1;
}
switch (alt87) {
case 1 :
// Parser.g:719:17: K_CUSTOM
{
match(input,K_CUSTOM,FOLLOW_K_CUSTOM_in_createIndexStatement4363);
props.isCustom = true;
}
break;
}
match(input,K_INDEX,FOLLOW_K_INDEX_in_createIndexStatement4369);
// Parser.g:719:63: ( K_IF K_NOT K_EXISTS )?
int alt88=2;
int LA88_0 = input.LA(1);
if ( (LA88_0==K_IF) ) {
alt88=1;
}
switch (alt88) {
case 1 :
// Parser.g:719:64: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createIndexStatement4372);
match(input,K_NOT,FOLLOW_K_NOT_in_createIndexStatement4374);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createIndexStatement4376);
ifNotExists = true;
}
break;
}
// Parser.g:720:9: ( idxName[name] )?
int alt89=2;
int LA89_0 = input.LA(1);
if ( (LA89_0==IDENT||(LA89_0 >= K_AGGREGATE && LA89_0 <= K_ALL)||LA89_0==K_AS||LA89_0==K_ASCII||(LA89_0 >= K_BIGINT && LA89_0 <= K_BOOLEAN)||(LA89_0 >= K_CALLED && LA89_0 <= K_CLUSTERING)||(LA89_0 >= K_COMPACT && LA89_0 <= K_COUNTER)||(LA89_0 >= K_CUSTOM && LA89_0 <= K_DECIMAL)||(LA89_0 >= K_DISTINCT && LA89_0 <= K_DOUBLE)||LA89_0==K_DURATION||(LA89_0 >= K_EXISTS && LA89_0 <= K_FLOAT)||LA89_0==K_FROZEN||(LA89_0 >= K_FUNCTION && LA89_0 <= K_FUNCTIONS)||LA89_0==K_GROUP||LA89_0==K_INET||(LA89_0 >= K_INITCOND && LA89_0 <= K_INPUT)||LA89_0==K_INT||(LA89_0 >= K_JSON && LA89_0 <= K_KEYS)||(LA89_0 >= K_KEYSPACES && LA89_0 <= K_LIKE)||(LA89_0 >= K_LIST && LA89_0 <= K_MAP)||LA89_0==K_NOLOGIN||LA89_0==K_NOSUPERUSER||LA89_0==K_OPTIONS||(LA89_0 >= K_PARTITION && LA89_0 <= K_PERMISSIONS)||LA89_0==K_RETURNS||(LA89_0 >= K_ROLE && LA89_0 <= K_ROLES)||(LA89_0 >= K_SFUNC && LA89_0 <= K_TINYINT)||LA89_0==K_TRIGGER||(LA89_0 >= K_TTL && LA89_0 <= K_TYPE)||(LA89_0 >= K_USER && LA89_0 <= K_USERS)||(LA89_0 >= K_UUID && LA89_0 <= K_VARINT)||LA89_0==K_WRITETIME||(LA89_0 >= QMARK && LA89_0 <= QUOTED_NAME)) ) {
alt89=1;
}
switch (alt89) {
case 1 :
// Parser.g:720:10: idxName[name]
{
pushFollow(FOLLOW_idxName_in_createIndexStatement4392);
idxName(name);
state._fsp--;
}
break;
}
match(input,K_ON,FOLLOW_K_ON_in_createIndexStatement4397);
pushFollow(FOLLOW_columnFamilyName_in_createIndexStatement4401);
cf=columnFamilyName();
state._fsp--;
match(input,187,FOLLOW_187_in_createIndexStatement4403);
// Parser.g:720:55: ( indexIdent[targets] ( ',' indexIdent[targets] )* )?
int alt91=2;
int LA91_0 = input.LA(1);
if ( (LA91_0==EMPTY_QUOTED_NAME||LA91_0==IDENT||(LA91_0 >= K_AGGREGATE && LA91_0 <= K_ALL)||LA91_0==K_AS||LA91_0==K_ASCII||(LA91_0 >= K_BIGINT && LA91_0 <= K_BOOLEAN)||(LA91_0 >= K_CALLED && LA91_0 <= K_CLUSTERING)||(LA91_0 >= K_COMPACT && LA91_0 <= K_COUNTER)||(LA91_0 >= K_CUSTOM && LA91_0 <= K_DECIMAL)||(LA91_0 >= K_DISTINCT && LA91_0 <= K_DOUBLE)||(LA91_0 >= K_DURATION && LA91_0 <= K_ENTRIES)||(LA91_0 >= K_EXISTS && LA91_0 <= K_FLOAT)||(LA91_0 >= K_FROZEN && LA91_0 <= K_FUNCTIONS)||LA91_0==K_GROUP||LA91_0==K_INET||(LA91_0 >= K_INITCOND && LA91_0 <= K_INPUT)||LA91_0==K_INT||(LA91_0 >= K_JSON && LA91_0 <= K_KEYS)||(LA91_0 >= K_KEYSPACES && LA91_0 <= K_LIKE)||(LA91_0 >= K_LIST && LA91_0 <= K_MAP)||LA91_0==K_NOLOGIN||LA91_0==K_NOSUPERUSER||LA91_0==K_OPTIONS||(LA91_0 >= K_PARTITION && LA91_0 <= K_PERMISSIONS)||LA91_0==K_RETURNS||(LA91_0 >= K_ROLE && LA91_0 <= K_ROLES)||(LA91_0 >= K_SFUNC && LA91_0 <= K_TINYINT)||LA91_0==K_TRIGGER||(LA91_0 >= K_TTL && LA91_0 <= K_TYPE)||(LA91_0 >= K_USER && LA91_0 <= K_USERS)||(LA91_0 >= K_UUID && LA91_0 <= K_VARINT)||LA91_0==K_WRITETIME||LA91_0==QUOTED_NAME) ) {
alt91=1;
}
switch (alt91) {
case 1 :
// Parser.g:720:56: indexIdent[targets] ( ',' indexIdent[targets] )*
{
pushFollow(FOLLOW_indexIdent_in_createIndexStatement4406);
indexIdent(targets);
state._fsp--;
// Parser.g:720:76: ( ',' indexIdent[targets] )*
loop90:
while (true) {
int alt90=2;
int LA90_0 = input.LA(1);
if ( (LA90_0==191) ) {
alt90=1;
}
switch (alt90) {
case 1 :
// Parser.g:720:77: ',' indexIdent[targets]
{
match(input,191,FOLLOW_191_in_createIndexStatement4410);
pushFollow(FOLLOW_indexIdent_in_createIndexStatement4412);
indexIdent(targets);
state._fsp--;
}
break;
default :
break loop90;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_createIndexStatement4419);
// Parser.g:721:9: ( K_USING cls= STRING_LITERAL )?
int alt92=2;
int LA92_0 = input.LA(1);
if ( (LA92_0==K_USING) ) {
alt92=1;
}
switch (alt92) {
case 1 :
// Parser.g:721:10: K_USING cls= STRING_LITERAL
{
match(input,K_USING,FOLLOW_K_USING_in_createIndexStatement4430);
cls=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_createIndexStatement4434);
props.customClass = (cls!=null?cls.getText():null);
}
break;
}
// Parser.g:722:9: ( K_WITH properties[props] )?
int alt93=2;
int LA93_0 = input.LA(1);
if ( (LA93_0==K_WITH) ) {
alt93=1;
}
switch (alt93) {
case 1 :
// Parser.g:722:10: K_WITH properties[props]
{
match(input,K_WITH,FOLLOW_K_WITH_in_createIndexStatement4449);
pushFollow(FOLLOW_properties_in_createIndexStatement4451);
properties(props);
state._fsp--;
}
break;
}
expr = new CreateIndexStatement(cf, name, targets, props, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createIndexStatement"
// $ANTLR start "indexIdent"
// Parser.g:726:1: indexIdent[List targets] : (c= cident | K_VALUES '(' c= cident ')' | K_KEYS '(' c= cident ')' | K_ENTRIES '(' c= cident ')' | K_FULL '(' c= cident ')' );
public final void indexIdent(List targets) throws RecognitionException {
ColumnDefinition.Raw c =null;
try {
// Parser.g:727:5: (c= cident | K_VALUES '(' c= cident ')' | K_KEYS '(' c= cident ')' | K_ENTRIES '(' c= cident ')' | K_FULL '(' c= cident ')' )
int alt94=5;
switch ( input.LA(1) ) {
case EMPTY_QUOTED_NAME:
case IDENT:
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
case QUOTED_NAME:
{
alt94=1;
}
break;
case K_VALUES:
{
int LA94_2 = input.LA(2);
if ( (LA94_2==187) ) {
alt94=2;
}
else if ( (LA94_2==188||LA94_2==191) ) {
alt94=1;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 94, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_KEYS:
{
int LA94_3 = input.LA(2);
if ( (LA94_3==187) ) {
alt94=3;
}
else if ( (LA94_3==188||LA94_3==191) ) {
alt94=1;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 94, 3, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_ENTRIES:
{
alt94=4;
}
break;
case K_FULL:
{
alt94=5;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 94, 0, input);
throw nvae;
}
switch (alt94) {
case 1 :
// Parser.g:727:7: c= cident
{
pushFollow(FOLLOW_cident_in_indexIdent4483);
c=cident();
state._fsp--;
targets.add(IndexTarget.Raw.simpleIndexOn(c));
}
break;
case 2 :
// Parser.g:728:7: K_VALUES '(' c= cident ')'
{
match(input,K_VALUES,FOLLOW_K_VALUES_in_indexIdent4511);
match(input,187,FOLLOW_187_in_indexIdent4513);
pushFollow(FOLLOW_cident_in_indexIdent4517);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_indexIdent4519);
targets.add(IndexTarget.Raw.valuesOf(c));
}
break;
case 3 :
// Parser.g:729:7: K_KEYS '(' c= cident ')'
{
match(input,K_KEYS,FOLLOW_K_KEYS_in_indexIdent4530);
match(input,187,FOLLOW_187_in_indexIdent4532);
pushFollow(FOLLOW_cident_in_indexIdent4536);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_indexIdent4538);
targets.add(IndexTarget.Raw.keysOf(c));
}
break;
case 4 :
// Parser.g:730:7: K_ENTRIES '(' c= cident ')'
{
match(input,K_ENTRIES,FOLLOW_K_ENTRIES_in_indexIdent4551);
match(input,187,FOLLOW_187_in_indexIdent4553);
pushFollow(FOLLOW_cident_in_indexIdent4557);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_indexIdent4559);
targets.add(IndexTarget.Raw.keysAndValuesOf(c));
}
break;
case 5 :
// Parser.g:731:7: K_FULL '(' c= cident ')'
{
match(input,K_FULL,FOLLOW_K_FULL_in_indexIdent4569);
match(input,187,FOLLOW_187_in_indexIdent4571);
pushFollow(FOLLOW_cident_in_indexIdent4575);
c=cident();
state._fsp--;
match(input,188,FOLLOW_188_in_indexIdent4577);
targets.add(IndexTarget.Raw.fullCollection(c));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "indexIdent"
// $ANTLR start "createMaterializedViewStatement"
// Parser.g:742:1: createMaterializedViewStatement returns [CreateViewStatement expr] : K_CREATE K_MATERIALIZED K_VIEW ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName K_AS K_SELECT sclause= selectClause K_FROM basecf= columnFamilyName ( K_WHERE wclause= whereClause )? K_PRIMARY K_KEY ( '(' '(' k1= cident ( ',' kn= cident )* ')' ( ',' c1= cident )* ')' | '(' k1= cident ( ',' cn= cident )* ')' ) ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )? ;
public final CreateViewStatement createMaterializedViewStatement() throws RecognitionException {
CreateViewStatement expr = null;
CFName cf =null;
List sclause =null;
CFName basecf =null;
WhereClause.Builder wclause =null;
ColumnDefinition.Raw k1 =null;
ColumnDefinition.Raw kn =null;
ColumnDefinition.Raw c1 =null;
ColumnDefinition.Raw cn =null;
boolean ifNotExists = false;
List partitionKeys = new ArrayList<>();
List compositeKeys = new ArrayList<>();
try {
// Parser.g:748:5: ( K_CREATE K_MATERIALIZED K_VIEW ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName K_AS K_SELECT sclause= selectClause K_FROM basecf= columnFamilyName ( K_WHERE wclause= whereClause )? K_PRIMARY K_KEY ( '(' '(' k1= cident ( ',' kn= cident )* ')' ( ',' c1= cident )* ')' | '(' k1= cident ( ',' cn= cident )* ')' ) ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )? )
// Parser.g:748:7: K_CREATE K_MATERIALIZED K_VIEW ( K_IF K_NOT K_EXISTS )? cf= columnFamilyName K_AS K_SELECT sclause= selectClause K_FROM basecf= columnFamilyName ( K_WHERE wclause= whereClause )? K_PRIMARY K_KEY ( '(' '(' k1= cident ( ',' kn= cident )* ')' ( ',' c1= cident )* ')' | '(' k1= cident ( ',' cn= cident )* ')' ) ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )?
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createMaterializedViewStatement4614);
match(input,K_MATERIALIZED,FOLLOW_K_MATERIALIZED_in_createMaterializedViewStatement4616);
match(input,K_VIEW,FOLLOW_K_VIEW_in_createMaterializedViewStatement4618);
// Parser.g:748:38: ( K_IF K_NOT K_EXISTS )?
int alt95=2;
int LA95_0 = input.LA(1);
if ( (LA95_0==K_IF) ) {
alt95=1;
}
switch (alt95) {
case 1 :
// Parser.g:748:39: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createMaterializedViewStatement4621);
match(input,K_NOT,FOLLOW_K_NOT_in_createMaterializedViewStatement4623);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createMaterializedViewStatement4625);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_createMaterializedViewStatement4633);
cf=columnFamilyName();
state._fsp--;
match(input,K_AS,FOLLOW_K_AS_in_createMaterializedViewStatement4635);
match(input,K_SELECT,FOLLOW_K_SELECT_in_createMaterializedViewStatement4645);
pushFollow(FOLLOW_selectClause_in_createMaterializedViewStatement4649);
sclause=selectClause();
state._fsp--;
match(input,K_FROM,FOLLOW_K_FROM_in_createMaterializedViewStatement4651);
pushFollow(FOLLOW_columnFamilyName_in_createMaterializedViewStatement4655);
basecf=columnFamilyName();
state._fsp--;
// Parser.g:750:9: ( K_WHERE wclause= whereClause )?
int alt96=2;
int LA96_0 = input.LA(1);
if ( (LA96_0==K_WHERE) ) {
alt96=1;
}
switch (alt96) {
case 1 :
// Parser.g:750:10: K_WHERE wclause= whereClause
{
match(input,K_WHERE,FOLLOW_K_WHERE_in_createMaterializedViewStatement4666);
pushFollow(FOLLOW_whereClause_in_createMaterializedViewStatement4670);
wclause=whereClause();
state._fsp--;
}
break;
}
match(input,K_PRIMARY,FOLLOW_K_PRIMARY_in_createMaterializedViewStatement4682);
match(input,K_KEY,FOLLOW_K_KEY_in_createMaterializedViewStatement4684);
// Parser.g:751:25: ( '(' '(' k1= cident ( ',' kn= cident )* ')' ( ',' c1= cident )* ')' | '(' k1= cident ( ',' cn= cident )* ')' )
int alt100=2;
int LA100_0 = input.LA(1);
if ( (LA100_0==187) ) {
int LA100_1 = input.LA(2);
if ( (LA100_1==187) ) {
alt100=1;
}
else if ( (LA100_1==EMPTY_QUOTED_NAME||LA100_1==IDENT||(LA100_1 >= K_AGGREGATE && LA100_1 <= K_ALL)||LA100_1==K_AS||LA100_1==K_ASCII||(LA100_1 >= K_BIGINT && LA100_1 <= K_BOOLEAN)||(LA100_1 >= K_CALLED && LA100_1 <= K_CLUSTERING)||(LA100_1 >= K_COMPACT && LA100_1 <= K_COUNTER)||(LA100_1 >= K_CUSTOM && LA100_1 <= K_DECIMAL)||(LA100_1 >= K_DISTINCT && LA100_1 <= K_DOUBLE)||LA100_1==K_DURATION||(LA100_1 >= K_EXISTS && LA100_1 <= K_FLOAT)||LA100_1==K_FROZEN||(LA100_1 >= K_FUNCTION && LA100_1 <= K_FUNCTIONS)||LA100_1==K_GROUP||LA100_1==K_INET||(LA100_1 >= K_INITCOND && LA100_1 <= K_INPUT)||LA100_1==K_INT||(LA100_1 >= K_JSON && LA100_1 <= K_KEYS)||(LA100_1 >= K_KEYSPACES && LA100_1 <= K_LIKE)||(LA100_1 >= K_LIST && LA100_1 <= K_MAP)||LA100_1==K_NOLOGIN||LA100_1==K_NOSUPERUSER||LA100_1==K_OPTIONS||(LA100_1 >= K_PARTITION && LA100_1 <= K_PERMISSIONS)||LA100_1==K_RETURNS||(LA100_1 >= K_ROLE && LA100_1 <= K_ROLES)||(LA100_1 >= K_SFUNC && LA100_1 <= K_TINYINT)||LA100_1==K_TRIGGER||(LA100_1 >= K_TTL && LA100_1 <= K_TYPE)||(LA100_1 >= K_USER && LA100_1 <= K_USERS)||(LA100_1 >= K_UUID && LA100_1 <= K_VARINT)||LA100_1==K_WRITETIME||LA100_1==QUOTED_NAME) ) {
alt100=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 100, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 100, 0, input);
throw nvae;
}
switch (alt100) {
case 1 :
// Parser.g:752:9: '(' '(' k1= cident ( ',' kn= cident )* ')' ( ',' c1= cident )* ')'
{
match(input,187,FOLLOW_187_in_createMaterializedViewStatement4696);
match(input,187,FOLLOW_187_in_createMaterializedViewStatement4698);
pushFollow(FOLLOW_cident_in_createMaterializedViewStatement4702);
k1=cident();
state._fsp--;
partitionKeys.add(k1);
// Parser.g:752:54: ( ',' kn= cident )*
loop97:
while (true) {
int alt97=2;
int LA97_0 = input.LA(1);
if ( (LA97_0==191) ) {
alt97=1;
}
switch (alt97) {
case 1 :
// Parser.g:752:56: ',' kn= cident
{
match(input,191,FOLLOW_191_in_createMaterializedViewStatement4708);
pushFollow(FOLLOW_cident_in_createMaterializedViewStatement4712);
kn=cident();
state._fsp--;
partitionKeys.add(kn);
}
break;
default :
break loop97;
}
}
match(input,188,FOLLOW_188_in_createMaterializedViewStatement4719);
// Parser.g:752:104: ( ',' c1= cident )*
loop98:
while (true) {
int alt98=2;
int LA98_0 = input.LA(1);
if ( (LA98_0==191) ) {
alt98=1;
}
switch (alt98) {
case 1 :
// Parser.g:752:106: ',' c1= cident
{
match(input,191,FOLLOW_191_in_createMaterializedViewStatement4723);
pushFollow(FOLLOW_cident_in_createMaterializedViewStatement4727);
c1=cident();
state._fsp--;
compositeKeys.add(c1);
}
break;
default :
break loop98;
}
}
match(input,188,FOLLOW_188_in_createMaterializedViewStatement4734);
}
break;
case 2 :
// Parser.g:753:9: '(' k1= cident ( ',' cn= cident )* ')'
{
match(input,187,FOLLOW_187_in_createMaterializedViewStatement4744);
pushFollow(FOLLOW_cident_in_createMaterializedViewStatement4748);
k1=cident();
state._fsp--;
partitionKeys.add(k1);
// Parser.g:753:50: ( ',' cn= cident )*
loop99:
while (true) {
int alt99=2;
int LA99_0 = input.LA(1);
if ( (LA99_0==191) ) {
alt99=1;
}
switch (alt99) {
case 1 :
// Parser.g:753:52: ',' cn= cident
{
match(input,191,FOLLOW_191_in_createMaterializedViewStatement4754);
pushFollow(FOLLOW_cident_in_createMaterializedViewStatement4758);
cn=cident();
state._fsp--;
compositeKeys.add(cn);
}
break;
default :
break loop99;
}
}
match(input,188,FOLLOW_188_in_createMaterializedViewStatement4765);
}
break;
}
WhereClause where = wclause == null ? WhereClause.empty() : wclause.build();
expr = new CreateViewStatement(cf, basecf, sclause, where, partitionKeys, compositeKeys, ifNotExists);
// Parser.g:759:9: ( K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )* )?
int alt102=2;
int LA102_0 = input.LA(1);
if ( (LA102_0==K_WITH) ) {
alt102=1;
}
switch (alt102) {
case 1 :
// Parser.g:759:11: K_WITH cfamProperty[expr.properties] ( K_AND cfamProperty[expr.properties] )*
{
match(input,K_WITH,FOLLOW_K_WITH_in_createMaterializedViewStatement4797);
pushFollow(FOLLOW_cfamProperty_in_createMaterializedViewStatement4799);
cfamProperty(expr.properties);
state._fsp--;
// Parser.g:759:48: ( K_AND cfamProperty[expr.properties] )*
loop101:
while (true) {
int alt101=2;
int LA101_0 = input.LA(1);
if ( (LA101_0==K_AND) ) {
alt101=1;
}
switch (alt101) {
case 1 :
// Parser.g:759:50: K_AND cfamProperty[expr.properties]
{
match(input,K_AND,FOLLOW_K_AND_in_createMaterializedViewStatement4804);
pushFollow(FOLLOW_cfamProperty_in_createMaterializedViewStatement4806);
cfamProperty(expr.properties);
state._fsp--;
}
break;
default :
break loop101;
}
}
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createMaterializedViewStatement"
// $ANTLR start "createTriggerStatement"
// Parser.g:765:1: createTriggerStatement returns [CreateTriggerStatement expr] : K_CREATE K_TRIGGER ( K_IF K_NOT K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName K_USING cls= STRING_LITERAL ;
public final CreateTriggerStatement createTriggerStatement() throws RecognitionException {
CreateTriggerStatement expr = null;
Token cls=null;
ColumnIdentifier name =null;
CFName cf =null;
boolean ifNotExists = false;
try {
// Parser.g:769:5: ( K_CREATE K_TRIGGER ( K_IF K_NOT K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName K_USING cls= STRING_LITERAL )
// Parser.g:769:7: K_CREATE K_TRIGGER ( K_IF K_NOT K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName K_USING cls= STRING_LITERAL
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createTriggerStatement4844);
match(input,K_TRIGGER,FOLLOW_K_TRIGGER_in_createTriggerStatement4846);
// Parser.g:769:26: ( K_IF K_NOT K_EXISTS )?
int alt103=2;
int LA103_0 = input.LA(1);
if ( (LA103_0==K_IF) ) {
alt103=1;
}
switch (alt103) {
case 1 :
// Parser.g:769:27: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createTriggerStatement4849);
match(input,K_NOT,FOLLOW_K_NOT_in_createTriggerStatement4851);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createTriggerStatement4853);
ifNotExists = true;
}
break;
}
// Parser.g:769:74: (name= ident )
// Parser.g:769:75: name= ident
{
pushFollow(FOLLOW_ident_in_createTriggerStatement4863);
name=ident();
state._fsp--;
}
match(input,K_ON,FOLLOW_K_ON_in_createTriggerStatement4874);
pushFollow(FOLLOW_columnFamilyName_in_createTriggerStatement4878);
cf=columnFamilyName();
state._fsp--;
match(input,K_USING,FOLLOW_K_USING_in_createTriggerStatement4880);
cls=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_createTriggerStatement4884);
expr = new CreateTriggerStatement(cf, name.toString(), (cls!=null?cls.getText():null), ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "createTriggerStatement"
// $ANTLR start "dropTriggerStatement"
// Parser.g:777:1: dropTriggerStatement returns [DropTriggerStatement expr] : K_DROP K_TRIGGER ( K_IF K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName ;
public final DropTriggerStatement dropTriggerStatement() throws RecognitionException {
DropTriggerStatement expr = null;
ColumnIdentifier name =null;
CFName cf =null;
boolean ifExists = false;
try {
// Parser.g:779:5: ( K_DROP K_TRIGGER ( K_IF K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName )
// Parser.g:779:7: K_DROP K_TRIGGER ( K_IF K_EXISTS )? (name= ident ) K_ON cf= columnFamilyName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropTriggerStatement4925);
match(input,K_TRIGGER,FOLLOW_K_TRIGGER_in_dropTriggerStatement4927);
// Parser.g:779:24: ( K_IF K_EXISTS )?
int alt104=2;
int LA104_0 = input.LA(1);
if ( (LA104_0==K_IF) ) {
alt104=1;
}
switch (alt104) {
case 1 :
// Parser.g:779:25: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropTriggerStatement4930);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropTriggerStatement4932);
ifExists = true;
}
break;
}
// Parser.g:779:63: (name= ident )
// Parser.g:779:64: name= ident
{
pushFollow(FOLLOW_ident_in_dropTriggerStatement4942);
name=ident();
state._fsp--;
}
match(input,K_ON,FOLLOW_K_ON_in_dropTriggerStatement4945);
pushFollow(FOLLOW_columnFamilyName_in_dropTriggerStatement4949);
cf=columnFamilyName();
state._fsp--;
expr = new DropTriggerStatement(cf, name.toString(), ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "dropTriggerStatement"
// $ANTLR start "alterKeyspaceStatement"
// Parser.g:786:1: alterKeyspaceStatement returns [AlterKeyspaceStatement expr] : K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] ;
public final AlterKeyspaceStatement alterKeyspaceStatement() throws RecognitionException {
AlterKeyspaceStatement expr = null;
String ks =null;
KeyspaceAttributes attrs = new KeyspaceAttributes();
try {
// Parser.g:788:5: ( K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs] )
// Parser.g:788:7: K_ALTER K_KEYSPACE ks= keyspaceName K_WITH properties[attrs]
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterKeyspaceStatement4989);
match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement4991);
pushFollow(FOLLOW_keyspaceName_in_alterKeyspaceStatement4995);
ks=keyspaceName();
state._fsp--;
match(input,K_WITH,FOLLOW_K_WITH_in_alterKeyspaceStatement5005);
pushFollow(FOLLOW_properties_in_alterKeyspaceStatement5007);
properties(attrs);
state._fsp--;
expr = new AlterKeyspaceStatement(ks, attrs);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "alterKeyspaceStatement"
// $ANTLR start "alterTableStatement"
// Parser.g:799:1: alterTableStatement returns [AlterTableStatement expr] : K_ALTER K_COLUMNFAMILY cf= columnFamilyName ( K_ALTER id= schema_cident K_TYPE v= comparatorType | K_ADD ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) ) | K_DROP K_COMPACT K_STORAGE | K_DROP ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? ) | K_WITH properties[attrs] | K_RENAME id1= schema_cident K_TO toId1= schema_cident ( K_AND idn= schema_cident K_TO toIdn= schema_cident )* ) ;
public final AlterTableStatement alterTableStatement() throws RecognitionException {
AlterTableStatement expr = null;
Token t=null;
CFName cf =null;
ColumnDefinition.Raw id =null;
CQL3Type.Raw v =null;
ColumnDefinition.Raw aid =null;
boolean b1 =false;
ColumnDefinition.Raw id1 =null;
CQL3Type.Raw v1 =null;
ColumnDefinition.Raw idn =null;
CQL3Type.Raw vn =null;
boolean bn =false;
ColumnDefinition.Raw toId1 =null;
ColumnDefinition.Raw toIdn =null;
AlterTableStatement.Type type = null;
TableAttributes attrs = new TableAttributes();
Map renames = new HashMap();
List colNameList = new ArrayList();
Long deleteTimestamp = null;
try {
// Parser.g:807:5: ( K_ALTER K_COLUMNFAMILY cf= columnFamilyName ( K_ALTER id= schema_cident K_TYPE v= comparatorType | K_ADD ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) ) | K_DROP K_COMPACT K_STORAGE | K_DROP ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? ) | K_WITH properties[attrs] | K_RENAME id1= schema_cident K_TO toId1= schema_cident ( K_AND idn= schema_cident K_TO toIdn= schema_cident )* ) )
// Parser.g:807:7: K_ALTER K_COLUMNFAMILY cf= columnFamilyName ( K_ALTER id= schema_cident K_TYPE v= comparatorType | K_ADD ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) ) | K_DROP K_COMPACT K_STORAGE | K_DROP ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? ) | K_WITH properties[attrs] | K_RENAME id1= schema_cident K_TO toId1= schema_cident ( K_AND idn= schema_cident K_TO toIdn= schema_cident )* )
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterTableStatement5042);
match(input,K_COLUMNFAMILY,FOLLOW_K_COLUMNFAMILY_in_alterTableStatement5044);
pushFollow(FOLLOW_columnFamilyName_in_alterTableStatement5048);
cf=columnFamilyName();
state._fsp--;
// Parser.g:808:11: ( K_ALTER id= schema_cident K_TYPE v= comparatorType | K_ADD ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) ) | K_DROP K_COMPACT K_STORAGE | K_DROP ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? ) | K_WITH properties[attrs] | K_RENAME id1= schema_cident K_TO toId1= schema_cident ( K_AND idn= schema_cident K_TO toIdn= schema_cident )* )
int alt111=6;
switch ( input.LA(1) ) {
case K_ALTER:
{
alt111=1;
}
break;
case K_ADD:
{
alt111=2;
}
break;
case K_DROP:
{
int LA111_3 = input.LA(2);
if ( (LA111_3==K_COMPACT) ) {
int LA111_6 = input.LA(3);
if ( (LA111_6==K_STORAGE) ) {
alt111=3;
}
else if ( (LA111_6==EOF||LA111_6==K_USING||LA111_6==196) ) {
alt111=4;
}
else {
int nvaeMark = input.mark();
try {
for (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {
input.consume();
}
NoViableAltException nvae =
new NoViableAltException("", 111, 6, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA111_3==IDENT||(LA111_3 >= K_AGGREGATE && LA111_3 <= K_ALL)||LA111_3==K_AS||LA111_3==K_ASCII||(LA111_3 >= K_BIGINT && LA111_3 <= K_BOOLEAN)||(LA111_3 >= K_CALLED && LA111_3 <= K_CLUSTERING)||(LA111_3 >= K_CONTAINS && LA111_3 <= K_COUNTER)||(LA111_3 >= K_CUSTOM && LA111_3 <= K_DECIMAL)||(LA111_3 >= K_DISTINCT && LA111_3 <= K_DOUBLE)||LA111_3==K_DURATION||(LA111_3 >= K_EXISTS && LA111_3 <= K_FLOAT)||LA111_3==K_FROZEN||(LA111_3 >= K_FUNCTION && LA111_3 <= K_FUNCTIONS)||LA111_3==K_GROUP||LA111_3==K_INET||(LA111_3 >= K_INITCOND && LA111_3 <= K_INPUT)||LA111_3==K_INT||(LA111_3 >= K_JSON && LA111_3 <= K_KEYS)||(LA111_3 >= K_KEYSPACES && LA111_3 <= K_LIKE)||(LA111_3 >= K_LIST && LA111_3 <= K_MAP)||LA111_3==K_NOLOGIN||LA111_3==K_NOSUPERUSER||LA111_3==K_OPTIONS||(LA111_3 >= K_PARTITION && LA111_3 <= K_PERMISSIONS)||LA111_3==K_RETURNS||(LA111_3 >= K_ROLE && LA111_3 <= K_ROLES)||(LA111_3 >= K_SFUNC && LA111_3 <= K_TINYINT)||LA111_3==K_TRIGGER||(LA111_3 >= K_TTL && LA111_3 <= K_TYPE)||(LA111_3 >= K_USER && LA111_3 <= K_USERS)||(LA111_3 >= K_UUID && LA111_3 <= K_VARINT)||LA111_3==K_WRITETIME||LA111_3==QUOTED_NAME||LA111_3==187) ) {
alt111=4;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 111, 3, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_WITH:
{
alt111=5;
}
break;
case K_RENAME:
{
alt111=6;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 111, 0, input);
throw nvae;
}
switch (alt111) {
case 1 :
// Parser.g:808:13: K_ALTER id= schema_cident K_TYPE v= comparatorType
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterTableStatement5062);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5066);
id=schema_cident();
state._fsp--;
match(input,K_TYPE,FOLLOW_K_TYPE_in_alterTableStatement5069);
pushFollow(FOLLOW_comparatorType_in_alterTableStatement5073);
v=comparatorType();
state._fsp--;
type = AlterTableStatement.Type.ALTER;
colNameList.add(new AlterTableStatementColumn(id,v));
}
break;
case 2 :
// Parser.g:809:13: K_ADD ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) )
{
match(input,K_ADD,FOLLOW_K_ADD_in_alterTableStatement5092);
// Parser.g:809:20: ( (aid= schema_cident v= comparatorType b1= cfisStatic ) | ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' ) )
int alt106=2;
int LA106_0 = input.LA(1);
if ( (LA106_0==IDENT||(LA106_0 >= K_AGGREGATE && LA106_0 <= K_ALL)||LA106_0==K_AS||LA106_0==K_ASCII||(LA106_0 >= K_BIGINT && LA106_0 <= K_BOOLEAN)||(LA106_0 >= K_CALLED && LA106_0 <= K_CLUSTERING)||(LA106_0 >= K_COMPACT && LA106_0 <= K_COUNTER)||(LA106_0 >= K_CUSTOM && LA106_0 <= K_DECIMAL)||(LA106_0 >= K_DISTINCT && LA106_0 <= K_DOUBLE)||LA106_0==K_DURATION||(LA106_0 >= K_EXISTS && LA106_0 <= K_FLOAT)||LA106_0==K_FROZEN||(LA106_0 >= K_FUNCTION && LA106_0 <= K_FUNCTIONS)||LA106_0==K_GROUP||LA106_0==K_INET||(LA106_0 >= K_INITCOND && LA106_0 <= K_INPUT)||LA106_0==K_INT||(LA106_0 >= K_JSON && LA106_0 <= K_KEYS)||(LA106_0 >= K_KEYSPACES && LA106_0 <= K_LIKE)||(LA106_0 >= K_LIST && LA106_0 <= K_MAP)||LA106_0==K_NOLOGIN||LA106_0==K_NOSUPERUSER||LA106_0==K_OPTIONS||(LA106_0 >= K_PARTITION && LA106_0 <= K_PERMISSIONS)||LA106_0==K_RETURNS||(LA106_0 >= K_ROLE && LA106_0 <= K_ROLES)||(LA106_0 >= K_SFUNC && LA106_0 <= K_TINYINT)||LA106_0==K_TRIGGER||(LA106_0 >= K_TTL && LA106_0 <= K_TYPE)||(LA106_0 >= K_USER && LA106_0 <= K_USERS)||(LA106_0 >= K_UUID && LA106_0 <= K_VARINT)||LA106_0==K_WRITETIME||LA106_0==QUOTED_NAME) ) {
alt106=1;
}
else if ( (LA106_0==187) ) {
alt106=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 106, 0, input);
throw nvae;
}
switch (alt106) {
case 1 :
// Parser.g:809:29: (aid= schema_cident v= comparatorType b1= cfisStatic )
{
// Parser.g:809:29: (aid= schema_cident v= comparatorType b1= cfisStatic )
// Parser.g:809:30: aid= schema_cident v= comparatorType b1= cfisStatic
{
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5107);
aid=schema_cident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_alterTableStatement5112);
v=comparatorType();
state._fsp--;
pushFollow(FOLLOW_cfisStatic_in_alterTableStatement5118);
b1=cfisStatic();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(aid,v,b1));
}
}
break;
case 2 :
// Parser.g:810:24: ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' )
{
// Parser.g:810:24: ( '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')' )
// Parser.g:810:25: '(' id1= schema_cident v1= comparatorType b1= cfisStatic ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )* ')'
{
match(input,187,FOLLOW_187_in_alterTableStatement5147);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5152);
id1=schema_cident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_alterTableStatement5157);
v1=comparatorType();
state._fsp--;
pushFollow(FOLLOW_cfisStatic_in_alterTableStatement5162);
b1=cfisStatic();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(id1,v1,b1));
// Parser.g:811:24: ( ',' idn= schema_cident vn= comparatorType bn= cfisStatic )*
loop105:
while (true) {
int alt105=2;
int LA105_0 = input.LA(1);
if ( (LA105_0==191) ) {
alt105=1;
}
switch (alt105) {
case 1 :
// Parser.g:811:26: ',' idn= schema_cident vn= comparatorType bn= cfisStatic
{
match(input,191,FOLLOW_191_in_alterTableStatement5191);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5195);
idn=schema_cident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_alterTableStatement5200);
vn=comparatorType();
state._fsp--;
pushFollow(FOLLOW_cfisStatic_in_alterTableStatement5205);
bn=cfisStatic();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(idn,vn,bn));
}
break;
default :
break loop105;
}
}
match(input,188,FOLLOW_188_in_alterTableStatement5212);
}
}
break;
}
type = AlterTableStatement.Type.ADD;
}
break;
case 3 :
// Parser.g:812:13: K_DROP K_COMPACT K_STORAGE
{
match(input,K_DROP,FOLLOW_K_DROP_in_alterTableStatement5232);
match(input,K_COMPACT,FOLLOW_K_COMPACT_in_alterTableStatement5234);
match(input,K_STORAGE,FOLLOW_K_STORAGE_in_alterTableStatement5236);
type = AlterTableStatement.Type.DROP_COMPACT_STORAGE;
}
break;
case 4 :
// Parser.g:813:13: K_DROP ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? )
{
match(input,K_DROP,FOLLOW_K_DROP_in_alterTableStatement5269);
// Parser.g:813:20: ( (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )? )
// Parser.g:813:22: (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) ) ( K_USING K_TIMESTAMP t= INTEGER )?
{
// Parser.g:813:22: (id= schema_cident | ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' ) )
int alt108=2;
int LA108_0 = input.LA(1);
if ( (LA108_0==IDENT||(LA108_0 >= K_AGGREGATE && LA108_0 <= K_ALL)||LA108_0==K_AS||LA108_0==K_ASCII||(LA108_0 >= K_BIGINT && LA108_0 <= K_BOOLEAN)||(LA108_0 >= K_CALLED && LA108_0 <= K_CLUSTERING)||(LA108_0 >= K_COMPACT && LA108_0 <= K_COUNTER)||(LA108_0 >= K_CUSTOM && LA108_0 <= K_DECIMAL)||(LA108_0 >= K_DISTINCT && LA108_0 <= K_DOUBLE)||LA108_0==K_DURATION||(LA108_0 >= K_EXISTS && LA108_0 <= K_FLOAT)||LA108_0==K_FROZEN||(LA108_0 >= K_FUNCTION && LA108_0 <= K_FUNCTIONS)||LA108_0==K_GROUP||LA108_0==K_INET||(LA108_0 >= K_INITCOND && LA108_0 <= K_INPUT)||LA108_0==K_INT||(LA108_0 >= K_JSON && LA108_0 <= K_KEYS)||(LA108_0 >= K_KEYSPACES && LA108_0 <= K_LIKE)||(LA108_0 >= K_LIST && LA108_0 <= K_MAP)||LA108_0==K_NOLOGIN||LA108_0==K_NOSUPERUSER||LA108_0==K_OPTIONS||(LA108_0 >= K_PARTITION && LA108_0 <= K_PERMISSIONS)||LA108_0==K_RETURNS||(LA108_0 >= K_ROLE && LA108_0 <= K_ROLES)||(LA108_0 >= K_SFUNC && LA108_0 <= K_TINYINT)||LA108_0==K_TRIGGER||(LA108_0 >= K_TTL && LA108_0 <= K_TYPE)||(LA108_0 >= K_USER && LA108_0 <= K_USERS)||(LA108_0 >= K_UUID && LA108_0 <= K_VARINT)||LA108_0==K_WRITETIME||LA108_0==QUOTED_NAME) ) {
alt108=1;
}
else if ( (LA108_0==187) ) {
alt108=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 108, 0, input);
throw nvae;
}
switch (alt108) {
case 1 :
// Parser.g:813:31: id= schema_cident
{
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5284);
id=schema_cident();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(id));
}
break;
case 2 :
// Parser.g:814:25: ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' )
{
// Parser.g:814:25: ( '(' id1= schema_cident ( ',' idn= schema_cident )* ')' )
// Parser.g:814:26: '(' id1= schema_cident ( ',' idn= schema_cident )* ')'
{
match(input,187,FOLLOW_187_in_alterTableStatement5314);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5319);
id1=schema_cident();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(id1));
// Parser.g:815:25: ( ',' idn= schema_cident )*
loop107:
while (true) {
int alt107=2;
int LA107_0 = input.LA(1);
if ( (LA107_0==191) ) {
alt107=1;
}
switch (alt107) {
case 1 :
// Parser.g:815:27: ',' idn= schema_cident
{
match(input,191,FOLLOW_191_in_alterTableStatement5349);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5353);
idn=schema_cident();
state._fsp--;
colNameList.add(new AlterTableStatementColumn(idn));
}
break;
default :
break loop107;
}
}
match(input,188,FOLLOW_188_in_alterTableStatement5360);
}
}
break;
}
// Parser.g:816:22: ( K_USING K_TIMESTAMP t= INTEGER )?
int alt109=2;
int LA109_0 = input.LA(1);
if ( (LA109_0==K_USING) ) {
alt109=1;
}
switch (alt109) {
case 1 :
// Parser.g:816:24: K_USING K_TIMESTAMP t= INTEGER
{
match(input,K_USING,FOLLOW_K_USING_in_alterTableStatement5388);
match(input,K_TIMESTAMP,FOLLOW_K_TIMESTAMP_in_alterTableStatement5390);
t=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_alterTableStatement5394);
deleteTimestamp = Long.parseLong(Constants.Literal.integer((t!=null?t.getText():null)).getText());
}
break;
}
}
type = AlterTableStatement.Type.DROP;
}
break;
case 5 :
// Parser.g:817:13: K_WITH properties[attrs]
{
match(input,K_WITH,FOLLOW_K_WITH_in_alterTableStatement5416);
pushFollow(FOLLOW_properties_in_alterTableStatement5419);
properties(attrs);
state._fsp--;
type = AlterTableStatement.Type.OPTS;
}
break;
case 6 :
// Parser.g:818:13: K_RENAME id1= schema_cident K_TO toId1= schema_cident ( K_AND idn= schema_cident K_TO toIdn= schema_cident )*
{
match(input,K_RENAME,FOLLOW_K_RENAME_in_alterTableStatement5452);
type = AlterTableStatement.Type.RENAME;
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5506);
id1=schema_cident();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_alterTableStatement5508);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5512);
toId1=schema_cident();
state._fsp--;
renames.put(id1, toId1);
// Parser.g:820:16: ( K_AND idn= schema_cident K_TO toIdn= schema_cident )*
loop110:
while (true) {
int alt110=2;
int LA110_0 = input.LA(1);
if ( (LA110_0==K_AND) ) {
alt110=1;
}
switch (alt110) {
case 1 :
// Parser.g:820:18: K_AND idn= schema_cident K_TO toIdn= schema_cident
{
match(input,K_AND,FOLLOW_K_AND_in_alterTableStatement5533);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5537);
idn=schema_cident();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_alterTableStatement5539);
pushFollow(FOLLOW_schema_cident_in_alterTableStatement5543);
toIdn=schema_cident();
state._fsp--;
renames.put(idn, toIdn);
}
break;
default :
break loop110;
}
}
}
break;
}
expr = new AlterTableStatement(cf, type, colNameList, attrs, renames, deleteTimestamp);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "alterTableStatement"
// $ANTLR start "cfisStatic"
// Parser.g:827:1: cfisStatic returns [boolean isStaticColumn] : ( K_STATIC )? ;
public final boolean cfisStatic() throws RecognitionException {
boolean isStaticColumn = false;
boolean isStatic = false;
try {
// Parser.g:831:5: ( ( K_STATIC )? )
// Parser.g:831:7: ( K_STATIC )?
{
// Parser.g:831:7: ( K_STATIC )?
int alt112=2;
int LA112_0 = input.LA(1);
if ( (LA112_0==K_STATIC) ) {
alt112=1;
}
switch (alt112) {
case 1 :
// Parser.g:831:8: K_STATIC
{
match(input,K_STATIC,FOLLOW_K_STATIC_in_cfisStatic5596);
isStatic=true;
}
break;
}
isStaticColumn = isStatic;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return isStaticColumn;
}
// $ANTLR end "cfisStatic"
// $ANTLR start "alterMaterializedViewStatement"
// Parser.g:835:1: alterMaterializedViewStatement returns [AlterViewStatement expr] : K_ALTER K_MATERIALIZED K_VIEW name= columnFamilyName K_WITH properties[attrs] ;
public final AlterViewStatement alterMaterializedViewStatement() throws RecognitionException {
AlterViewStatement expr = null;
CFName name =null;
TableAttributes attrs = new TableAttributes();
try {
// Parser.g:839:5: ( K_ALTER K_MATERIALIZED K_VIEW name= columnFamilyName K_WITH properties[attrs] )
// Parser.g:839:7: K_ALTER K_MATERIALIZED K_VIEW name= columnFamilyName K_WITH properties[attrs]
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterMaterializedViewStatement5632);
match(input,K_MATERIALIZED,FOLLOW_K_MATERIALIZED_in_alterMaterializedViewStatement5634);
match(input,K_VIEW,FOLLOW_K_VIEW_in_alterMaterializedViewStatement5636);
pushFollow(FOLLOW_columnFamilyName_in_alterMaterializedViewStatement5640);
name=columnFamilyName();
state._fsp--;
match(input,K_WITH,FOLLOW_K_WITH_in_alterMaterializedViewStatement5652);
pushFollow(FOLLOW_properties_in_alterMaterializedViewStatement5654);
properties(attrs);
state._fsp--;
expr = new AlterViewStatement(name, attrs);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "alterMaterializedViewStatement"
// $ANTLR start "alterTypeStatement"
// Parser.g:852:1: alterTypeStatement returns [AlterTypeStatement expr] : K_ALTER K_TYPE name= userTypeName ( K_ALTER f= fident K_TYPE v= comparatorType | K_ADD f= fident v= comparatorType | K_RENAME id1= fident K_TO toId1= fident ( K_AND idn= fident K_TO toIdn= fident )* ) ;
public final AlterTypeStatement alterTypeStatement() throws RecognitionException {
AlterTypeStatement expr = null;
UTName name =null;
FieldIdentifier f =null;
CQL3Type.Raw v =null;
FieldIdentifier id1 =null;
FieldIdentifier toId1 =null;
FieldIdentifier idn =null;
FieldIdentifier toIdn =null;
try {
// Parser.g:853:5: ( K_ALTER K_TYPE name= userTypeName ( K_ALTER f= fident K_TYPE v= comparatorType | K_ADD f= fident v= comparatorType | K_RENAME id1= fident K_TO toId1= fident ( K_AND idn= fident K_TO toIdn= fident )* ) )
// Parser.g:853:7: K_ALTER K_TYPE name= userTypeName ( K_ALTER f= fident K_TYPE v= comparatorType | K_ADD f= fident v= comparatorType | K_RENAME id1= fident K_TO toId1= fident ( K_AND idn= fident K_TO toIdn= fident )* )
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterTypeStatement5685);
match(input,K_TYPE,FOLLOW_K_TYPE_in_alterTypeStatement5687);
pushFollow(FOLLOW_userTypeName_in_alterTypeStatement5691);
name=userTypeName();
state._fsp--;
// Parser.g:854:11: ( K_ALTER f= fident K_TYPE v= comparatorType | K_ADD f= fident v= comparatorType | K_RENAME id1= fident K_TO toId1= fident ( K_AND idn= fident K_TO toIdn= fident )* )
int alt114=3;
switch ( input.LA(1) ) {
case K_ALTER:
{
alt114=1;
}
break;
case K_ADD:
{
alt114=2;
}
break;
case K_RENAME:
{
alt114=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 114, 0, input);
throw nvae;
}
switch (alt114) {
case 1 :
// Parser.g:854:13: K_ALTER f= fident K_TYPE v= comparatorType
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterTypeStatement5705);
pushFollow(FOLLOW_fident_in_alterTypeStatement5709);
f=fident();
state._fsp--;
match(input,K_TYPE,FOLLOW_K_TYPE_in_alterTypeStatement5711);
pushFollow(FOLLOW_comparatorType_in_alterTypeStatement5715);
v=comparatorType();
state._fsp--;
expr = AlterTypeStatement.alter(name, f, v);
}
break;
case 2 :
// Parser.g:855:13: K_ADD f= fident v= comparatorType
{
match(input,K_ADD,FOLLOW_K_ADD_in_alterTypeStatement5731);
pushFollow(FOLLOW_fident_in_alterTypeStatement5737);
f=fident();
state._fsp--;
pushFollow(FOLLOW_comparatorType_in_alterTypeStatement5741);
v=comparatorType();
state._fsp--;
expr = AlterTypeStatement.addition(name, f, v);
}
break;
case 3 :
// Parser.g:856:13: K_RENAME id1= fident K_TO toId1= fident ( K_AND idn= fident K_TO toIdn= fident )*
{
match(input,K_RENAME,FOLLOW_K_RENAME_in_alterTypeStatement5764);
Map renames = new HashMap<>();
pushFollow(FOLLOW_fident_in_alterTypeStatement5802);
id1=fident();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_alterTypeStatement5804);
pushFollow(FOLLOW_fident_in_alterTypeStatement5808);
toId1=fident();
state._fsp--;
renames.put(id1, toId1);
// Parser.g:859:18: ( K_AND idn= fident K_TO toIdn= fident )*
loop113:
while (true) {
int alt113=2;
int LA113_0 = input.LA(1);
if ( (LA113_0==K_AND) ) {
alt113=1;
}
switch (alt113) {
case 1 :
// Parser.g:859:20: K_AND idn= fident K_TO toIdn= fident
{
match(input,K_AND,FOLLOW_K_AND_in_alterTypeStatement5831);
pushFollow(FOLLOW_fident_in_alterTypeStatement5835);
idn=fident();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_alterTypeStatement5837);
pushFollow(FOLLOW_fident_in_alterTypeStatement5841);
toIdn=fident();
state._fsp--;
renames.put(idn, toIdn);
}
break;
default :
break loop113;
}
}
expr = AlterTypeStatement.renames(name, renames);
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "alterTypeStatement"
// $ANTLR start "dropKeyspaceStatement"
// Parser.g:868:1: dropKeyspaceStatement returns [DropKeyspaceStatement ksp] : K_DROP K_KEYSPACE ( K_IF K_EXISTS )? ks= keyspaceName ;
public final DropKeyspaceStatement dropKeyspaceStatement() throws RecognitionException {
DropKeyspaceStatement ksp = null;
String ks =null;
boolean ifExists = false;
try {
// Parser.g:870:5: ( K_DROP K_KEYSPACE ( K_IF K_EXISTS )? ks= keyspaceName )
// Parser.g:870:7: K_DROP K_KEYSPACE ( K_IF K_EXISTS )? ks= keyspaceName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropKeyspaceStatement5908);
match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_dropKeyspaceStatement5910);
// Parser.g:870:25: ( K_IF K_EXISTS )?
int alt115=2;
int LA115_0 = input.LA(1);
if ( (LA115_0==K_IF) ) {
alt115=1;
}
switch (alt115) {
case 1 :
// Parser.g:870:26: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropKeyspaceStatement5913);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropKeyspaceStatement5915);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_keyspaceName_in_dropKeyspaceStatement5924);
ks=keyspaceName();
state._fsp--;
ksp = new DropKeyspaceStatement(ks, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return ksp;
}
// $ANTLR end "dropKeyspaceStatement"
// $ANTLR start "dropTableStatement"
// Parser.g:876:1: dropTableStatement returns [DropTableStatement stmt] : K_DROP K_COLUMNFAMILY ( K_IF K_EXISTS )? cf= columnFamilyName ;
public final DropTableStatement dropTableStatement() throws RecognitionException {
DropTableStatement stmt = null;
CFName cf =null;
boolean ifExists = false;
try {
// Parser.g:878:5: ( K_DROP K_COLUMNFAMILY ( K_IF K_EXISTS )? cf= columnFamilyName )
// Parser.g:878:7: K_DROP K_COLUMNFAMILY ( K_IF K_EXISTS )? cf= columnFamilyName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropTableStatement5958);
match(input,K_COLUMNFAMILY,FOLLOW_K_COLUMNFAMILY_in_dropTableStatement5960);
// Parser.g:878:29: ( K_IF K_EXISTS )?
int alt116=2;
int LA116_0 = input.LA(1);
if ( (LA116_0==K_IF) ) {
alt116=1;
}
switch (alt116) {
case 1 :
// Parser.g:878:30: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropTableStatement5963);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropTableStatement5965);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_dropTableStatement5974);
cf=columnFamilyName();
state._fsp--;
stmt = new DropTableStatement(cf, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "dropTableStatement"
// $ANTLR start "dropTypeStatement"
// Parser.g:884:1: dropTypeStatement returns [DropTypeStatement stmt] : K_DROP K_TYPE ( K_IF K_EXISTS )? name= userTypeName ;
public final DropTypeStatement dropTypeStatement() throws RecognitionException {
DropTypeStatement stmt = null;
UTName name =null;
boolean ifExists = false;
try {
// Parser.g:886:5: ( K_DROP K_TYPE ( K_IF K_EXISTS )? name= userTypeName )
// Parser.g:886:7: K_DROP K_TYPE ( K_IF K_EXISTS )? name= userTypeName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropTypeStatement6008);
match(input,K_TYPE,FOLLOW_K_TYPE_in_dropTypeStatement6010);
// Parser.g:886:21: ( K_IF K_EXISTS )?
int alt117=2;
int LA117_0 = input.LA(1);
if ( (LA117_0==K_IF) ) {
alt117=1;
}
switch (alt117) {
case 1 :
// Parser.g:886:22: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropTypeStatement6013);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropTypeStatement6015);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_userTypeName_in_dropTypeStatement6024);
name=userTypeName();
state._fsp--;
stmt = new DropTypeStatement(name, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "dropTypeStatement"
// $ANTLR start "dropIndexStatement"
// Parser.g:892:1: dropIndexStatement returns [DropIndexStatement expr] : K_DROP K_INDEX ( K_IF K_EXISTS )? index= indexName ;
public final DropIndexStatement dropIndexStatement() throws RecognitionException {
DropIndexStatement expr = null;
IndexName index =null;
boolean ifExists = false;
try {
// Parser.g:894:5: ( K_DROP K_INDEX ( K_IF K_EXISTS )? index= indexName )
// Parser.g:894:7: K_DROP K_INDEX ( K_IF K_EXISTS )? index= indexName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropIndexStatement6058);
match(input,K_INDEX,FOLLOW_K_INDEX_in_dropIndexStatement6060);
// Parser.g:894:22: ( K_IF K_EXISTS )?
int alt118=2;
int LA118_0 = input.LA(1);
if ( (LA118_0==K_IF) ) {
alt118=1;
}
switch (alt118) {
case 1 :
// Parser.g:894:23: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropIndexStatement6063);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropIndexStatement6065);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_indexName_in_dropIndexStatement6074);
index=indexName();
state._fsp--;
expr = new DropIndexStatement(index, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "dropIndexStatement"
// $ANTLR start "dropMaterializedViewStatement"
// Parser.g:901:1: dropMaterializedViewStatement returns [DropViewStatement expr] : K_DROP K_MATERIALIZED K_VIEW ( K_IF K_EXISTS )? cf= columnFamilyName ;
public final DropViewStatement dropMaterializedViewStatement() throws RecognitionException {
DropViewStatement expr = null;
CFName cf =null;
boolean ifExists = false;
try {
// Parser.g:903:5: ( K_DROP K_MATERIALIZED K_VIEW ( K_IF K_EXISTS )? cf= columnFamilyName )
// Parser.g:903:7: K_DROP K_MATERIALIZED K_VIEW ( K_IF K_EXISTS )? cf= columnFamilyName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropMaterializedViewStatement6114);
match(input,K_MATERIALIZED,FOLLOW_K_MATERIALIZED_in_dropMaterializedViewStatement6116);
match(input,K_VIEW,FOLLOW_K_VIEW_in_dropMaterializedViewStatement6118);
// Parser.g:903:36: ( K_IF K_EXISTS )?
int alt119=2;
int LA119_0 = input.LA(1);
if ( (LA119_0==K_IF) ) {
alt119=1;
}
switch (alt119) {
case 1 :
// Parser.g:903:37: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropMaterializedViewStatement6121);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropMaterializedViewStatement6123);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_dropMaterializedViewStatement6132);
cf=columnFamilyName();
state._fsp--;
expr = new DropViewStatement(cf, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return expr;
}
// $ANTLR end "dropMaterializedViewStatement"
// $ANTLR start "truncateStatement"
// Parser.g:910:1: truncateStatement returns [TruncateStatement stmt] : K_TRUNCATE ( K_COLUMNFAMILY )? cf= columnFamilyName ;
public final TruncateStatement truncateStatement() throws RecognitionException {
TruncateStatement stmt = null;
CFName cf =null;
try {
// Parser.g:911:5: ( K_TRUNCATE ( K_COLUMNFAMILY )? cf= columnFamilyName )
// Parser.g:911:7: K_TRUNCATE ( K_COLUMNFAMILY )? cf= columnFamilyName
{
match(input,K_TRUNCATE,FOLLOW_K_TRUNCATE_in_truncateStatement6163);
// Parser.g:911:18: ( K_COLUMNFAMILY )?
int alt120=2;
int LA120_0 = input.LA(1);
if ( (LA120_0==K_COLUMNFAMILY) ) {
alt120=1;
}
switch (alt120) {
case 1 :
// Parser.g:911:19: K_COLUMNFAMILY
{
match(input,K_COLUMNFAMILY,FOLLOW_K_COLUMNFAMILY_in_truncateStatement6166);
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_truncateStatement6172);
cf=columnFamilyName();
state._fsp--;
stmt = new TruncateStatement(cf);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "truncateStatement"
// $ANTLR start "grantPermissionsStatement"
// Parser.g:917:1: grantPermissionsStatement returns [GrantPermissionsStatement stmt] : K_GRANT permissionOrAll K_ON resource K_TO grantee= userOrRoleName ;
public final GrantPermissionsStatement grantPermissionsStatement() throws RecognitionException {
GrantPermissionsStatement stmt = null;
RoleName grantee =null;
Set permissionOrAll1 =null;
IResource resource2 =null;
try {
// Parser.g:918:5: ( K_GRANT permissionOrAll K_ON resource K_TO grantee= userOrRoleName )
// Parser.g:918:7: K_GRANT permissionOrAll K_ON resource K_TO grantee= userOrRoleName
{
match(input,K_GRANT,FOLLOW_K_GRANT_in_grantPermissionsStatement6197);
pushFollow(FOLLOW_permissionOrAll_in_grantPermissionsStatement6209);
permissionOrAll1=permissionOrAll();
state._fsp--;
match(input,K_ON,FOLLOW_K_ON_in_grantPermissionsStatement6217);
pushFollow(FOLLOW_resource_in_grantPermissionsStatement6229);
resource2=resource();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_grantPermissionsStatement6237);
pushFollow(FOLLOW_userOrRoleName_in_grantPermissionsStatement6251);
grantee=userOrRoleName();
state._fsp--;
stmt = new GrantPermissionsStatement(filterPermissions(permissionOrAll1, resource2), resource2, grantee);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "grantPermissionsStatement"
// $ANTLR start "revokePermissionsStatement"
// Parser.g:930:1: revokePermissionsStatement returns [RevokePermissionsStatement stmt] : K_REVOKE permissionOrAll K_ON resource K_FROM revokee= userOrRoleName ;
public final RevokePermissionsStatement revokePermissionsStatement() throws RecognitionException {
RevokePermissionsStatement stmt = null;
RoleName revokee =null;
Set permissionOrAll3 =null;
IResource resource4 =null;
try {
// Parser.g:931:5: ( K_REVOKE permissionOrAll K_ON resource K_FROM revokee= userOrRoleName )
// Parser.g:931:7: K_REVOKE permissionOrAll K_ON resource K_FROM revokee= userOrRoleName
{
match(input,K_REVOKE,FOLLOW_K_REVOKE_in_revokePermissionsStatement6282);
pushFollow(FOLLOW_permissionOrAll_in_revokePermissionsStatement6294);
permissionOrAll3=permissionOrAll();
state._fsp--;
match(input,K_ON,FOLLOW_K_ON_in_revokePermissionsStatement6302);
pushFollow(FOLLOW_resource_in_revokePermissionsStatement6314);
resource4=resource();
state._fsp--;
match(input,K_FROM,FOLLOW_K_FROM_in_revokePermissionsStatement6322);
pushFollow(FOLLOW_userOrRoleName_in_revokePermissionsStatement6336);
revokee=userOrRoleName();
state._fsp--;
stmt = new RevokePermissionsStatement(filterPermissions(permissionOrAll3, resource4), resource4, revokee);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "revokePermissionsStatement"
// $ANTLR start "grantRoleStatement"
// Parser.g:943:1: grantRoleStatement returns [GrantRoleStatement stmt] : K_GRANT role= userOrRoleName K_TO grantee= userOrRoleName ;
public final GrantRoleStatement grantRoleStatement() throws RecognitionException {
GrantRoleStatement stmt = null;
RoleName role =null;
RoleName grantee =null;
try {
// Parser.g:944:5: ( K_GRANT role= userOrRoleName K_TO grantee= userOrRoleName )
// Parser.g:944:7: K_GRANT role= userOrRoleName K_TO grantee= userOrRoleName
{
match(input,K_GRANT,FOLLOW_K_GRANT_in_grantRoleStatement6367);
pushFollow(FOLLOW_userOrRoleName_in_grantRoleStatement6381);
role=userOrRoleName();
state._fsp--;
match(input,K_TO,FOLLOW_K_TO_in_grantRoleStatement6389);
pushFollow(FOLLOW_userOrRoleName_in_grantRoleStatement6403);
grantee=userOrRoleName();
state._fsp--;
stmt = new GrantRoleStatement(role, grantee);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "grantRoleStatement"
// $ANTLR start "revokeRoleStatement"
// Parser.g:954:1: revokeRoleStatement returns [RevokeRoleStatement stmt] : K_REVOKE role= userOrRoleName K_FROM revokee= userOrRoleName ;
public final RevokeRoleStatement revokeRoleStatement() throws RecognitionException {
RevokeRoleStatement stmt = null;
RoleName role =null;
RoleName revokee =null;
try {
// Parser.g:955:5: ( K_REVOKE role= userOrRoleName K_FROM revokee= userOrRoleName )
// Parser.g:955:7: K_REVOKE role= userOrRoleName K_FROM revokee= userOrRoleName
{
match(input,K_REVOKE,FOLLOW_K_REVOKE_in_revokeRoleStatement6434);
pushFollow(FOLLOW_userOrRoleName_in_revokeRoleStatement6448);
role=userOrRoleName();
state._fsp--;
match(input,K_FROM,FOLLOW_K_FROM_in_revokeRoleStatement6456);
pushFollow(FOLLOW_userOrRoleName_in_revokeRoleStatement6470);
revokee=userOrRoleName();
state._fsp--;
stmt = new RevokeRoleStatement(role, revokee);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "revokeRoleStatement"
// $ANTLR start "listPermissionsStatement"
// Parser.g:962:1: listPermissionsStatement returns [ListPermissionsStatement stmt] : K_LIST permissionOrAll ( K_ON resource )? ( K_OF roleName[grantee] )? ( K_NORECURSIVE )? ;
public final ListPermissionsStatement listPermissionsStatement() throws RecognitionException {
ListPermissionsStatement stmt = null;
IResource resource5 =null;
Set permissionOrAll6 =null;
IResource resource = null;
boolean recursive = true;
RoleName grantee = new RoleName();
try {
// Parser.g:968:5: ( K_LIST permissionOrAll ( K_ON resource )? ( K_OF roleName[grantee] )? ( K_NORECURSIVE )? )
// Parser.g:968:7: K_LIST permissionOrAll ( K_ON resource )? ( K_OF roleName[grantee] )? ( K_NORECURSIVE )?
{
match(input,K_LIST,FOLLOW_K_LIST_in_listPermissionsStatement6508);
pushFollow(FOLLOW_permissionOrAll_in_listPermissionsStatement6520);
permissionOrAll6=permissionOrAll();
state._fsp--;
// Parser.g:970:7: ( K_ON resource )?
int alt121=2;
int LA121_0 = input.LA(1);
if ( (LA121_0==K_ON) ) {
alt121=1;
}
switch (alt121) {
case 1 :
// Parser.g:970:9: K_ON resource
{
match(input,K_ON,FOLLOW_K_ON_in_listPermissionsStatement6530);
pushFollow(FOLLOW_resource_in_listPermissionsStatement6532);
resource5=resource();
state._fsp--;
resource = resource5;
}
break;
}
// Parser.g:971:7: ( K_OF roleName[grantee] )?
int alt122=2;
int LA122_0 = input.LA(1);
if ( (LA122_0==K_OF) ) {
alt122=1;
}
switch (alt122) {
case 1 :
// Parser.g:971:9: K_OF roleName[grantee]
{
match(input,K_OF,FOLLOW_K_OF_in_listPermissionsStatement6547);
pushFollow(FOLLOW_roleName_in_listPermissionsStatement6549);
roleName(grantee);
state._fsp--;
}
break;
}
// Parser.g:972:7: ( K_NORECURSIVE )?
int alt123=2;
int LA123_0 = input.LA(1);
if ( (LA123_0==K_NORECURSIVE) ) {
alt123=1;
}
switch (alt123) {
case 1 :
// Parser.g:972:9: K_NORECURSIVE
{
match(input,K_NORECURSIVE,FOLLOW_K_NORECURSIVE_in_listPermissionsStatement6563);
recursive = false;
}
break;
}
stmt = new ListPermissionsStatement(permissionOrAll6, resource, grantee, recursive);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "listPermissionsStatement"
// $ANTLR start "permission"
// Parser.g:976:1: permission returns [Permission perm] : p= ( K_CREATE | K_ALTER | K_DROP | K_SELECT | K_MODIFY | K_AUTHORIZE | K_DESCRIBE | K_EXECUTE ) ;
public final Permission permission() throws RecognitionException {
Permission perm = null;
Token p=null;
try {
// Parser.g:977:5: (p= ( K_CREATE | K_ALTER | K_DROP | K_SELECT | K_MODIFY | K_AUTHORIZE | K_DESCRIBE | K_EXECUTE ) )
// Parser.g:977:7: p= ( K_CREATE | K_ALTER | K_DROP | K_SELECT | K_MODIFY | K_AUTHORIZE | K_DESCRIBE | K_EXECUTE )
{
p=input.LT(1);
if ( input.LA(1)==K_ALTER||input.LA(1)==K_AUTHORIZE||input.LA(1)==K_CREATE||input.LA(1)==K_DESCRIBE||input.LA(1)==K_DROP||input.LA(1)==K_EXECUTE||input.LA(1)==K_MODIFY||input.LA(1)==K_SELECT ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
perm = Permission.valueOf((p!=null?p.getText():null).toUpperCase());
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return perm;
}
// $ANTLR end "permission"
// $ANTLR start "permissionOrAll"
// Parser.g:981:1: permissionOrAll returns [Set perms] : ( K_ALL ( K_PERMISSIONS )? |p= permission ( K_PERMISSION )? );
public final Set permissionOrAll() throws RecognitionException {
Set perms = null;
Permission p =null;
try {
// Parser.g:982:5: ( K_ALL ( K_PERMISSIONS )? |p= permission ( K_PERMISSION )? )
int alt126=2;
int LA126_0 = input.LA(1);
if ( (LA126_0==K_ALL) ) {
alt126=1;
}
else if ( (LA126_0==K_ALTER||LA126_0==K_AUTHORIZE||LA126_0==K_CREATE||LA126_0==K_DESCRIBE||LA126_0==K_DROP||LA126_0==K_EXECUTE||LA126_0==K_MODIFY||LA126_0==K_SELECT) ) {
alt126=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 126, 0, input);
throw nvae;
}
switch (alt126) {
case 1 :
// Parser.g:982:7: K_ALL ( K_PERMISSIONS )?
{
match(input,K_ALL,FOLLOW_K_ALL_in_permissionOrAll6656);
// Parser.g:982:13: ( K_PERMISSIONS )?
int alt124=2;
int LA124_0 = input.LA(1);
if ( (LA124_0==K_PERMISSIONS) ) {
alt124=1;
}
switch (alt124) {
case 1 :
// Parser.g:982:15: K_PERMISSIONS
{
match(input,K_PERMISSIONS,FOLLOW_K_PERMISSIONS_in_permissionOrAll6660);
}
break;
}
perms = Permission.ALL;
}
break;
case 2 :
// Parser.g:983:7: p= permission ( K_PERMISSION )?
{
pushFollow(FOLLOW_permission_in_permissionOrAll6681);
p=permission();
state._fsp--;
// Parser.g:983:20: ( K_PERMISSION )?
int alt125=2;
int LA125_0 = input.LA(1);
if ( (LA125_0==K_PERMISSION) ) {
alt125=1;
}
switch (alt125) {
case 1 :
// Parser.g:983:22: K_PERMISSION
{
match(input,K_PERMISSION,FOLLOW_K_PERMISSION_in_permissionOrAll6685);
}
break;
}
perms = EnumSet.of(p);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return perms;
}
// $ANTLR end "permissionOrAll"
// $ANTLR start "resource"
// Parser.g:986:1: resource returns [IResource res] : (d= dataResource |r= roleResource |f= functionResource |j= jmxResource );
public final IResource resource() throws RecognitionException {
IResource res = null;
DataResource d =null;
RoleResource r =null;
FunctionResource f =null;
JMXResource j =null;
try {
// Parser.g:987:5: (d= dataResource |r= roleResource |f= functionResource |j= jmxResource )
int alt127=4;
switch ( input.LA(1) ) {
case K_ALL:
{
switch ( input.LA(2) ) {
case EOF:
case K_FROM:
case K_KEYSPACES:
case K_NORECURSIVE:
case K_OF:
case K_TO:
case 194:
case 196:
{
alt127=1;
}
break;
case K_ROLES:
{
alt127=2;
}
break;
case K_FUNCTIONS:
{
alt127=3;
}
break;
case K_MBEANS:
{
alt127=4;
}
break;
default:
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 127, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case IDENT:
case K_AGGREGATE:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COLUMNFAMILY:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACE:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
case QMARK:
case QUOTED_NAME:
{
alt127=1;
}
break;
case K_ROLE:
{
int LA127_3 = input.LA(2);
if ( (LA127_3==EOF||LA127_3==K_FROM||LA127_3==K_NORECURSIVE||LA127_3==K_OF||LA127_3==K_TO||LA127_3==194||LA127_3==196) ) {
alt127=1;
}
else if ( (LA127_3==IDENT||(LA127_3 >= K_AGGREGATE && LA127_3 <= K_ALL)||LA127_3==K_AS||LA127_3==K_ASCII||(LA127_3 >= K_BIGINT && LA127_3 <= K_BOOLEAN)||(LA127_3 >= K_CALLED && LA127_3 <= K_CLUSTERING)||(LA127_3 >= K_COMPACT && LA127_3 <= K_COUNTER)||(LA127_3 >= K_CUSTOM && LA127_3 <= K_DECIMAL)||(LA127_3 >= K_DISTINCT && LA127_3 <= K_DOUBLE)||LA127_3==K_DURATION||(LA127_3 >= K_EXISTS && LA127_3 <= K_FLOAT)||LA127_3==K_FROZEN||(LA127_3 >= K_FUNCTION && LA127_3 <= K_FUNCTIONS)||LA127_3==K_GROUP||LA127_3==K_INET||(LA127_3 >= K_INITCOND && LA127_3 <= K_INPUT)||LA127_3==K_INT||(LA127_3 >= K_JSON && LA127_3 <= K_KEYS)||(LA127_3 >= K_KEYSPACES && LA127_3 <= K_LIKE)||(LA127_3 >= K_LIST && LA127_3 <= K_MAP)||LA127_3==K_NOLOGIN||LA127_3==K_NOSUPERUSER||LA127_3==K_OPTIONS||(LA127_3 >= K_PARTITION && LA127_3 <= K_PERMISSIONS)||LA127_3==K_RETURNS||(LA127_3 >= K_ROLE && LA127_3 <= K_ROLES)||(LA127_3 >= K_SFUNC && LA127_3 <= K_TINYINT)||LA127_3==K_TRIGGER||(LA127_3 >= K_TTL && LA127_3 <= K_TYPE)||(LA127_3 >= K_USER && LA127_3 <= K_USERS)||(LA127_3 >= K_UUID && LA127_3 <= K_VARINT)||LA127_3==K_WRITETIME||(LA127_3 >= QMARK && LA127_3 <= QUOTED_NAME)||LA127_3==STRING_LITERAL) ) {
alt127=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 127, 3, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_FUNCTION:
{
int LA127_4 = input.LA(2);
if ( (LA127_4==EOF||LA127_4==K_FROM||LA127_4==K_NORECURSIVE||LA127_4==K_OF||LA127_4==K_TO||LA127_4==194||LA127_4==196) ) {
alt127=1;
}
else if ( (LA127_4==IDENT||(LA127_4 >= K_AGGREGATE && LA127_4 <= K_ALL)||LA127_4==K_AS||LA127_4==K_ASCII||(LA127_4 >= K_BIGINT && LA127_4 <= K_BOOLEAN)||(LA127_4 >= K_CALLED && LA127_4 <= K_CLUSTERING)||(LA127_4 >= K_COMPACT && LA127_4 <= K_COUNTER)||(LA127_4 >= K_CUSTOM && LA127_4 <= K_DECIMAL)||(LA127_4 >= K_DISTINCT && LA127_4 <= K_DOUBLE)||LA127_4==K_DURATION||(LA127_4 >= K_EXISTS && LA127_4 <= K_FLOAT)||LA127_4==K_FROZEN||(LA127_4 >= K_FUNCTION && LA127_4 <= K_FUNCTIONS)||LA127_4==K_GROUP||LA127_4==K_INET||(LA127_4 >= K_INITCOND && LA127_4 <= K_INPUT)||LA127_4==K_INT||(LA127_4 >= K_JSON && LA127_4 <= K_KEYS)||(LA127_4 >= K_KEYSPACES && LA127_4 <= K_LIKE)||(LA127_4 >= K_LIST && LA127_4 <= K_MAP)||LA127_4==K_NOLOGIN||LA127_4==K_NOSUPERUSER||LA127_4==K_OPTIONS||(LA127_4 >= K_PARTITION && LA127_4 <= K_PERMISSIONS)||LA127_4==K_RETURNS||(LA127_4 >= K_ROLE && LA127_4 <= K_ROLES)||(LA127_4 >= K_SFUNC && LA127_4 <= K_TINYINT)||(LA127_4 >= K_TOKEN && LA127_4 <= K_TRIGGER)||(LA127_4 >= K_TTL && LA127_4 <= K_TYPE)||(LA127_4 >= K_USER && LA127_4 <= K_USERS)||(LA127_4 >= K_UUID && LA127_4 <= K_VARINT)||LA127_4==K_WRITETIME||(LA127_4 >= QMARK && LA127_4 <= QUOTED_NAME)) ) {
alt127=3;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 127, 4, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_MBEAN:
case K_MBEANS:
{
alt127=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 127, 0, input);
throw nvae;
}
switch (alt127) {
case 1 :
// Parser.g:987:7: d= dataResource
{
pushFollow(FOLLOW_dataResource_in_resource6713);
d=dataResource();
state._fsp--;
res = d;
}
break;
case 2 :
// Parser.g:988:7: r= roleResource
{
pushFollow(FOLLOW_roleResource_in_resource6725);
r=roleResource();
state._fsp--;
res = r;
}
break;
case 3 :
// Parser.g:989:7: f= functionResource
{
pushFollow(FOLLOW_functionResource_in_resource6737);
f=functionResource();
state._fsp--;
res = f;
}
break;
case 4 :
// Parser.g:990:7: j= jmxResource
{
pushFollow(FOLLOW_jmxResource_in_resource6749);
j=jmxResource();
state._fsp--;
res = j;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
// $ANTLR end "resource"
// $ANTLR start "dataResource"
// Parser.g:993:1: dataResource returns [DataResource res] : ( K_ALL K_KEYSPACES | K_KEYSPACE ks= keyspaceName | ( K_COLUMNFAMILY )? cf= columnFamilyName );
public final DataResource dataResource() throws RecognitionException {
DataResource res = null;
String ks =null;
CFName cf =null;
try {
// Parser.g:994:5: ( K_ALL K_KEYSPACES | K_KEYSPACE ks= keyspaceName | ( K_COLUMNFAMILY )? cf= columnFamilyName )
int alt129=3;
switch ( input.LA(1) ) {
case K_ALL:
{
int LA129_1 = input.LA(2);
if ( (LA129_1==K_KEYSPACES) ) {
alt129=1;
}
else if ( (LA129_1==EOF||LA129_1==K_FROM||LA129_1==K_NORECURSIVE||LA129_1==K_OF||LA129_1==K_TO||LA129_1==194||LA129_1==196) ) {
alt129=3;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 129, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
break;
case K_KEYSPACE:
{
alt129=2;
}
break;
case IDENT:
case K_AGGREGATE:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COLUMNFAMILY:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
case QMARK:
case QUOTED_NAME:
{
alt129=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 129, 0, input);
throw nvae;
}
switch (alt129) {
case 1 :
// Parser.g:994:7: K_ALL K_KEYSPACES
{
match(input,K_ALL,FOLLOW_K_ALL_in_dataResource6772);
match(input,K_KEYSPACES,FOLLOW_K_KEYSPACES_in_dataResource6774);
res = DataResource.root();
}
break;
case 2 :
// Parser.g:995:7: K_KEYSPACE ks= keyspaceName
{
match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_dataResource6784);
pushFollow(FOLLOW_keyspaceName_in_dataResource6790);
ks=keyspaceName();
state._fsp--;
res = DataResource.keyspace(ks);
}
break;
case 3 :
// Parser.g:996:7: ( K_COLUMNFAMILY )? cf= columnFamilyName
{
// Parser.g:996:7: ( K_COLUMNFAMILY )?
int alt128=2;
int LA128_0 = input.LA(1);
if ( (LA128_0==K_COLUMNFAMILY) ) {
alt128=1;
}
switch (alt128) {
case 1 :
// Parser.g:996:9: K_COLUMNFAMILY
{
match(input,K_COLUMNFAMILY,FOLLOW_K_COLUMNFAMILY_in_dataResource6802);
}
break;
}
pushFollow(FOLLOW_columnFamilyName_in_dataResource6811);
cf=columnFamilyName();
state._fsp--;
res = DataResource.table(cf.getKeyspace(), cf.getColumnFamily());
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
// $ANTLR end "dataResource"
// $ANTLR start "jmxResource"
// Parser.g:1000:1: jmxResource returns [JMXResource res] : ( K_ALL K_MBEANS | K_MBEAN mbean | K_MBEANS mbean );
public final JMXResource jmxResource() throws RecognitionException {
JMXResource res = null;
ParserRuleReturnScope mbean7 =null;
ParserRuleReturnScope mbean8 =null;
try {
// Parser.g:1001:5: ( K_ALL K_MBEANS | K_MBEAN mbean | K_MBEANS mbean )
int alt130=3;
switch ( input.LA(1) ) {
case K_ALL:
{
alt130=1;
}
break;
case K_MBEAN:
{
alt130=2;
}
break;
case K_MBEANS:
{
alt130=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 130, 0, input);
throw nvae;
}
switch (alt130) {
case 1 :
// Parser.g:1001:7: K_ALL K_MBEANS
{
match(input,K_ALL,FOLLOW_K_ALL_in_jmxResource6840);
match(input,K_MBEANS,FOLLOW_K_MBEANS_in_jmxResource6842);
res = JMXResource.root();
}
break;
case 2 :
// Parser.g:1004:7: K_MBEAN mbean
{
match(input,K_MBEAN,FOLLOW_K_MBEAN_in_jmxResource6862);
pushFollow(FOLLOW_mbean_in_jmxResource6864);
mbean7=mbean();
state._fsp--;
res = JMXResource.mbean(canonicalizeObjectName((mbean7!=null?input.toString(mbean7.start,mbean7.stop):null), false));
}
break;
case 3 :
// Parser.g:1005:7: K_MBEANS mbean
{
match(input,K_MBEANS,FOLLOW_K_MBEANS_in_jmxResource6874);
pushFollow(FOLLOW_mbean_in_jmxResource6876);
mbean8=mbean();
state._fsp--;
res = JMXResource.mbean(canonicalizeObjectName((mbean8!=null?input.toString(mbean8.start,mbean8.stop):null), true));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
// $ANTLR end "jmxResource"
// $ANTLR start "roleResource"
// Parser.g:1008:1: roleResource returns [RoleResource res] : ( K_ALL K_ROLES | K_ROLE role= userOrRoleName );
public final RoleResource roleResource() throws RecognitionException {
RoleResource res = null;
RoleName role =null;
try {
// Parser.g:1009:5: ( K_ALL K_ROLES | K_ROLE role= userOrRoleName )
int alt131=2;
int LA131_0 = input.LA(1);
if ( (LA131_0==K_ALL) ) {
alt131=1;
}
else if ( (LA131_0==K_ROLE) ) {
alt131=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 131, 0, input);
throw nvae;
}
switch (alt131) {
case 1 :
// Parser.g:1009:7: K_ALL K_ROLES
{
match(input,K_ALL,FOLLOW_K_ALL_in_roleResource6899);
match(input,K_ROLES,FOLLOW_K_ROLES_in_roleResource6901);
res = RoleResource.root();
}
break;
case 2 :
// Parser.g:1010:7: K_ROLE role= userOrRoleName
{
match(input,K_ROLE,FOLLOW_K_ROLE_in_roleResource6911);
pushFollow(FOLLOW_userOrRoleName_in_roleResource6917);
role=userOrRoleName();
state._fsp--;
res = RoleResource.role(role.getName());
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
// $ANTLR end "roleResource"
// $ANTLR start "functionResource"
// Parser.g:1013:1: functionResource returns [FunctionResource res] : ( K_ALL K_FUNCTIONS | K_ALL K_FUNCTIONS K_IN K_KEYSPACE ks= keyspaceName | K_FUNCTION fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' ) );
public final FunctionResource functionResource() throws RecognitionException {
FunctionResource res = null;
String ks =null;
FunctionName fn =null;
CQL3Type.Raw v =null;
List argsTypes = new ArrayList<>();
try {
// Parser.g:1017:5: ( K_ALL K_FUNCTIONS | K_ALL K_FUNCTIONS K_IN K_KEYSPACE ks= keyspaceName | K_FUNCTION fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' ) )
int alt134=3;
int LA134_0 = input.LA(1);
if ( (LA134_0==K_ALL) ) {
int LA134_1 = input.LA(2);
if ( (LA134_1==K_FUNCTIONS) ) {
int LA134_3 = input.LA(3);
if ( (LA134_3==K_IN) ) {
alt134=2;
}
else if ( (LA134_3==EOF||LA134_3==K_FROM||LA134_3==K_NORECURSIVE||LA134_3==K_OF||LA134_3==K_TO||LA134_3==196) ) {
alt134=1;
}
else {
int nvaeMark = input.mark();
try {
for (int nvaeConsume = 0; nvaeConsume < 3 - 1; nvaeConsume++) {
input.consume();
}
NoViableAltException nvae =
new NoViableAltException("", 134, 3, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 134, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA134_0==K_FUNCTION) ) {
alt134=3;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 134, 0, input);
throw nvae;
}
switch (alt134) {
case 1 :
// Parser.g:1017:7: K_ALL K_FUNCTIONS
{
match(input,K_ALL,FOLLOW_K_ALL_in_functionResource6949);
match(input,K_FUNCTIONS,FOLLOW_K_FUNCTIONS_in_functionResource6951);
res = FunctionResource.root();
}
break;
case 2 :
// Parser.g:1018:7: K_ALL K_FUNCTIONS K_IN K_KEYSPACE ks= keyspaceName
{
match(input,K_ALL,FOLLOW_K_ALL_in_functionResource6961);
match(input,K_FUNCTIONS,FOLLOW_K_FUNCTIONS_in_functionResource6963);
match(input,K_IN,FOLLOW_K_IN_in_functionResource6965);
match(input,K_KEYSPACE,FOLLOW_K_KEYSPACE_in_functionResource6967);
pushFollow(FOLLOW_keyspaceName_in_functionResource6973);
ks=keyspaceName();
state._fsp--;
res = FunctionResource.keyspace(ks);
}
break;
case 3 :
// Parser.g:1020:7: K_FUNCTION fn= functionName ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )
{
match(input,K_FUNCTION,FOLLOW_K_FUNCTION_in_functionResource6988);
pushFollow(FOLLOW_functionName_in_functionResource6992);
fn=functionName();
state._fsp--;
// Parser.g:1021:7: ( '(' (v= comparatorType ( ',' v= comparatorType )* )? ')' )
// Parser.g:1022:9: '(' (v= comparatorType ( ',' v= comparatorType )* )? ')'
{
match(input,187,FOLLOW_187_in_functionResource7010);
// Parser.g:1023:11: (v= comparatorType ( ',' v= comparatorType )* )?
int alt133=2;
int LA133_0 = input.LA(1);
if ( (LA133_0==IDENT||(LA133_0 >= K_AGGREGATE && LA133_0 <= K_ALL)||LA133_0==K_AS||LA133_0==K_ASCII||(LA133_0 >= K_BIGINT && LA133_0 <= K_BOOLEAN)||(LA133_0 >= K_CALLED && LA133_0 <= K_CLUSTERING)||(LA133_0 >= K_COMPACT && LA133_0 <= K_COUNTER)||(LA133_0 >= K_CUSTOM && LA133_0 <= K_DECIMAL)||(LA133_0 >= K_DISTINCT && LA133_0 <= K_DOUBLE)||LA133_0==K_DURATION||(LA133_0 >= K_EXISTS && LA133_0 <= K_FLOAT)||LA133_0==K_FROZEN||(LA133_0 >= K_FUNCTION && LA133_0 <= K_FUNCTIONS)||LA133_0==K_GROUP||LA133_0==K_INET||(LA133_0 >= K_INITCOND && LA133_0 <= K_INPUT)||LA133_0==K_INT||(LA133_0 >= K_JSON && LA133_0 <= K_KEYS)||(LA133_0 >= K_KEYSPACES && LA133_0 <= K_LIKE)||(LA133_0 >= K_LIST && LA133_0 <= K_MAP)||LA133_0==K_NOLOGIN||LA133_0==K_NOSUPERUSER||LA133_0==K_OPTIONS||(LA133_0 >= K_PARTITION && LA133_0 <= K_PERMISSIONS)||LA133_0==K_RETURNS||(LA133_0 >= K_ROLE && LA133_0 <= K_ROLES)||(LA133_0 >= K_SET && LA133_0 <= K_TINYINT)||LA133_0==K_TRIGGER||(LA133_0 >= K_TTL && LA133_0 <= K_TYPE)||(LA133_0 >= K_USER && LA133_0 <= K_USERS)||(LA133_0 >= K_UUID && LA133_0 <= K_VARINT)||LA133_0==K_WRITETIME||LA133_0==QUOTED_NAME||LA133_0==STRING_LITERAL) ) {
alt133=1;
}
switch (alt133) {
case 1 :
// Parser.g:1024:13: v= comparatorType ( ',' v= comparatorType )*
{
pushFollow(FOLLOW_comparatorType_in_functionResource7038);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
// Parser.g:1025:13: ( ',' v= comparatorType )*
loop132:
while (true) {
int alt132=2;
int LA132_0 = input.LA(1);
if ( (LA132_0==191) ) {
alt132=1;
}
switch (alt132) {
case 1 :
// Parser.g:1025:15: ',' v= comparatorType
{
match(input,191,FOLLOW_191_in_functionResource7056);
pushFollow(FOLLOW_comparatorType_in_functionResource7060);
v=comparatorType();
state._fsp--;
argsTypes.add(v);
}
break;
default :
break loop132;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_functionResource7088);
}
res = FunctionResource.functionFromCql(fn.keyspace, fn.name, argsTypes);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
// $ANTLR end "functionResource"
// $ANTLR start "createUserStatement"
// Parser.g:1035:1: createUserStatement returns [CreateRoleStatement stmt] : K_CREATE K_USER ( K_IF K_NOT K_EXISTS )? u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )? ;
public final CreateRoleStatement createUserStatement() throws RecognitionException {
CreateRoleStatement stmt = null;
ParserRuleReturnScope u =null;
RoleOptions opts = new RoleOptions();
opts.setOption(IRoleManager.Option.LOGIN, true);
boolean superuser = false;
boolean ifNotExists = false;
RoleName name = new RoleName();
try {
// Parser.g:1043:5: ( K_CREATE K_USER ( K_IF K_NOT K_EXISTS )? u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )? )
// Parser.g:1043:7: K_CREATE K_USER ( K_IF K_NOT K_EXISTS )? u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )?
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createUserStatement7136);
match(input,K_USER,FOLLOW_K_USER_in_createUserStatement7138);
// Parser.g:1043:23: ( K_IF K_NOT K_EXISTS )?
int alt135=2;
int LA135_0 = input.LA(1);
if ( (LA135_0==K_IF) ) {
alt135=1;
}
switch (alt135) {
case 1 :
// Parser.g:1043:24: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createUserStatement7141);
match(input,K_NOT,FOLLOW_K_NOT_in_createUserStatement7143);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createUserStatement7145);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_username_in_createUserStatement7153);
u=username();
state._fsp--;
name.setName((u!=null?input.toString(u.start,u.stop):null), true);
// Parser.g:1044:7: ( K_WITH userPassword[opts] )?
int alt136=2;
int LA136_0 = input.LA(1);
if ( (LA136_0==K_WITH) ) {
alt136=1;
}
switch (alt136) {
case 1 :
// Parser.g:1044:9: K_WITH userPassword[opts]
{
match(input,K_WITH,FOLLOW_K_WITH_in_createUserStatement7165);
pushFollow(FOLLOW_userPassword_in_createUserStatement7167);
userPassword(opts);
state._fsp--;
}
break;
}
// Parser.g:1045:7: ( K_SUPERUSER | K_NOSUPERUSER )?
int alt137=3;
int LA137_0 = input.LA(1);
if ( (LA137_0==K_SUPERUSER) ) {
alt137=1;
}
else if ( (LA137_0==K_NOSUPERUSER) ) {
alt137=2;
}
switch (alt137) {
case 1 :
// Parser.g:1045:9: K_SUPERUSER
{
match(input,K_SUPERUSER,FOLLOW_K_SUPERUSER_in_createUserStatement7181);
superuser = true;
}
break;
case 2 :
// Parser.g:1045:45: K_NOSUPERUSER
{
match(input,K_NOSUPERUSER,FOLLOW_K_NOSUPERUSER_in_createUserStatement7187);
superuser = false;
}
break;
}
opts.setOption(IRoleManager.Option.SUPERUSER, superuser);
stmt = new CreateRoleStatement(name, opts, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "createUserStatement"
// $ANTLR start "alterUserStatement"
// Parser.g:1053:1: alterUserStatement returns [AlterRoleStatement stmt] : K_ALTER K_USER u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )? ;
public final AlterRoleStatement alterUserStatement() throws RecognitionException {
AlterRoleStatement stmt = null;
ParserRuleReturnScope u =null;
RoleOptions opts = new RoleOptions();
RoleName name = new RoleName();
try {
// Parser.g:1058:5: ( K_ALTER K_USER u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )? )
// Parser.g:1058:7: K_ALTER K_USER u= username ( K_WITH userPassword[opts] )? ( K_SUPERUSER | K_NOSUPERUSER )?
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterUserStatement7232);
match(input,K_USER,FOLLOW_K_USER_in_alterUserStatement7234);
pushFollow(FOLLOW_username_in_alterUserStatement7238);
u=username();
state._fsp--;
name.setName((u!=null?input.toString(u.start,u.stop):null), true);
// Parser.g:1059:7: ( K_WITH userPassword[opts] )?
int alt138=2;
int LA138_0 = input.LA(1);
if ( (LA138_0==K_WITH) ) {
alt138=1;
}
switch (alt138) {
case 1 :
// Parser.g:1059:9: K_WITH userPassword[opts]
{
match(input,K_WITH,FOLLOW_K_WITH_in_alterUserStatement7250);
pushFollow(FOLLOW_userPassword_in_alterUserStatement7252);
userPassword(opts);
state._fsp--;
}
break;
}
// Parser.g:1060:7: ( K_SUPERUSER | K_NOSUPERUSER )?
int alt139=3;
int LA139_0 = input.LA(1);
if ( (LA139_0==K_SUPERUSER) ) {
alt139=1;
}
else if ( (LA139_0==K_NOSUPERUSER) ) {
alt139=2;
}
switch (alt139) {
case 1 :
// Parser.g:1060:9: K_SUPERUSER
{
match(input,K_SUPERUSER,FOLLOW_K_SUPERUSER_in_alterUserStatement7266);
opts.setOption(IRoleManager.Option.SUPERUSER, true);
}
break;
case 2 :
// Parser.g:1061:11: K_NOSUPERUSER
{
match(input,K_NOSUPERUSER,FOLLOW_K_NOSUPERUSER_in_alterUserStatement7280);
opts.setOption(IRoleManager.Option.SUPERUSER, false);
}
break;
}
stmt = new AlterRoleStatement(name, opts);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "alterUserStatement"
// $ANTLR start "dropUserStatement"
// Parser.g:1068:1: dropUserStatement returns [DropRoleStatement stmt] : K_DROP K_USER ( K_IF K_EXISTS )? u= username ;
public final DropRoleStatement dropUserStatement() throws RecognitionException {
DropRoleStatement stmt = null;
ParserRuleReturnScope u =null;
boolean ifExists = false;
RoleName name = new RoleName();
try {
// Parser.g:1073:5: ( K_DROP K_USER ( K_IF K_EXISTS )? u= username )
// Parser.g:1073:7: K_DROP K_USER ( K_IF K_EXISTS )? u= username
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropUserStatement7326);
match(input,K_USER,FOLLOW_K_USER_in_dropUserStatement7328);
// Parser.g:1073:21: ( K_IF K_EXISTS )?
int alt140=2;
int LA140_0 = input.LA(1);
if ( (LA140_0==K_IF) ) {
alt140=1;
}
switch (alt140) {
case 1 :
// Parser.g:1073:22: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropUserStatement7331);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropUserStatement7333);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_username_in_dropUserStatement7341);
u=username();
state._fsp--;
name.setName((u!=null?input.toString(u.start,u.stop):null), true); stmt = new DropRoleStatement(name, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "dropUserStatement"
// $ANTLR start "listUsersStatement"
// Parser.g:1079:1: listUsersStatement returns [ListRolesStatement stmt] : K_LIST K_USERS ;
public final ListRolesStatement listUsersStatement() throws RecognitionException {
ListRolesStatement stmt = null;
try {
// Parser.g:1080:5: ( K_LIST K_USERS )
// Parser.g:1080:7: K_LIST K_USERS
{
match(input,K_LIST,FOLLOW_K_LIST_in_listUsersStatement7366);
match(input,K_USERS,FOLLOW_K_USERS_in_listUsersStatement7368);
stmt = new ListUsersStatement();
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "listUsersStatement"
// $ANTLR start "createRoleStatement"
// Parser.g:1092:1: createRoleStatement returns [CreateRoleStatement stmt] : K_CREATE K_ROLE ( K_IF K_NOT K_EXISTS )? name= userOrRoleName ( K_WITH roleOptions[opts] )? ;
public final CreateRoleStatement createRoleStatement() throws RecognitionException {
CreateRoleStatement stmt = null;
RoleName name =null;
RoleOptions opts = new RoleOptions();
boolean ifNotExists = false;
try {
// Parser.g:1097:5: ( K_CREATE K_ROLE ( K_IF K_NOT K_EXISTS )? name= userOrRoleName ( K_WITH roleOptions[opts] )? )
// Parser.g:1097:7: K_CREATE K_ROLE ( K_IF K_NOT K_EXISTS )? name= userOrRoleName ( K_WITH roleOptions[opts] )?
{
match(input,K_CREATE,FOLLOW_K_CREATE_in_createRoleStatement7402);
match(input,K_ROLE,FOLLOW_K_ROLE_in_createRoleStatement7404);
// Parser.g:1097:23: ( K_IF K_NOT K_EXISTS )?
int alt141=2;
int LA141_0 = input.LA(1);
if ( (LA141_0==K_IF) ) {
alt141=1;
}
switch (alt141) {
case 1 :
// Parser.g:1097:24: K_IF K_NOT K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_createRoleStatement7407);
match(input,K_NOT,FOLLOW_K_NOT_in_createRoleStatement7409);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_createRoleStatement7411);
ifNotExists = true;
}
break;
}
pushFollow(FOLLOW_userOrRoleName_in_createRoleStatement7419);
name=userOrRoleName();
state._fsp--;
// Parser.g:1098:7: ( K_WITH roleOptions[opts] )?
int alt142=2;
int LA142_0 = input.LA(1);
if ( (LA142_0==K_WITH) ) {
alt142=1;
}
switch (alt142) {
case 1 :
// Parser.g:1098:9: K_WITH roleOptions[opts]
{
match(input,K_WITH,FOLLOW_K_WITH_in_createRoleStatement7429);
pushFollow(FOLLOW_roleOptions_in_createRoleStatement7431);
roleOptions(opts);
state._fsp--;
}
break;
}
// set defaults if they weren't explictly supplied
if (!opts.getLogin().isPresent())
{
opts.setOption(IRoleManager.Option.LOGIN, false);
}
if (!opts.getSuperuser().isPresent())
{
opts.setOption(IRoleManager.Option.SUPERUSER, false);
}
stmt = new CreateRoleStatement(name, opts, ifNotExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "createRoleStatement"
// $ANTLR start "alterRoleStatement"
// Parser.g:1122:1: alterRoleStatement returns [AlterRoleStatement stmt] : K_ALTER K_ROLE name= userOrRoleName ( K_WITH roleOptions[opts] )? ;
public final AlterRoleStatement alterRoleStatement() throws RecognitionException {
AlterRoleStatement stmt = null;
RoleName name =null;
RoleOptions opts = new RoleOptions();
try {
// Parser.g:1126:5: ( K_ALTER K_ROLE name= userOrRoleName ( K_WITH roleOptions[opts] )? )
// Parser.g:1126:7: K_ALTER K_ROLE name= userOrRoleName ( K_WITH roleOptions[opts] )?
{
match(input,K_ALTER,FOLLOW_K_ALTER_in_alterRoleStatement7475);
match(input,K_ROLE,FOLLOW_K_ROLE_in_alterRoleStatement7477);
pushFollow(FOLLOW_userOrRoleName_in_alterRoleStatement7481);
name=userOrRoleName();
state._fsp--;
// Parser.g:1127:7: ( K_WITH roleOptions[opts] )?
int alt143=2;
int LA143_0 = input.LA(1);
if ( (LA143_0==K_WITH) ) {
alt143=1;
}
switch (alt143) {
case 1 :
// Parser.g:1127:9: K_WITH roleOptions[opts]
{
match(input,K_WITH,FOLLOW_K_WITH_in_alterRoleStatement7491);
pushFollow(FOLLOW_roleOptions_in_alterRoleStatement7493);
roleOptions(opts);
state._fsp--;
}
break;
}
stmt = new AlterRoleStatement(name, opts);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "alterRoleStatement"
// $ANTLR start "dropRoleStatement"
// Parser.g:1134:1: dropRoleStatement returns [DropRoleStatement stmt] : K_DROP K_ROLE ( K_IF K_EXISTS )? name= userOrRoleName ;
public final DropRoleStatement dropRoleStatement() throws RecognitionException {
DropRoleStatement stmt = null;
RoleName name =null;
boolean ifExists = false;
try {
// Parser.g:1138:5: ( K_DROP K_ROLE ( K_IF K_EXISTS )? name= userOrRoleName )
// Parser.g:1138:7: K_DROP K_ROLE ( K_IF K_EXISTS )? name= userOrRoleName
{
match(input,K_DROP,FOLLOW_K_DROP_in_dropRoleStatement7537);
match(input,K_ROLE,FOLLOW_K_ROLE_in_dropRoleStatement7539);
// Parser.g:1138:21: ( K_IF K_EXISTS )?
int alt144=2;
int LA144_0 = input.LA(1);
if ( (LA144_0==K_IF) ) {
alt144=1;
}
switch (alt144) {
case 1 :
// Parser.g:1138:22: K_IF K_EXISTS
{
match(input,K_IF,FOLLOW_K_IF_in_dropRoleStatement7542);
match(input,K_EXISTS,FOLLOW_K_EXISTS_in_dropRoleStatement7544);
ifExists = true;
}
break;
}
pushFollow(FOLLOW_userOrRoleName_in_dropRoleStatement7552);
name=userOrRoleName();
state._fsp--;
stmt = new DropRoleStatement(name, ifExists);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "dropRoleStatement"
// $ANTLR start "listRolesStatement"
// Parser.g:1145:1: listRolesStatement returns [ListRolesStatement stmt] : K_LIST K_ROLES ( K_OF roleName[grantee] )? ( K_NORECURSIVE )? ;
public final ListRolesStatement listRolesStatement() throws RecognitionException {
ListRolesStatement stmt = null;
boolean recursive = true;
RoleName grantee = new RoleName();
try {
// Parser.g:1150:5: ( K_LIST K_ROLES ( K_OF roleName[grantee] )? ( K_NORECURSIVE )? )
// Parser.g:1150:7: K_LIST K_ROLES ( K_OF roleName[grantee] )? ( K_NORECURSIVE )?
{
match(input,K_LIST,FOLLOW_K_LIST_in_listRolesStatement7592);
match(input,K_ROLES,FOLLOW_K_ROLES_in_listRolesStatement7594);
// Parser.g:1151:7: ( K_OF roleName[grantee] )?
int alt145=2;
int LA145_0 = input.LA(1);
if ( (LA145_0==K_OF) ) {
alt145=1;
}
switch (alt145) {
case 1 :
// Parser.g:1151:9: K_OF roleName[grantee]
{
match(input,K_OF,FOLLOW_K_OF_in_listRolesStatement7604);
pushFollow(FOLLOW_roleName_in_listRolesStatement7606);
roleName(grantee);
state._fsp--;
}
break;
}
// Parser.g:1152:7: ( K_NORECURSIVE )?
int alt146=2;
int LA146_0 = input.LA(1);
if ( (LA146_0==K_NORECURSIVE) ) {
alt146=1;
}
switch (alt146) {
case 1 :
// Parser.g:1152:9: K_NORECURSIVE
{
match(input,K_NORECURSIVE,FOLLOW_K_NORECURSIVE_in_listRolesStatement7619);
recursive = false;
}
break;
}
stmt = new ListRolesStatement(grantee, recursive);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return stmt;
}
// $ANTLR end "listRolesStatement"
// $ANTLR start "roleOptions"
// Parser.g:1156:1: roleOptions[RoleOptions opts] : roleOption[opts] ( K_AND roleOption[opts] )* ;
public final void roleOptions(RoleOptions opts) throws RecognitionException {
try {
// Parser.g:1157:5: ( roleOption[opts] ( K_AND roleOption[opts] )* )
// Parser.g:1157:7: roleOption[opts] ( K_AND roleOption[opts] )*
{
pushFollow(FOLLOW_roleOption_in_roleOptions7650);
roleOption(opts);
state._fsp--;
// Parser.g:1157:24: ( K_AND roleOption[opts] )*
loop147:
while (true) {
int alt147=2;
int LA147_0 = input.LA(1);
if ( (LA147_0==K_AND) ) {
alt147=1;
}
switch (alt147) {
case 1 :
// Parser.g:1157:25: K_AND roleOption[opts]
{
match(input,K_AND,FOLLOW_K_AND_in_roleOptions7654);
pushFollow(FOLLOW_roleOption_in_roleOptions7656);
roleOption(opts);
state._fsp--;
}
break;
default :
break loop147;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "roleOptions"
// $ANTLR start "roleOption"
// Parser.g:1160:1: roleOption[RoleOptions opts] : ( K_PASSWORD '=' v= STRING_LITERAL | K_OPTIONS '=' m= mapLiteral | K_SUPERUSER '=' b= BOOLEAN | K_LOGIN '=' b= BOOLEAN );
public final void roleOption(RoleOptions opts) throws RecognitionException {
Token v=null;
Token b=null;
Maps.Literal m =null;
try {
// Parser.g:1161:5: ( K_PASSWORD '=' v= STRING_LITERAL | K_OPTIONS '=' m= mapLiteral | K_SUPERUSER '=' b= BOOLEAN | K_LOGIN '=' b= BOOLEAN )
int alt148=4;
switch ( input.LA(1) ) {
case K_PASSWORD:
{
alt148=1;
}
break;
case K_OPTIONS:
{
alt148=2;
}
break;
case K_SUPERUSER:
{
alt148=3;
}
break;
case K_LOGIN:
{
alt148=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 148, 0, input);
throw nvae;
}
switch (alt148) {
case 1 :
// Parser.g:1161:8: K_PASSWORD '=' v= STRING_LITERAL
{
match(input,K_PASSWORD,FOLLOW_K_PASSWORD_in_roleOption7678);
match(input,199,FOLLOW_199_in_roleOption7680);
v=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_roleOption7684);
opts.setOption(IRoleManager.Option.PASSWORD, (v!=null?v.getText():null));
}
break;
case 2 :
// Parser.g:1162:8: K_OPTIONS '=' m= mapLiteral
{
match(input,K_OPTIONS,FOLLOW_K_OPTIONS_in_roleOption7695);
match(input,199,FOLLOW_199_in_roleOption7697);
pushFollow(FOLLOW_mapLiteral_in_roleOption7701);
m=mapLiteral();
state._fsp--;
opts.setOption(IRoleManager.Option.OPTIONS, convertPropertyMap(m));
}
break;
case 3 :
// Parser.g:1163:8: K_SUPERUSER '=' b= BOOLEAN
{
match(input,K_SUPERUSER,FOLLOW_K_SUPERUSER_in_roleOption7712);
match(input,199,FOLLOW_199_in_roleOption7714);
b=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_roleOption7718);
opts.setOption(IRoleManager.Option.SUPERUSER, Boolean.valueOf((b!=null?b.getText():null)));
}
break;
case 4 :
// Parser.g:1164:8: K_LOGIN '=' b= BOOLEAN
{
match(input,K_LOGIN,FOLLOW_K_LOGIN_in_roleOption7729);
match(input,199,FOLLOW_199_in_roleOption7731);
b=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_roleOption7735);
opts.setOption(IRoleManager.Option.LOGIN, Boolean.valueOf((b!=null?b.getText():null)));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "roleOption"
// $ANTLR start "userPassword"
// Parser.g:1168:1: userPassword[RoleOptions opts] : K_PASSWORD v= STRING_LITERAL ;
public final void userPassword(RoleOptions opts) throws RecognitionException {
Token v=null;
try {
// Parser.g:1169:5: ( K_PASSWORD v= STRING_LITERAL )
// Parser.g:1169:8: K_PASSWORD v= STRING_LITERAL
{
match(input,K_PASSWORD,FOLLOW_K_PASSWORD_in_userPassword7757);
v=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_userPassword7761);
opts.setOption(IRoleManager.Option.PASSWORD, (v!=null?v.getText():null));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "userPassword"
// $ANTLR start "cident"
// Parser.g:1180:1: cident returns [ColumnDefinition.Raw id] : ( EMPTY_QUOTED_NAME |t= IDENT |t= QUOTED_NAME |k= unreserved_keyword );
public final ColumnDefinition.Raw cident() throws RecognitionException {
ColumnDefinition.Raw id = null;
Token t=null;
String k =null;
try {
// Parser.g:1181:5: ( EMPTY_QUOTED_NAME |t= IDENT |t= QUOTED_NAME |k= unreserved_keyword )
int alt149=4;
switch ( input.LA(1) ) {
case EMPTY_QUOTED_NAME:
{
alt149=1;
}
break;
case IDENT:
{
alt149=2;
}
break;
case QUOTED_NAME:
{
alt149=3;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt149=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 149, 0, input);
throw nvae;
}
switch (alt149) {
case 1 :
// Parser.g:1181:7: EMPTY_QUOTED_NAME
{
match(input,EMPTY_QUOTED_NAME,FOLLOW_EMPTY_QUOTED_NAME_in_cident7793);
id = ColumnDefinition.Raw.forQuoted("");
}
break;
case 2 :
// Parser.g:1182:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_cident7808);
id = ColumnDefinition.Raw.forUnquoted((t!=null?t.getText():null));
}
break;
case 3 :
// Parser.g:1183:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_cident7833);
id = ColumnDefinition.Raw.forQuoted((t!=null?t.getText():null));
}
break;
case 4 :
// Parser.g:1184:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_cident7852);
k=unreserved_keyword();
state._fsp--;
id = ColumnDefinition.Raw.forUnquoted(k);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "cident"
// $ANTLR start "schema_cident"
// Parser.g:1187:1: schema_cident returns [ColumnDefinition.Raw id] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword );
public final ColumnDefinition.Raw schema_cident() throws RecognitionException {
ColumnDefinition.Raw id = null;
Token t=null;
String k =null;
try {
// Parser.g:1188:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword )
int alt150=3;
switch ( input.LA(1) ) {
case IDENT:
{
alt150=1;
}
break;
case QUOTED_NAME:
{
alt150=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt150=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 150, 0, input);
throw nvae;
}
switch (alt150) {
case 1 :
// Parser.g:1188:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_schema_cident7877);
id = ColumnDefinition.Raw.forUnquoted((t!=null?t.getText():null));
}
break;
case 2 :
// Parser.g:1189:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_schema_cident7902);
id = ColumnDefinition.Raw.forQuoted((t!=null?t.getText():null));
}
break;
case 3 :
// Parser.g:1190:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_schema_cident7921);
k=unreserved_keyword();
state._fsp--;
id = ColumnDefinition.Raw.forUnquoted(k);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "schema_cident"
// $ANTLR start "ident"
// Parser.g:1194:1: ident returns [ColumnIdentifier id] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword );
public final ColumnIdentifier ident() throws RecognitionException {
ColumnIdentifier id = null;
Token t=null;
String k =null;
try {
// Parser.g:1195:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword )
int alt151=3;
switch ( input.LA(1) ) {
case IDENT:
{
alt151=1;
}
break;
case QUOTED_NAME:
{
alt151=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt151=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 151, 0, input);
throw nvae;
}
switch (alt151) {
case 1 :
// Parser.g:1195:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_ident7947);
id = ColumnIdentifier.getInterned((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1196:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_ident7972);
id = ColumnIdentifier.getInterned((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1197:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_ident7991);
k=unreserved_keyword();
state._fsp--;
id = ColumnIdentifier.getInterned(k, false);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "ident"
// $ANTLR start "fident"
// Parser.g:1200:1: fident returns [FieldIdentifier id] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword );
public final FieldIdentifier fident() throws RecognitionException {
FieldIdentifier id = null;
Token t=null;
String k =null;
try {
// Parser.g:1201:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword )
int alt152=3;
switch ( input.LA(1) ) {
case IDENT:
{
alt152=1;
}
break;
case QUOTED_NAME:
{
alt152=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt152=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 152, 0, input);
throw nvae;
}
switch (alt152) {
case 1 :
// Parser.g:1201:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_fident8016);
id = FieldIdentifier.forUnquoted((t!=null?t.getText():null));
}
break;
case 2 :
// Parser.g:1202:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_fident8041);
id = FieldIdentifier.forQuoted((t!=null?t.getText():null));
}
break;
case 3 :
// Parser.g:1203:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_fident8060);
k=unreserved_keyword();
state._fsp--;
id = FieldIdentifier.forUnquoted(k);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "fident"
// $ANTLR start "noncol_ident"
// Parser.g:1207:1: noncol_ident returns [ColumnIdentifier id] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword );
public final ColumnIdentifier noncol_ident() throws RecognitionException {
ColumnIdentifier id = null;
Token t=null;
String k =null;
try {
// Parser.g:1208:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword )
int alt153=3;
switch ( input.LA(1) ) {
case IDENT:
{
alt153=1;
}
break;
case QUOTED_NAME:
{
alt153=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt153=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 153, 0, input);
throw nvae;
}
switch (alt153) {
case 1 :
// Parser.g:1208:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_noncol_ident8086);
id = new ColumnIdentifier((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1209:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_noncol_ident8111);
id = new ColumnIdentifier((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1210:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_noncol_ident8130);
k=unreserved_keyword();
state._fsp--;
id = new ColumnIdentifier(k, false);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "noncol_ident"
// $ANTLR start "keyspaceName"
// Parser.g:1214:1: keyspaceName returns [String id] : ksName[name] ;
public final String keyspaceName() throws RecognitionException {
String id = null;
CFName name = new CFName();
try {
// Parser.g:1216:5: ( ksName[name] )
// Parser.g:1216:7: ksName[name]
{
pushFollow(FOLLOW_ksName_in_keyspaceName8163);
ksName(name);
state._fsp--;
id = name.getKeyspace();
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "keyspaceName"
// $ANTLR start "indexName"
// Parser.g:1219:1: indexName returns [IndexName name] : ( ksName[name] '.' )? idxName[name] ;
public final IndexName indexName() throws RecognitionException {
IndexName name = null;
name = new IndexName();
try {
// Parser.g:1221:5: ( ( ksName[name] '.' )? idxName[name] )
// Parser.g:1221:7: ( ksName[name] '.' )? idxName[name]
{
// Parser.g:1221:7: ( ksName[name] '.' )?
int alt154=2;
alt154 = dfa154.predict(input);
switch (alt154) {
case 1 :
// Parser.g:1221:8: ksName[name] '.'
{
pushFollow(FOLLOW_ksName_in_indexName8197);
ksName(name);
state._fsp--;
match(input,194,FOLLOW_194_in_indexName8200);
}
break;
}
pushFollow(FOLLOW_idxName_in_indexName8204);
idxName(name);
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return name;
}
// $ANTLR end "indexName"
// $ANTLR start "columnFamilyName"
// Parser.g:1224:1: columnFamilyName returns [CFName name] : ( ksName[name] '.' )? cfName[name] ;
public final CFName columnFamilyName() throws RecognitionException {
CFName name = null;
name = new CFName();
try {
// Parser.g:1226:5: ( ( ksName[name] '.' )? cfName[name] )
// Parser.g:1226:7: ( ksName[name] '.' )? cfName[name]
{
// Parser.g:1226:7: ( ksName[name] '.' )?
int alt155=2;
alt155 = dfa155.predict(input);
switch (alt155) {
case 1 :
// Parser.g:1226:8: ksName[name] '.'
{
pushFollow(FOLLOW_ksName_in_columnFamilyName8236);
ksName(name);
state._fsp--;
match(input,194,FOLLOW_194_in_columnFamilyName8239);
}
break;
}
pushFollow(FOLLOW_cfName_in_columnFamilyName8243);
cfName(name);
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return name;
}
// $ANTLR end "columnFamilyName"
// $ANTLR start "userTypeName"
// Parser.g:1229:1: userTypeName returns [UTName name] : (ks= noncol_ident '.' )? ut= non_type_ident ;
public final UTName userTypeName() throws RecognitionException {
UTName name = null;
ColumnIdentifier ks =null;
ColumnIdentifier ut =null;
try {
// Parser.g:1230:5: ( (ks= noncol_ident '.' )? ut= non_type_ident )
// Parser.g:1230:7: (ks= noncol_ident '.' )? ut= non_type_ident
{
// Parser.g:1230:7: (ks= noncol_ident '.' )?
int alt156=2;
switch ( input.LA(1) ) {
case IDENT:
{
int LA156_1 = input.LA(2);
if ( (LA156_1==194) ) {
alt156=1;
}
}
break;
case QUOTED_NAME:
{
int LA156_2 = input.LA(2);
if ( (LA156_2==194) ) {
alt156=1;
}
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_CALLED:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_CUSTOM:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INITCOND:
case K_INPUT:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TRIGGER:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_VALUES:
{
int LA156_3 = input.LA(2);
if ( (LA156_3==194) ) {
alt156=1;
}
}
break;
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CAST:
case K_COUNT:
case K_COUNTER:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_FLOAT:
case K_INET:
case K_INT:
case K_JSON:
case K_SMALLINT:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TTL:
case K_UUID:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt156=1;
}
break;
case K_KEY:
{
int LA156_5 = input.LA(2);
if ( (LA156_5==194) ) {
alt156=1;
}
}
break;
}
switch (alt156) {
case 1 :
// Parser.g:1230:8: ks= noncol_ident '.'
{
pushFollow(FOLLOW_noncol_ident_in_userTypeName8268);
ks=noncol_ident();
state._fsp--;
match(input,194,FOLLOW_194_in_userTypeName8270);
}
break;
}
pushFollow(FOLLOW_non_type_ident_in_userTypeName8276);
ut=non_type_ident();
state._fsp--;
name = new UTName(ks, ut);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return name;
}
// $ANTLR end "userTypeName"
// $ANTLR start "userOrRoleName"
// Parser.g:1233:1: userOrRoleName returns [RoleName name] : roleName[role] ;
public final RoleName userOrRoleName() throws RecognitionException {
RoleName name = null;
RoleName role = new RoleName();
try {
// Parser.g:1235:5: ( roleName[role] )
// Parser.g:1235:7: roleName[role]
{
pushFollow(FOLLOW_roleName_in_userOrRoleName8308);
roleName(role);
state._fsp--;
name = role;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return name;
}
// $ANTLR end "userOrRoleName"
// $ANTLR start "ksName"
// Parser.g:1238:1: ksName[KeyspaceElementName name] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK );
public final void ksName(KeyspaceElementName name) throws RecognitionException {
Token t=null;
String k =null;
try {
// Parser.g:1239:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK )
int alt157=4;
switch ( input.LA(1) ) {
case IDENT:
{
alt157=1;
}
break;
case QUOTED_NAME:
{
alt157=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt157=3;
}
break;
case QMARK:
{
alt157=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 157, 0, input);
throw nvae;
}
switch (alt157) {
case 1 :
// Parser.g:1239:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_ksName8331);
name.setKeyspace((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1240:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_ksName8356);
name.setKeyspace((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1241:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_ksName8375);
k=unreserved_keyword();
state._fsp--;
name.setKeyspace(k, false);
}
break;
case 4 :
// Parser.g:1242:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_ksName8385);
addRecognitionError("Bind variables cannot be used for keyspace names");
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ksName"
// $ANTLR start "cfName"
// Parser.g:1245:1: cfName[CFName name] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK );
public final void cfName(CFName name) throws RecognitionException {
Token t=null;
String k =null;
try {
// Parser.g:1246:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK )
int alt158=4;
switch ( input.LA(1) ) {
case IDENT:
{
alt158=1;
}
break;
case QUOTED_NAME:
{
alt158=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt158=3;
}
break;
case QMARK:
{
alt158=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 158, 0, input);
throw nvae;
}
switch (alt158) {
case 1 :
// Parser.g:1246:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_cfName8407);
name.setColumnFamily((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1247:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_cfName8432);
name.setColumnFamily((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1248:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_cfName8451);
k=unreserved_keyword();
state._fsp--;
name.setColumnFamily(k, false);
}
break;
case 4 :
// Parser.g:1249:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_cfName8461);
addRecognitionError("Bind variables cannot be used for table names");
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "cfName"
// $ANTLR start "idxName"
// Parser.g:1252:1: idxName[IndexName name] : (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK );
public final void idxName(IndexName name) throws RecognitionException {
Token t=null;
String k =null;
try {
// Parser.g:1253:5: (t= IDENT |t= QUOTED_NAME |k= unreserved_keyword | QMARK )
int alt159=4;
switch ( input.LA(1) ) {
case IDENT:
{
alt159=1;
}
break;
case QUOTED_NAME:
{
alt159=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt159=3;
}
break;
case QMARK:
{
alt159=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 159, 0, input);
throw nvae;
}
switch (alt159) {
case 1 :
// Parser.g:1253:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_idxName8483);
name.setIndex((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1254:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_idxName8508);
name.setIndex((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1255:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_idxName8527);
k=unreserved_keyword();
state._fsp--;
name.setIndex(k, false);
}
break;
case 4 :
// Parser.g:1256:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_idxName8537);
addRecognitionError("Bind variables cannot be used for index names");
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "idxName"
// $ANTLR start "roleName"
// Parser.g:1259:1: roleName[RoleName name] : (t= IDENT |s= STRING_LITERAL |t= QUOTED_NAME |k= unreserved_keyword | QMARK );
public final void roleName(RoleName name) throws RecognitionException {
Token t=null;
Token s=null;
String k =null;
try {
// Parser.g:1260:5: (t= IDENT |s= STRING_LITERAL |t= QUOTED_NAME |k= unreserved_keyword | QMARK )
int alt160=5;
switch ( input.LA(1) ) {
case IDENT:
{
alt160=1;
}
break;
case STRING_LITERAL:
{
alt160=2;
}
break;
case QUOTED_NAME:
{
alt160=3;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CAST:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNT:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DISTINCT:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_JSON:
case K_KEY:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TTL:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
case K_WRITETIME:
{
alt160=4;
}
break;
case QMARK:
{
alt160=5;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 160, 0, input);
throw nvae;
}
switch (alt160) {
case 1 :
// Parser.g:1260:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_roleName8559);
name.setName((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1261:7: s= STRING_LITERAL
{
s=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_roleName8584);
name.setName((s!=null?s.getText():null), true);
}
break;
case 3 :
// Parser.g:1262:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_roleName8600);
name.setName((t!=null?t.getText():null), true);
}
break;
case 4 :
// Parser.g:1263:7: k= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_roleName8619);
k=unreserved_keyword();
state._fsp--;
name.setName(k, false);
}
break;
case 5 :
// Parser.g:1264:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_roleName8629);
addRecognitionError("Bind variables cannot be used for role names");
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "roleName"
// $ANTLR start "constant"
// Parser.g:1267:1: constant returns [Constants.Literal constant] : (t= STRING_LITERAL |t= INTEGER |t= FLOAT |t= BOOLEAN |t= DURATION |t= UUID |t= HEXNUMBER | ( '-' )? t= ( K_NAN | K_INFINITY ) );
public final Constants.Literal constant() throws RecognitionException {
Constants.Literal constant = null;
Token t=null;
try {
// Parser.g:1268:5: (t= STRING_LITERAL |t= INTEGER |t= FLOAT |t= BOOLEAN |t= DURATION |t= UUID |t= HEXNUMBER | ( '-' )? t= ( K_NAN | K_INFINITY ) )
int alt162=8;
switch ( input.LA(1) ) {
case STRING_LITERAL:
{
alt162=1;
}
break;
case INTEGER:
{
alt162=2;
}
break;
case FLOAT:
{
alt162=3;
}
break;
case BOOLEAN:
{
alt162=4;
}
break;
case DURATION:
{
alt162=5;
}
break;
case UUID:
{
alt162=6;
}
break;
case HEXNUMBER:
{
alt162=7;
}
break;
case K_INFINITY:
case K_NAN:
case 192:
{
alt162=8;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 162, 0, input);
throw nvae;
}
switch (alt162) {
case 1 :
// Parser.g:1268:7: t= STRING_LITERAL
{
t=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_constant8654);
constant = Constants.Literal.string((t!=null?t.getText():null));
}
break;
case 2 :
// Parser.g:1269:7: t= INTEGER
{
t=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_constant8666);
constant = Constants.Literal.integer((t!=null?t.getText():null));
}
break;
case 3 :
// Parser.g:1270:7: t= FLOAT
{
t=(Token)match(input,FLOAT,FOLLOW_FLOAT_in_constant8685);
constant = Constants.Literal.floatingPoint((t!=null?t.getText():null));
}
break;
case 4 :
// Parser.g:1271:7: t= BOOLEAN
{
t=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_constant8706);
constant = Constants.Literal.bool((t!=null?t.getText():null));
}
break;
case 5 :
// Parser.g:1272:7: t= DURATION
{
t=(Token)match(input,DURATION,FOLLOW_DURATION_in_constant8725);
constant = Constants.Literal.duration((t!=null?t.getText():null));
}
break;
case 6 :
// Parser.g:1273:7: t= UUID
{
t=(Token)match(input,UUID,FOLLOW_UUID_in_constant8743);
constant = Constants.Literal.uuid((t!=null?t.getText():null));
}
break;
case 7 :
// Parser.g:1274:7: t= HEXNUMBER
{
t=(Token)match(input,HEXNUMBER,FOLLOW_HEXNUMBER_in_constant8765);
constant = Constants.Literal.hex((t!=null?t.getText():null));
}
break;
case 8 :
// Parser.g:1275:7: ( '-' )? t= ( K_NAN | K_INFINITY )
{
String sign="";
// Parser.g:1275:27: ( '-' )?
int alt161=2;
int LA161_0 = input.LA(1);
if ( (LA161_0==192) ) {
alt161=1;
}
switch (alt161) {
case 1 :
// Parser.g:1275:28: '-'
{
match(input,192,FOLLOW_192_in_constant8783);
sign = "-";
}
break;
}
t=input.LT(1);
if ( input.LA(1)==K_INFINITY||input.LA(1)==K_NAN ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
constant = Constants.Literal.floatingPoint(sign + (t!=null?t.getText():null));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return constant;
}
// $ANTLR end "constant"
// $ANTLR start "mapLiteral"
// Parser.g:1278:1: mapLiteral returns [Maps.Literal map] : '{' (k1= term ':' v1= term ( ',' kn= term ':' vn= term )* )? '}' ;
public final Maps.Literal mapLiteral() throws RecognitionException {
Maps.Literal map = null;
Term.Raw k1 =null;
Term.Raw v1 =null;
Term.Raw kn =null;
Term.Raw vn =null;
try {
// Parser.g:1279:5: ( '{' (k1= term ':' v1= term ( ',' kn= term ':' vn= term )* )? '}' )
// Parser.g:1279:7: '{' (k1= term ':' v1= term ( ',' kn= term ':' vn= term )* )? '}'
{
match(input,206,FOLLOW_206_in_mapLiteral8821);
List> m = new ArrayList>();
// Parser.g:1280:11: (k1= term ':' v1= term ( ',' kn= term ':' vn= term )* )?
int alt164=2;
int LA164_0 = input.LA(1);
if ( (LA164_0==BOOLEAN||LA164_0==DURATION||LA164_0==FLOAT||LA164_0==HEXNUMBER||(LA164_0 >= IDENT && LA164_0 <= INTEGER)||(LA164_0 >= K_AGGREGATE && LA164_0 <= K_ALL)||LA164_0==K_AS||LA164_0==K_ASCII||(LA164_0 >= K_BIGINT && LA164_0 <= K_BOOLEAN)||(LA164_0 >= K_CALLED && LA164_0 <= K_CLUSTERING)||(LA164_0 >= K_COMPACT && LA164_0 <= K_COUNTER)||(LA164_0 >= K_CUSTOM && LA164_0 <= K_DECIMAL)||(LA164_0 >= K_DISTINCT && LA164_0 <= K_DOUBLE)||LA164_0==K_DURATION||(LA164_0 >= K_EXISTS && LA164_0 <= K_FLOAT)||LA164_0==K_FROZEN||(LA164_0 >= K_FUNCTION && LA164_0 <= K_FUNCTIONS)||LA164_0==K_GROUP||(LA164_0 >= K_INET && LA164_0 <= K_INPUT)||LA164_0==K_INT||(LA164_0 >= K_JSON && LA164_0 <= K_KEYS)||(LA164_0 >= K_KEYSPACES && LA164_0 <= K_LIKE)||(LA164_0 >= K_LIST && LA164_0 <= K_MAP)||(LA164_0 >= K_NAN && LA164_0 <= K_NOLOGIN)||LA164_0==K_NOSUPERUSER||LA164_0==K_NULL||LA164_0==K_OPTIONS||(LA164_0 >= K_PARTITION && LA164_0 <= K_PERMISSIONS)||LA164_0==K_RETURNS||(LA164_0 >= K_ROLE && LA164_0 <= K_ROLES)||(LA164_0 >= K_SFUNC && LA164_0 <= K_TINYINT)||(LA164_0 >= K_TOKEN && LA164_0 <= K_TRIGGER)||(LA164_0 >= K_TTL && LA164_0 <= K_TYPE)||(LA164_0 >= K_USER && LA164_0 <= K_USERS)||(LA164_0 >= K_UUID && LA164_0 <= K_VARINT)||LA164_0==K_WRITETIME||(LA164_0 >= QMARK && LA164_0 <= QUOTED_NAME)||LA164_0==STRING_LITERAL||LA164_0==UUID||LA164_0==187||LA164_0==192||LA164_0==195||LA164_0==202||LA164_0==206) ) {
alt164=1;
}
switch (alt164) {
case 1 :
// Parser.g:1280:13: k1= term ':' v1= term ( ',' kn= term ':' vn= term )*
{
pushFollow(FOLLOW_term_in_mapLiteral8839);
k1=term();
state._fsp--;
match(input,195,FOLLOW_195_in_mapLiteral8841);
pushFollow(FOLLOW_term_in_mapLiteral8845);
v1=term();
state._fsp--;
m.add(Pair.create(k1, v1));
// Parser.g:1280:65: ( ',' kn= term ':' vn= term )*
loop163:
while (true) {
int alt163=2;
int LA163_0 = input.LA(1);
if ( (LA163_0==191) ) {
alt163=1;
}
switch (alt163) {
case 1 :
// Parser.g:1280:67: ',' kn= term ':' vn= term
{
match(input,191,FOLLOW_191_in_mapLiteral8851);
pushFollow(FOLLOW_term_in_mapLiteral8855);
kn=term();
state._fsp--;
match(input,195,FOLLOW_195_in_mapLiteral8857);
pushFollow(FOLLOW_term_in_mapLiteral8861);
vn=term();
state._fsp--;
m.add(Pair.create(kn, vn));
}
break;
default :
break loop163;
}
}
}
break;
}
match(input,207,FOLLOW_207_in_mapLiteral8877);
map = new Maps.Literal(m);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return map;
}
// $ANTLR end "mapLiteral"
// $ANTLR start "setOrMapLiteral"
// Parser.g:1284:1: setOrMapLiteral[Term.Raw t] returns [Term.Raw value] : ( ':' v= term ( ',' kn= term ':' vn= term )* | ( ',' tn= term )* );
public final Term.Raw setOrMapLiteral(Term.Raw t) throws RecognitionException {
Term.Raw value = null;
Term.Raw v =null;
Term.Raw kn =null;
Term.Raw vn =null;
Term.Raw tn =null;
try {
// Parser.g:1285:5: ( ':' v= term ( ',' kn= term ':' vn= term )* | ( ',' tn= term )* )
int alt167=2;
int LA167_0 = input.LA(1);
if ( (LA167_0==195) ) {
alt167=1;
}
else if ( (LA167_0==191||LA167_0==207) ) {
alt167=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 167, 0, input);
throw nvae;
}
switch (alt167) {
case 1 :
// Parser.g:1285:7: ':' v= term ( ',' kn= term ':' vn= term )*
{
match(input,195,FOLLOW_195_in_setOrMapLiteral8901);
pushFollow(FOLLOW_term_in_setOrMapLiteral8905);
v=term();
state._fsp--;
List> m = new ArrayList>(); m.add(Pair.create(t, v));
// Parser.g:1286:11: ( ',' kn= term ':' vn= term )*
loop165:
while (true) {
int alt165=2;
int LA165_0 = input.LA(1);
if ( (LA165_0==191) ) {
alt165=1;
}
switch (alt165) {
case 1 :
// Parser.g:1286:13: ',' kn= term ':' vn= term
{
match(input,191,FOLLOW_191_in_setOrMapLiteral8921);
pushFollow(FOLLOW_term_in_setOrMapLiteral8925);
kn=term();
state._fsp--;
match(input,195,FOLLOW_195_in_setOrMapLiteral8927);
pushFollow(FOLLOW_term_in_setOrMapLiteral8931);
vn=term();
state._fsp--;
m.add(Pair.create(kn, vn));
}
break;
default :
break loop165;
}
}
value = new Maps.Literal(m);
}
break;
case 2 :
// Parser.g:1288:7: ( ',' tn= term )*
{
List s = new ArrayList(); s.add(t);
// Parser.g:1289:11: ( ',' tn= term )*
loop166:
while (true) {
int alt166=2;
int LA166_0 = input.LA(1);
if ( (LA166_0==191) ) {
alt166=1;
}
switch (alt166) {
case 1 :
// Parser.g:1289:13: ',' tn= term
{
match(input,191,FOLLOW_191_in_setOrMapLiteral8966);
pushFollow(FOLLOW_term_in_setOrMapLiteral8970);
tn=term();
state._fsp--;
s.add(tn);
}
break;
default :
break loop166;
}
}
value = new Sets.Literal(s);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return value;
}
// $ANTLR end "setOrMapLiteral"
// $ANTLR start "collectionLiteral"
// Parser.g:1293:1: collectionLiteral returns [Term.Raw value] : ( '[' (t1= term ( ',' tn= term )* )? ']' | '{' t= term v= setOrMapLiteral[t] '}' | '{' '}' );
public final Term.Raw collectionLiteral() throws RecognitionException {
Term.Raw value = null;
Term.Raw t1 =null;
Term.Raw tn =null;
Term.Raw t =null;
Term.Raw v =null;
try {
// Parser.g:1294:5: ( '[' (t1= term ( ',' tn= term )* )? ']' | '{' t= term v= setOrMapLiteral[t] '}' | '{' '}' )
int alt170=3;
int LA170_0 = input.LA(1);
if ( (LA170_0==202) ) {
alt170=1;
}
else if ( (LA170_0==206) ) {
int LA170_2 = input.LA(2);
if ( (LA170_2==207) ) {
alt170=3;
}
else if ( (LA170_2==BOOLEAN||LA170_2==DURATION||LA170_2==FLOAT||LA170_2==HEXNUMBER||(LA170_2 >= IDENT && LA170_2 <= INTEGER)||(LA170_2 >= K_AGGREGATE && LA170_2 <= K_ALL)||LA170_2==K_AS||LA170_2==K_ASCII||(LA170_2 >= K_BIGINT && LA170_2 <= K_BOOLEAN)||(LA170_2 >= K_CALLED && LA170_2 <= K_CLUSTERING)||(LA170_2 >= K_COMPACT && LA170_2 <= K_COUNTER)||(LA170_2 >= K_CUSTOM && LA170_2 <= K_DECIMAL)||(LA170_2 >= K_DISTINCT && LA170_2 <= K_DOUBLE)||LA170_2==K_DURATION||(LA170_2 >= K_EXISTS && LA170_2 <= K_FLOAT)||LA170_2==K_FROZEN||(LA170_2 >= K_FUNCTION && LA170_2 <= K_FUNCTIONS)||LA170_2==K_GROUP||(LA170_2 >= K_INET && LA170_2 <= K_INPUT)||LA170_2==K_INT||(LA170_2 >= K_JSON && LA170_2 <= K_KEYS)||(LA170_2 >= K_KEYSPACES && LA170_2 <= K_LIKE)||(LA170_2 >= K_LIST && LA170_2 <= K_MAP)||(LA170_2 >= K_NAN && LA170_2 <= K_NOLOGIN)||LA170_2==K_NOSUPERUSER||LA170_2==K_NULL||LA170_2==K_OPTIONS||(LA170_2 >= K_PARTITION && LA170_2 <= K_PERMISSIONS)||LA170_2==K_RETURNS||(LA170_2 >= K_ROLE && LA170_2 <= K_ROLES)||(LA170_2 >= K_SFUNC && LA170_2 <= K_TINYINT)||(LA170_2 >= K_TOKEN && LA170_2 <= K_TRIGGER)||(LA170_2 >= K_TTL && LA170_2 <= K_TYPE)||(LA170_2 >= K_USER && LA170_2 <= K_USERS)||(LA170_2 >= K_UUID && LA170_2 <= K_VARINT)||LA170_2==K_WRITETIME||(LA170_2 >= QMARK && LA170_2 <= QUOTED_NAME)||LA170_2==STRING_LITERAL||LA170_2==UUID||LA170_2==187||LA170_2==192||LA170_2==195||LA170_2==202||LA170_2==206) ) {
alt170=2;
}
else {
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 170, 2, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 170, 0, input);
throw nvae;
}
switch (alt170) {
case 1 :
// Parser.g:1294:7: '[' (t1= term ( ',' tn= term )* )? ']'
{
match(input,202,FOLLOW_202_in_collectionLiteral9004);
List l = new ArrayList();
// Parser.g:1295:11: (t1= term ( ',' tn= term )* )?
int alt169=2;
int LA169_0 = input.LA(1);
if ( (LA169_0==BOOLEAN||LA169_0==DURATION||LA169_0==FLOAT||LA169_0==HEXNUMBER||(LA169_0 >= IDENT && LA169_0 <= INTEGER)||(LA169_0 >= K_AGGREGATE && LA169_0 <= K_ALL)||LA169_0==K_AS||LA169_0==K_ASCII||(LA169_0 >= K_BIGINT && LA169_0 <= K_BOOLEAN)||(LA169_0 >= K_CALLED && LA169_0 <= K_CLUSTERING)||(LA169_0 >= K_COMPACT && LA169_0 <= K_COUNTER)||(LA169_0 >= K_CUSTOM && LA169_0 <= K_DECIMAL)||(LA169_0 >= K_DISTINCT && LA169_0 <= K_DOUBLE)||LA169_0==K_DURATION||(LA169_0 >= K_EXISTS && LA169_0 <= K_FLOAT)||LA169_0==K_FROZEN||(LA169_0 >= K_FUNCTION && LA169_0 <= K_FUNCTIONS)||LA169_0==K_GROUP||(LA169_0 >= K_INET && LA169_0 <= K_INPUT)||LA169_0==K_INT||(LA169_0 >= K_JSON && LA169_0 <= K_KEYS)||(LA169_0 >= K_KEYSPACES && LA169_0 <= K_LIKE)||(LA169_0 >= K_LIST && LA169_0 <= K_MAP)||(LA169_0 >= K_NAN && LA169_0 <= K_NOLOGIN)||LA169_0==K_NOSUPERUSER||LA169_0==K_NULL||LA169_0==K_OPTIONS||(LA169_0 >= K_PARTITION && LA169_0 <= K_PERMISSIONS)||LA169_0==K_RETURNS||(LA169_0 >= K_ROLE && LA169_0 <= K_ROLES)||(LA169_0 >= K_SFUNC && LA169_0 <= K_TINYINT)||(LA169_0 >= K_TOKEN && LA169_0 <= K_TRIGGER)||(LA169_0 >= K_TTL && LA169_0 <= K_TYPE)||(LA169_0 >= K_USER && LA169_0 <= K_USERS)||(LA169_0 >= K_UUID && LA169_0 <= K_VARINT)||LA169_0==K_WRITETIME||(LA169_0 >= QMARK && LA169_0 <= QUOTED_NAME)||LA169_0==STRING_LITERAL||LA169_0==UUID||LA169_0==187||LA169_0==192||LA169_0==195||LA169_0==202||LA169_0==206) ) {
alt169=1;
}
switch (alt169) {
case 1 :
// Parser.g:1295:13: t1= term ( ',' tn= term )*
{
pushFollow(FOLLOW_term_in_collectionLiteral9022);
t1=term();
state._fsp--;
l.add(t1);
// Parser.g:1295:36: ( ',' tn= term )*
loop168:
while (true) {
int alt168=2;
int LA168_0 = input.LA(1);
if ( (LA168_0==191) ) {
alt168=1;
}
switch (alt168) {
case 1 :
// Parser.g:1295:38: ',' tn= term
{
match(input,191,FOLLOW_191_in_collectionLiteral9028);
pushFollow(FOLLOW_term_in_collectionLiteral9032);
tn=term();
state._fsp--;
l.add(tn);
}
break;
default :
break loop168;
}
}
}
break;
}
match(input,204,FOLLOW_204_in_collectionLiteral9048);
value = new Lists.Literal(l);
}
break;
case 2 :
// Parser.g:1297:7: '{' t= term v= setOrMapLiteral[t] '}'
{
match(input,206,FOLLOW_206_in_collectionLiteral9058);
pushFollow(FOLLOW_term_in_collectionLiteral9062);
t=term();
state._fsp--;
pushFollow(FOLLOW_setOrMapLiteral_in_collectionLiteral9066);
v=setOrMapLiteral(t);
state._fsp--;
value = v;
match(input,207,FOLLOW_207_in_collectionLiteral9071);
}
break;
case 3 :
// Parser.g:1300:7: '{' '}'
{
match(input,206,FOLLOW_206_in_collectionLiteral9089);
match(input,207,FOLLOW_207_in_collectionLiteral9091);
value = new Sets.Literal(Collections.emptyList());
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return value;
}
// $ANTLR end "collectionLiteral"
// $ANTLR start "usertypeLiteral"
// Parser.g:1303:1: usertypeLiteral returns [UserTypes.Literal ut] : '{' k1= fident ':' v1= term ( ',' kn= fident ':' vn= term )* '}' ;
public final UserTypes.Literal usertypeLiteral() throws RecognitionException {
UserTypes.Literal ut = null;
FieldIdentifier k1 =null;
Term.Raw v1 =null;
FieldIdentifier kn =null;
Term.Raw vn =null;
Map m = new HashMap<>();
try {
// Parser.g:1307:5: ( '{' k1= fident ':' v1= term ( ',' kn= fident ':' vn= term )* '}' )
// Parser.g:1307:7: '{' k1= fident ':' v1= term ( ',' kn= fident ':' vn= term )* '}'
{
match(input,206,FOLLOW_206_in_usertypeLiteral9135);
pushFollow(FOLLOW_fident_in_usertypeLiteral9139);
k1=fident();
state._fsp--;
match(input,195,FOLLOW_195_in_usertypeLiteral9141);
pushFollow(FOLLOW_term_in_usertypeLiteral9145);
v1=term();
state._fsp--;
m.put(k1, v1);
// Parser.g:1307:52: ( ',' kn= fident ':' vn= term )*
loop171:
while (true) {
int alt171=2;
int LA171_0 = input.LA(1);
if ( (LA171_0==191) ) {
alt171=1;
}
switch (alt171) {
case 1 :
// Parser.g:1307:54: ',' kn= fident ':' vn= term
{
match(input,191,FOLLOW_191_in_usertypeLiteral9151);
pushFollow(FOLLOW_fident_in_usertypeLiteral9155);
kn=fident();
state._fsp--;
match(input,195,FOLLOW_195_in_usertypeLiteral9157);
pushFollow(FOLLOW_term_in_usertypeLiteral9161);
vn=term();
state._fsp--;
m.put(kn, vn);
}
break;
default :
break loop171;
}
}
match(input,207,FOLLOW_207_in_usertypeLiteral9168);
}
ut = new UserTypes.Literal(m);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return ut;
}
// $ANTLR end "usertypeLiteral"
// $ANTLR start "tupleLiteral"
// Parser.g:1310:1: tupleLiteral returns [Tuples.Literal tt] : '(' t1= term ( ',' tn= term )* ')' ;
public final Tuples.Literal tupleLiteral() throws RecognitionException {
Tuples.Literal tt = null;
Term.Raw t1 =null;
Term.Raw tn =null;
List l = new ArrayList();
try {
// Parser.g:1313:5: ( '(' t1= term ( ',' tn= term )* ')' )
// Parser.g:1313:7: '(' t1= term ( ',' tn= term )* ')'
{
match(input,187,FOLLOW_187_in_tupleLiteral9205);
pushFollow(FOLLOW_term_in_tupleLiteral9209);
t1=term();
state._fsp--;
l.add(t1);
// Parser.g:1313:34: ( ',' tn= term )*
loop172:
while (true) {
int alt172=2;
int LA172_0 = input.LA(1);
if ( (LA172_0==191) ) {
alt172=1;
}
switch (alt172) {
case 1 :
// Parser.g:1313:36: ',' tn= term
{
match(input,191,FOLLOW_191_in_tupleLiteral9215);
pushFollow(FOLLOW_term_in_tupleLiteral9219);
tn=term();
state._fsp--;
l.add(tn);
}
break;
default :
break loop172;
}
}
match(input,188,FOLLOW_188_in_tupleLiteral9226);
}
tt = new Tuples.Literal(l);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return tt;
}
// $ANTLR end "tupleLiteral"
// $ANTLR start "value"
// Parser.g:1316:1: value returns [Term.Raw value] : (c= constant |l= collectionLiteral |u= usertypeLiteral |t= tupleLiteral | K_NULL | ':' id= noncol_ident | QMARK );
public final Term.Raw value() throws RecognitionException {
Term.Raw value = null;
Constants.Literal c =null;
Term.Raw l =null;
UserTypes.Literal u =null;
Tuples.Literal t =null;
ColumnIdentifier id =null;
try {
// Parser.g:1317:5: (c= constant |l= collectionLiteral |u= usertypeLiteral |t= tupleLiteral | K_NULL | ':' id= noncol_ident | QMARK )
int alt173=7;
alt173 = dfa173.predict(input);
switch (alt173) {
case 1 :
// Parser.g:1317:7: c= constant
{
pushFollow(FOLLOW_constant_in_value9249);
c=constant();
state._fsp--;
value = c;
}
break;
case 2 :
// Parser.g:1318:7: l= collectionLiteral
{
pushFollow(FOLLOW_collectionLiteral_in_value9271);
l=collectionLiteral();
state._fsp--;
value = l;
}
break;
case 3 :
// Parser.g:1319:7: u= usertypeLiteral
{
pushFollow(FOLLOW_usertypeLiteral_in_value9284);
u=usertypeLiteral();
state._fsp--;
value = u;
}
break;
case 4 :
// Parser.g:1320:7: t= tupleLiteral
{
pushFollow(FOLLOW_tupleLiteral_in_value9299);
t=tupleLiteral();
state._fsp--;
value = t;
}
break;
case 5 :
// Parser.g:1321:7: K_NULL
{
match(input,K_NULL,FOLLOW_K_NULL_in_value9315);
value = Constants.NULL_LITERAL;
}
break;
case 6 :
// Parser.g:1322:7: ':' id= noncol_ident
{
match(input,195,FOLLOW_195_in_value9339);
pushFollow(FOLLOW_noncol_ident_in_value9343);
id=noncol_ident();
state._fsp--;
value = newBindVariables(id);
}
break;
case 7 :
// Parser.g:1323:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_value9354);
value = newBindVariables(null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return value;
}
// $ANTLR end "value"
// $ANTLR start "intValue"
// Parser.g:1326:1: intValue returns [Term.Raw value] : (t= INTEGER | ':' id= noncol_ident | QMARK );
public final Term.Raw intValue() throws RecognitionException {
Term.Raw value = null;
Token t=null;
ColumnIdentifier id =null;
try {
// Parser.g:1327:5: (t= INTEGER | ':' id= noncol_ident | QMARK )
int alt174=3;
switch ( input.LA(1) ) {
case INTEGER:
{
alt174=1;
}
break;
case 195:
{
alt174=2;
}
break;
case QMARK:
{
alt174=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 174, 0, input);
throw nvae;
}
switch (alt174) {
case 1 :
// Parser.g:1327:7: t= INTEGER
{
t=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_intValue9394);
value = Constants.Literal.integer((t!=null?t.getText():null));
}
break;
case 2 :
// Parser.g:1328:7: ':' id= noncol_ident
{
match(input,195,FOLLOW_195_in_intValue9408);
pushFollow(FOLLOW_noncol_ident_in_intValue9412);
id=noncol_ident();
state._fsp--;
value = newBindVariables(id);
}
break;
case 3 :
// Parser.g:1329:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_intValue9423);
value = newBindVariables(null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return value;
}
// $ANTLR end "intValue"
// $ANTLR start "functionName"
// Parser.g:1332:1: functionName returns [FunctionName s] : (ks= keyspaceName '.' )? f= allowedFunctionName ;
public final FunctionName functionName() throws RecognitionException {
FunctionName s = null;
String ks =null;
String f =null;
try {
// Parser.g:1335:5: ( (ks= keyspaceName '.' )? f= allowedFunctionName )
// Parser.g:1335:7: (ks= keyspaceName '.' )? f= allowedFunctionName
{
// Parser.g:1335:7: (ks= keyspaceName '.' )?
int alt175=2;
alt175 = dfa175.predict(input);
switch (alt175) {
case 1 :
// Parser.g:1335:8: ks= keyspaceName '.'
{
pushFollow(FOLLOW_keyspaceName_in_functionName9469);
ks=keyspaceName();
state._fsp--;
match(input,194,FOLLOW_194_in_functionName9471);
}
break;
}
pushFollow(FOLLOW_allowedFunctionName_in_functionName9477);
f=allowedFunctionName();
state._fsp--;
s = f == null ? null : new FunctionName(ks, f);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return s;
}
// $ANTLR end "functionName"
// $ANTLR start "allowedFunctionName"
// Parser.g:1338:1: allowedFunctionName returns [String s] : (f= IDENT |f= QUOTED_NAME |u= unreserved_function_keyword | K_TOKEN | K_COUNT );
public final String allowedFunctionName() throws RecognitionException {
String s = null;
Token f=null;
String u =null;
try {
// Parser.g:1339:5: (f= IDENT |f= QUOTED_NAME |u= unreserved_function_keyword | K_TOKEN | K_COUNT )
int alt176=5;
switch ( input.LA(1) ) {
case IDENT:
{
alt176=1;
}
break;
case QUOTED_NAME:
{
alt176=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_ASCII:
case K_BIGINT:
case K_BLOB:
case K_BOOLEAN:
case K_CALLED:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_COUNTER:
case K_CUSTOM:
case K_DATE:
case K_DECIMAL:
case K_DOUBLE:
case K_DURATION:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FLOAT:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INET:
case K_INITCOND:
case K_INPUT:
case K_INT:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_SMALLINT:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TEXT:
case K_TIME:
case K_TIMESTAMP:
case K_TIMEUUID:
case K_TINYINT:
case K_TRIGGER:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_UUID:
case K_VALUES:
case K_VARCHAR:
case K_VARINT:
{
alt176=3;
}
break;
case K_TOKEN:
{
alt176=4;
}
break;
case K_COUNT:
{
alt176=5;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 176, 0, input);
throw nvae;
}
switch (alt176) {
case 1 :
// Parser.g:1339:7: f= IDENT
{
f=(Token)match(input,IDENT,FOLLOW_IDENT_in_allowedFunctionName9504);
s = (f!=null?f.getText():null).toLowerCase();
}
break;
case 2 :
// Parser.g:1340:7: f= QUOTED_NAME
{
f=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_allowedFunctionName9538);
s = (f!=null?f.getText():null);
}
break;
case 3 :
// Parser.g:1341:7: u= unreserved_function_keyword
{
pushFollow(FOLLOW_unreserved_function_keyword_in_allowedFunctionName9566);
u=unreserved_function_keyword();
state._fsp--;
s = u;
}
break;
case 4 :
// Parser.g:1342:7: K_TOKEN
{
match(input,K_TOKEN,FOLLOW_K_TOKEN_in_allowedFunctionName9576);
s = "token";
}
break;
case 5 :
// Parser.g:1343:7: K_COUNT
{
match(input,K_COUNT,FOLLOW_K_COUNT_in_allowedFunctionName9608);
s = "count";
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return s;
}
// $ANTLR end "allowedFunctionName"
// $ANTLR start "function"
// Parser.g:1346:1: function returns [Term.Raw t] : (f= functionName '(' ')' |f= functionName '(' args= functionArgs ')' );
public final Term.Raw function() throws RecognitionException {
Term.Raw t = null;
FunctionName f =null;
List args =null;
try {
// Parser.g:1347:5: (f= functionName '(' ')' |f= functionName '(' args= functionArgs ')' )
int alt177=2;
alt177 = dfa177.predict(input);
switch (alt177) {
case 1 :
// Parser.g:1347:7: f= functionName '(' ')'
{
pushFollow(FOLLOW_functionName_in_function9655);
f=functionName();
state._fsp--;
match(input,187,FOLLOW_187_in_function9657);
match(input,188,FOLLOW_188_in_function9659);
t = new FunctionCall.Raw(f, Collections.emptyList());
}
break;
case 2 :
// Parser.g:1348:7: f= functionName '(' args= functionArgs ')'
{
pushFollow(FOLLOW_functionName_in_function9689);
f=functionName();
state._fsp--;
match(input,187,FOLLOW_187_in_function9691);
pushFollow(FOLLOW_functionArgs_in_function9695);
args=functionArgs();
state._fsp--;
match(input,188,FOLLOW_188_in_function9697);
t = new FunctionCall.Raw(f, args);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return t;
}
// $ANTLR end "function"
// $ANTLR start "functionArgs"
// Parser.g:1351:1: functionArgs returns [List args] : t1= term ( ',' tn= term )* ;
public final List functionArgs() throws RecognitionException {
List args = null;
Term.Raw t1 =null;
Term.Raw tn =null;
args = new ArrayList();
try {
// Parser.g:1353:5: (t1= term ( ',' tn= term )* )
// Parser.g:1353:7: t1= term ( ',' tn= term )*
{
pushFollow(FOLLOW_term_in_functionArgs9730);
t1=term();
state._fsp--;
args.add(t1);
// Parser.g:1353:32: ( ',' tn= term )*
loop178:
while (true) {
int alt178=2;
int LA178_0 = input.LA(1);
if ( (LA178_0==191) ) {
alt178=1;
}
switch (alt178) {
case 1 :
// Parser.g:1353:34: ',' tn= term
{
match(input,191,FOLLOW_191_in_functionArgs9736);
pushFollow(FOLLOW_term_in_functionArgs9740);
tn=term();
state._fsp--;
args.add(tn);
}
break;
default :
break loop178;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return args;
}
// $ANTLR end "functionArgs"
// $ANTLR start "term"
// Parser.g:1356:1: term returns [Term.Raw term] : (v= value |f= function | '(' c= comparatorType ')' t= term );
public final Term.Raw term() throws RecognitionException {
Term.Raw term = null;
Term.Raw v =null;
Term.Raw f =null;
CQL3Type.Raw c =null;
Term.Raw t =null;
try {
// Parser.g:1357:5: (v= value |f= function | '(' c= comparatorType ')' t= term )
int alt179=3;
alt179 = dfa179.predict(input);
switch (alt179) {
case 1 :
// Parser.g:1357:7: v= value
{
pushFollow(FOLLOW_value_in_term9768);
v=value();
state._fsp--;
term = v;
}
break;
case 2 :
// Parser.g:1358:7: f= function
{
pushFollow(FOLLOW_function_in_term9805);
f=function();
state._fsp--;
term = f;
}
break;
case 3 :
// Parser.g:1359:7: '(' c= comparatorType ')' t= term
{
match(input,187,FOLLOW_187_in_term9837);
pushFollow(FOLLOW_comparatorType_in_term9841);
c=comparatorType();
state._fsp--;
match(input,188,FOLLOW_188_in_term9843);
pushFollow(FOLLOW_term_in_term9847);
t=term();
state._fsp--;
term = new TypeCast(c, t);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return term;
}
// $ANTLR end "term"
// $ANTLR start "columnOperation"
// Parser.g:1362:1: columnOperation[List> operations] : key= cident columnOperationDifferentiator[operations, key] ;
public final void columnOperation(List> operations) throws RecognitionException {
ColumnDefinition.Raw key =null;
try {
// Parser.g:1363:5: (key= cident columnOperationDifferentiator[operations, key] )
// Parser.g:1363:7: key= cident columnOperationDifferentiator[operations, key]
{
pushFollow(FOLLOW_cident_in_columnOperation9870);
key=cident();
state._fsp--;
pushFollow(FOLLOW_columnOperationDifferentiator_in_columnOperation9872);
columnOperationDifferentiator(operations, key);
state._fsp--;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "columnOperation"
// $ANTLR start "columnOperationDifferentiator"
// Parser.g:1366:1: columnOperationDifferentiator[List> operations, ColumnDefinition.Raw key] : ( '=' normalColumnOperation[operations, key] | shorthandColumnOperation[operations, key] | '[' k= term ']' collectionColumnOperation[operations, key, k] | '.' field= fident udtColumnOperation[operations, key, field] );
public final void columnOperationDifferentiator(List> operations, ColumnDefinition.Raw key) throws RecognitionException {
Term.Raw k =null;
FieldIdentifier field =null;
try {
// Parser.g:1367:5: ( '=' normalColumnOperation[operations, key] | shorthandColumnOperation[operations, key] | '[' k= term ']' collectionColumnOperation[operations, key, k] | '.' field= fident udtColumnOperation[operations, key, field] )
int alt180=4;
switch ( input.LA(1) ) {
case 199:
{
alt180=1;
}
break;
case 190:
case 193:
{
alt180=2;
}
break;
case 202:
{
alt180=3;
}
break;
case 194:
{
alt180=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 180, 0, input);
throw nvae;
}
switch (alt180) {
case 1 :
// Parser.g:1367:7: '=' normalColumnOperation[operations, key]
{
match(input,199,FOLLOW_199_in_columnOperationDifferentiator9891);
pushFollow(FOLLOW_normalColumnOperation_in_columnOperationDifferentiator9893);
normalColumnOperation(operations, key);
state._fsp--;
}
break;
case 2 :
// Parser.g:1368:7: shorthandColumnOperation[operations, key]
{
pushFollow(FOLLOW_shorthandColumnOperation_in_columnOperationDifferentiator9902);
shorthandColumnOperation(operations, key);
state._fsp--;
}
break;
case 3 :
// Parser.g:1369:7: '[' k= term ']' collectionColumnOperation[operations, key, k]
{
match(input,202,FOLLOW_202_in_columnOperationDifferentiator9911);
pushFollow(FOLLOW_term_in_columnOperationDifferentiator9915);
k=term();
state._fsp--;
match(input,204,FOLLOW_204_in_columnOperationDifferentiator9917);
pushFollow(FOLLOW_collectionColumnOperation_in_columnOperationDifferentiator9919);
collectionColumnOperation(operations, key, k);
state._fsp--;
}
break;
case 4 :
// Parser.g:1370:7: '.' field= fident udtColumnOperation[operations, key, field]
{
match(input,194,FOLLOW_194_in_columnOperationDifferentiator9928);
pushFollow(FOLLOW_fident_in_columnOperationDifferentiator9932);
field=fident();
state._fsp--;
pushFollow(FOLLOW_udtColumnOperation_in_columnOperationDifferentiator9934);
udtColumnOperation(operations, key, field);
state._fsp--;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "columnOperationDifferentiator"
// $ANTLR start "normalColumnOperation"
// Parser.g:1373:1: normalColumnOperation[List> operations, ColumnDefinition.Raw key] : (t= term ( '+' c= cident )? |c= cident sig= ( '+' | '-' ) t= term |c= cident i= INTEGER );
public final void normalColumnOperation(List> operations, ColumnDefinition.Raw key) throws RecognitionException {
Token sig=null;
Token i=null;
Term.Raw t =null;
ColumnDefinition.Raw c =null;
try {
// Parser.g:1374:5: (t= term ( '+' c= cident )? |c= cident sig= ( '+' | '-' ) t= term |c= cident i= INTEGER )
int alt182=3;
alt182 = dfa182.predict(input);
switch (alt182) {
case 1 :
// Parser.g:1374:7: t= term ( '+' c= cident )?
{
pushFollow(FOLLOW_term_in_normalColumnOperation9955);
t=term();
state._fsp--;
// Parser.g:1374:14: ( '+' c= cident )?
int alt181=2;
int LA181_0 = input.LA(1);
if ( (LA181_0==189) ) {
alt181=1;
}
switch (alt181) {
case 1 :
// Parser.g:1374:15: '+' c= cident
{
match(input,189,FOLLOW_189_in_normalColumnOperation9958);
pushFollow(FOLLOW_cident_in_normalColumnOperation9962);
c=cident();
state._fsp--;
}
break;
}
if (c == null)
{
addRawUpdate(operations, key, new Operation.SetValue(t));
}
else
{
if (!key.equals(c))
addRecognitionError("Only expressions of the form X = + X are supported.");
addRawUpdate(operations, key, new Operation.Prepend(t));
}
}
break;
case 2 :
// Parser.g:1387:7: c= cident sig= ( '+' | '-' ) t= term
{
pushFollow(FOLLOW_cident_in_normalColumnOperation9983);
c=cident();
state._fsp--;
sig=input.LT(1);
if ( input.LA(1)==189||input.LA(1)==192 ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
pushFollow(FOLLOW_term_in_normalColumnOperation9997);
t=term();
state._fsp--;
if (!key.equals(c))
addRecognitionError("Only expressions of the form X = X " + (sig!=null?sig.getText():null) + " are supported.");
addRawUpdate(operations, key, (sig!=null?sig.getText():null).equals("+") ? new Operation.Addition(t) : new Operation.Substraction(t));
}
break;
case 3 :
// Parser.g:1393:7: c= cident i= INTEGER
{
pushFollow(FOLLOW_cident_in_normalColumnOperation10015);
c=cident();
state._fsp--;
i=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_normalColumnOperation10019);
// Note that this production *is* necessary because X = X - 3 will in fact be lexed as [ X, '=', X, INTEGER].
if (!key.equals(c))
// We don't yet allow a '+' in front of an integer, but we could in the future really, so let's be future-proof in our error message
addRecognitionError("Only expressions of the form X = X " + ((i!=null?i.getText():null).charAt(0) == '-' ? '-' : '+') + " are supported.");
addRawUpdate(operations, key, new Operation.Addition(Constants.Literal.integer((i!=null?i.getText():null))));
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "normalColumnOperation"
// $ANTLR start "shorthandColumnOperation"
// Parser.g:1403:1: shorthandColumnOperation[List> operations, ColumnDefinition.Raw key] : sig= ( '+=' | '-=' ) t= term ;
public final void shorthandColumnOperation(List> operations, ColumnDefinition.Raw key) throws RecognitionException {
Token sig=null;
Term.Raw t =null;
try {
// Parser.g:1404:5: (sig= ( '+=' | '-=' ) t= term )
// Parser.g:1404:7: sig= ( '+=' | '-=' ) t= term
{
sig=input.LT(1);
if ( input.LA(1)==190||input.LA(1)==193 ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
pushFollow(FOLLOW_term_in_shorthandColumnOperation10057);
t=term();
state._fsp--;
addRawUpdate(operations, key, (sig!=null?sig.getText():null).equals("+=") ? new Operation.Addition(t) : new Operation.Substraction(t));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "shorthandColumnOperation"
// $ANTLR start "collectionColumnOperation"
// Parser.g:1410:1: collectionColumnOperation[List> operations, ColumnDefinition.Raw key, Term.Raw k] : '=' t= term ;
public final void collectionColumnOperation(List> operations, ColumnDefinition.Raw key, Term.Raw k) throws RecognitionException {
Term.Raw t =null;
try {
// Parser.g:1411:5: ( '=' t= term )
// Parser.g:1411:7: '=' t= term
{
match(input,199,FOLLOW_199_in_collectionColumnOperation10083);
pushFollow(FOLLOW_term_in_collectionColumnOperation10087);
t=term();
state._fsp--;
addRawUpdate(operations, key, new Operation.SetElement(k, t));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "collectionColumnOperation"
// $ANTLR start "udtColumnOperation"
// Parser.g:1417:1: udtColumnOperation[List> operations, ColumnDefinition.Raw key, FieldIdentifier field] : '=' t= term ;
public final void udtColumnOperation(List> operations, ColumnDefinition.Raw key, FieldIdentifier field) throws RecognitionException {
Term.Raw t =null;
try {
// Parser.g:1418:5: ( '=' t= term )
// Parser.g:1418:7: '=' t= term
{
match(input,199,FOLLOW_199_in_udtColumnOperation10113);
pushFollow(FOLLOW_term_in_udtColumnOperation10117);
t=term();
state._fsp--;
addRawUpdate(operations, key, new Operation.SetField(field, t));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "udtColumnOperation"
// $ANTLR start "columnCondition"
// Parser.g:1424:1: columnCondition[List> conditions] : key= cident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) | '[' element= term ']' (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) | '.' field= fident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) ) ;
public final void columnCondition(List> conditions) throws RecognitionException {
ColumnDefinition.Raw key =null;
Operator op =null;
Term.Raw t =null;
List values =null;
AbstractMarker.INRaw marker =null;
Term.Raw element =null;
FieldIdentifier field =null;
try {
// Parser.g:1426:5: (key= cident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) | '[' element= term ']' (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) | '.' field= fident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) ) )
// Parser.g:1426:7: key= cident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) | '[' element= term ']' (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) | '.' field= fident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) )
{
pushFollow(FOLLOW_cident_in_columnCondition10150);
key=cident();
state._fsp--;
// Parser.g:1427:9: (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) | '[' element= term ']' (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) | '.' field= fident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) ) )
int alt188=4;
switch ( input.LA(1) ) {
case 186:
case 197:
case 198:
case 199:
case 200:
case 201:
{
alt188=1;
}
break;
case K_IN:
{
alt188=2;
}
break;
case 202:
{
alt188=3;
}
break;
case 194:
{
alt188=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 188, 0, input);
throw nvae;
}
switch (alt188) {
case 1 :
// Parser.g:1427:11: op= relationType t= term
{
pushFollow(FOLLOW_relationType_in_columnCondition10164);
op=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_columnCondition10168);
t=term();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.simpleCondition(t, op)));
}
break;
case 2 :
// Parser.g:1428:11: K_IN (values= singleColumnInValues |marker= inMarker )
{
match(input,K_IN,FOLLOW_K_IN_in_columnCondition10182);
// Parser.g:1429:13: (values= singleColumnInValues |marker= inMarker )
int alt183=2;
int LA183_0 = input.LA(1);
if ( (LA183_0==187) ) {
alt183=1;
}
else if ( (LA183_0==QMARK||LA183_0==195) ) {
alt183=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 183, 0, input);
throw nvae;
}
switch (alt183) {
case 1 :
// Parser.g:1429:15: values= singleColumnInValues
{
pushFollow(FOLLOW_singleColumnInValues_in_columnCondition10200);
values=singleColumnInValues();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.simpleInCondition(values)));
}
break;
case 2 :
// Parser.g:1430:15: marker= inMarker
{
pushFollow(FOLLOW_inMarker_in_columnCondition10220);
marker=inMarker();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.simpleInCondition(marker)));
}
break;
}
}
break;
case 3 :
// Parser.g:1432:11: '[' element= term ']' (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) )
{
match(input,202,FOLLOW_202_in_columnCondition10248);
pushFollow(FOLLOW_term_in_columnCondition10252);
element=term();
state._fsp--;
match(input,204,FOLLOW_204_in_columnCondition10254);
// Parser.g:1433:13: (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) )
int alt185=2;
int LA185_0 = input.LA(1);
if ( (LA185_0==186||(LA185_0 >= 197 && LA185_0 <= 201)) ) {
alt185=1;
}
else if ( (LA185_0==K_IN) ) {
alt185=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 185, 0, input);
throw nvae;
}
switch (alt185) {
case 1 :
// Parser.g:1433:15: op= relationType t= term
{
pushFollow(FOLLOW_relationType_in_columnCondition10272);
op=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_columnCondition10276);
t=term();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.collectionCondition(t, element, op)));
}
break;
case 2 :
// Parser.g:1434:15: K_IN (values= singleColumnInValues |marker= inMarker )
{
match(input,K_IN,FOLLOW_K_IN_in_columnCondition10294);
// Parser.g:1435:17: (values= singleColumnInValues |marker= inMarker )
int alt184=2;
int LA184_0 = input.LA(1);
if ( (LA184_0==187) ) {
alt184=1;
}
else if ( (LA184_0==QMARK||LA184_0==195) ) {
alt184=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 184, 0, input);
throw nvae;
}
switch (alt184) {
case 1 :
// Parser.g:1435:19: values= singleColumnInValues
{
pushFollow(FOLLOW_singleColumnInValues_in_columnCondition10316);
values=singleColumnInValues();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.collectionInCondition(element, values)));
}
break;
case 2 :
// Parser.g:1436:19: marker= inMarker
{
pushFollow(FOLLOW_inMarker_in_columnCondition10340);
marker=inMarker();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.collectionInCondition(element, marker)));
}
break;
}
}
break;
}
}
break;
case 4 :
// Parser.g:1439:11: '.' field= fident (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) )
{
match(input,194,FOLLOW_194_in_columnCondition10386);
pushFollow(FOLLOW_fident_in_columnCondition10390);
field=fident();
state._fsp--;
// Parser.g:1440:13: (op= relationType t= term | K_IN (values= singleColumnInValues |marker= inMarker ) )
int alt187=2;
int LA187_0 = input.LA(1);
if ( (LA187_0==186||(LA187_0 >= 197 && LA187_0 <= 201)) ) {
alt187=1;
}
else if ( (LA187_0==K_IN) ) {
alt187=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 187, 0, input);
throw nvae;
}
switch (alt187) {
case 1 :
// Parser.g:1440:15: op= relationType t= term
{
pushFollow(FOLLOW_relationType_in_columnCondition10408);
op=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_columnCondition10412);
t=term();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.udtFieldCondition(t, field, op)));
}
break;
case 2 :
// Parser.g:1441:15: K_IN (values= singleColumnInValues |marker= inMarker )
{
match(input,K_IN,FOLLOW_K_IN_in_columnCondition10430);
// Parser.g:1442:17: (values= singleColumnInValues |marker= inMarker )
int alt186=2;
int LA186_0 = input.LA(1);
if ( (LA186_0==187) ) {
alt186=1;
}
else if ( (LA186_0==QMARK||LA186_0==195) ) {
alt186=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 186, 0, input);
throw nvae;
}
switch (alt186) {
case 1 :
// Parser.g:1442:19: values= singleColumnInValues
{
pushFollow(FOLLOW_singleColumnInValues_in_columnCondition10452);
values=singleColumnInValues();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.udtFieldInCondition(field, values)));
}
break;
case 2 :
// Parser.g:1443:19: marker= inMarker
{
pushFollow(FOLLOW_inMarker_in_columnCondition10476);
marker=inMarker();
state._fsp--;
conditions.add(Pair.create(key, ColumnCondition.Raw.udtFieldInCondition(field, marker)));
}
break;
}
}
break;
}
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "columnCondition"
// $ANTLR start "properties"
// Parser.g:1449:1: properties[PropertyDefinitions props] : property[props] ( K_AND property[props] )* ;
public final void properties(PropertyDefinitions props) throws RecognitionException {
try {
// Parser.g:1450:5: ( property[props] ( K_AND property[props] )* )
// Parser.g:1450:7: property[props] ( K_AND property[props] )*
{
pushFollow(FOLLOW_property_in_properties10538);
property(props);
state._fsp--;
// Parser.g:1450:23: ( K_AND property[props] )*
loop189:
while (true) {
int alt189=2;
int LA189_0 = input.LA(1);
if ( (LA189_0==K_AND) ) {
alt189=1;
}
switch (alt189) {
case 1 :
// Parser.g:1450:24: K_AND property[props]
{
match(input,K_AND,FOLLOW_K_AND_in_properties10542);
pushFollow(FOLLOW_property_in_properties10544);
property(props);
state._fsp--;
}
break;
default :
break loop189;
}
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "properties"
// $ANTLR start "property"
// Parser.g:1453:1: property[PropertyDefinitions props] : (k= noncol_ident '=' simple= propertyValue |k= noncol_ident '=' map= mapLiteral );
public final void property(PropertyDefinitions props) throws RecognitionException {
ColumnIdentifier k =null;
String simple =null;
Maps.Literal map =null;
try {
// Parser.g:1454:5: (k= noncol_ident '=' simple= propertyValue |k= noncol_ident '=' map= mapLiteral )
int alt190=2;
alt190 = dfa190.predict(input);
switch (alt190) {
case 1 :
// Parser.g:1454:7: k= noncol_ident '=' simple= propertyValue
{
pushFollow(FOLLOW_noncol_ident_in_property10567);
k=noncol_ident();
state._fsp--;
match(input,199,FOLLOW_199_in_property10569);
pushFollow(FOLLOW_propertyValue_in_property10573);
simple=propertyValue();
state._fsp--;
try { props.addProperty(k.toString(), simple); } catch (SyntaxException e) { addRecognitionError(e.getMessage()); }
}
break;
case 2 :
// Parser.g:1455:7: k= noncol_ident '=' map= mapLiteral
{
pushFollow(FOLLOW_noncol_ident_in_property10585);
k=noncol_ident();
state._fsp--;
match(input,199,FOLLOW_199_in_property10587);
pushFollow(FOLLOW_mapLiteral_in_property10591);
map=mapLiteral();
state._fsp--;
try { props.addProperty(k.toString(), convertPropertyMap(map)); } catch (SyntaxException e) { addRecognitionError(e.getMessage()); }
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "property"
// $ANTLR start "propertyValue"
// Parser.g:1458:1: propertyValue returns [String str] : (c= constant |u= unreserved_keyword );
public final String propertyValue() throws RecognitionException {
String str = null;
Constants.Literal c =null;
String u =null;
try {
// Parser.g:1459:5: (c= constant |u= unreserved_keyword )
int alt191=2;
int LA191_0 = input.LA(1);
if ( (LA191_0==BOOLEAN||LA191_0==DURATION||LA191_0==FLOAT||LA191_0==HEXNUMBER||LA191_0==INTEGER||LA191_0==K_INFINITY||LA191_0==K_NAN||LA191_0==STRING_LITERAL||LA191_0==UUID||LA191_0==192) ) {
alt191=1;
}
else if ( ((LA191_0 >= K_AGGREGATE && LA191_0 <= K_ALL)||LA191_0==K_AS||LA191_0==K_ASCII||(LA191_0 >= K_BIGINT && LA191_0 <= K_BOOLEAN)||(LA191_0 >= K_CALLED && LA191_0 <= K_CLUSTERING)||(LA191_0 >= K_COMPACT && LA191_0 <= K_COUNTER)||(LA191_0 >= K_CUSTOM && LA191_0 <= K_DECIMAL)||(LA191_0 >= K_DISTINCT && LA191_0 <= K_DOUBLE)||LA191_0==K_DURATION||(LA191_0 >= K_EXISTS && LA191_0 <= K_FLOAT)||LA191_0==K_FROZEN||(LA191_0 >= K_FUNCTION && LA191_0 <= K_FUNCTIONS)||LA191_0==K_GROUP||LA191_0==K_INET||(LA191_0 >= K_INITCOND && LA191_0 <= K_INPUT)||LA191_0==K_INT||(LA191_0 >= K_JSON && LA191_0 <= K_KEYS)||(LA191_0 >= K_KEYSPACES && LA191_0 <= K_LIKE)||(LA191_0 >= K_LIST && LA191_0 <= K_MAP)||LA191_0==K_NOLOGIN||LA191_0==K_NOSUPERUSER||LA191_0==K_OPTIONS||(LA191_0 >= K_PARTITION && LA191_0 <= K_PERMISSIONS)||LA191_0==K_RETURNS||(LA191_0 >= K_ROLE && LA191_0 <= K_ROLES)||(LA191_0 >= K_SFUNC && LA191_0 <= K_TINYINT)||LA191_0==K_TRIGGER||(LA191_0 >= K_TTL && LA191_0 <= K_TYPE)||(LA191_0 >= K_USER && LA191_0 <= K_USERS)||(LA191_0 >= K_UUID && LA191_0 <= K_VARINT)||LA191_0==K_WRITETIME) ) {
alt191=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 191, 0, input);
throw nvae;
}
switch (alt191) {
case 1 :
// Parser.g:1459:7: c= constant
{
pushFollow(FOLLOW_constant_in_propertyValue10616);
c=constant();
state._fsp--;
str = c.getRawText();
}
break;
case 2 :
// Parser.g:1460:7: u= unreserved_keyword
{
pushFollow(FOLLOW_unreserved_keyword_in_propertyValue10638);
u=unreserved_keyword();
state._fsp--;
str = u;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return str;
}
// $ANTLR end "propertyValue"
// $ANTLR start "relationType"
// Parser.g:1463:1: relationType returns [Operator op] : ( '=' | '<' | '<=' | '>' | '>=' | '!=' );
public final Operator relationType() throws RecognitionException {
Operator op = null;
try {
// Parser.g:1464:5: ( '=' | '<' | '<=' | '>' | '>=' | '!=' )
int alt192=6;
switch ( input.LA(1) ) {
case 199:
{
alt192=1;
}
break;
case 197:
{
alt192=2;
}
break;
case 198:
{
alt192=3;
}
break;
case 200:
{
alt192=4;
}
break;
case 201:
{
alt192=5;
}
break;
case 186:
{
alt192=6;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 192, 0, input);
throw nvae;
}
switch (alt192) {
case 1 :
// Parser.g:1464:7: '='
{
match(input,199,FOLLOW_199_in_relationType10661);
op = Operator.EQ;
}
break;
case 2 :
// Parser.g:1465:7: '<'
{
match(input,197,FOLLOW_197_in_relationType10672);
op = Operator.LT;
}
break;
case 3 :
// Parser.g:1466:7: '<='
{
match(input,198,FOLLOW_198_in_relationType10683);
op = Operator.LTE;
}
break;
case 4 :
// Parser.g:1467:7: '>'
{
match(input,200,FOLLOW_200_in_relationType10693);
op = Operator.GT;
}
break;
case 5 :
// Parser.g:1468:7: '>='
{
match(input,201,FOLLOW_201_in_relationType10704);
op = Operator.GTE;
}
break;
case 6 :
// Parser.g:1469:7: '!='
{
match(input,186,FOLLOW_186_in_relationType10714);
op = Operator.NEQ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return op;
}
// $ANTLR end "relationType"
// $ANTLR start "relation"
// Parser.g:1472:1: relation[WhereClause.Builder clauses] : (name= cident type= relationType t= term |name= cident K_LIKE t= term |name= cident K_IS K_NOT K_NULL | K_TOKEN l= tupleOfIdentifiers type= relationType t= term |name= cident K_IN marker= inMarker |name= cident K_IN inValues= singleColumnInValues |name= cident K_CONTAINS ( K_KEY )? t= term |name= cident '[' key= term ']' type= relationType t= term |ids= tupleOfIdentifiers ( K_IN ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples ) |type= relationType literal= tupleLiteral |type= relationType tupleMarker= markerForTuple ) | '(' relation[$clauses] ')' );
public final void relation(WhereClause.Builder clauses) throws RecognitionException {
ColumnDefinition.Raw name =null;
Operator type =null;
Term.Raw t =null;
List l =null;
AbstractMarker.INRaw marker =null;
List inValues =null;
Term.Raw key =null;
List ids =null;
Tuples.INRaw tupleInMarker =null;
List literals =null;
List markers =null;
Tuples.Literal literal =null;
Tuples.Raw tupleMarker =null;
try {
// Parser.g:1473:5: (name= cident type= relationType t= term |name= cident K_LIKE t= term |name= cident K_IS K_NOT K_NULL | K_TOKEN l= tupleOfIdentifiers type= relationType t= term |name= cident K_IN marker= inMarker |name= cident K_IN inValues= singleColumnInValues |name= cident K_CONTAINS ( K_KEY )? t= term |name= cident '[' key= term ']' type= relationType t= term |ids= tupleOfIdentifiers ( K_IN ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples ) |type= relationType literal= tupleLiteral |type= relationType tupleMarker= markerForTuple ) | '(' relation[$clauses] ')' )
int alt196=10;
alt196 = dfa196.predict(input);
switch (alt196) {
case 1 :
// Parser.g:1473:7: name= cident type= relationType t= term
{
pushFollow(FOLLOW_cident_in_relation10736);
name=cident();
state._fsp--;
pushFollow(FOLLOW_relationType_in_relation10740);
type=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_relation10744);
t=term();
state._fsp--;
clauses.add(new SingleColumnRelation(name, type, t));
}
break;
case 2 :
// Parser.g:1474:7: name= cident K_LIKE t= term
{
pushFollow(FOLLOW_cident_in_relation10756);
name=cident();
state._fsp--;
match(input,K_LIKE,FOLLOW_K_LIKE_in_relation10758);
pushFollow(FOLLOW_term_in_relation10762);
t=term();
state._fsp--;
clauses.add(new SingleColumnRelation(name, Operator.LIKE, t));
}
break;
case 3 :
// Parser.g:1475:7: name= cident K_IS K_NOT K_NULL
{
pushFollow(FOLLOW_cident_in_relation10774);
name=cident();
state._fsp--;
match(input,K_IS,FOLLOW_K_IS_in_relation10776);
match(input,K_NOT,FOLLOW_K_NOT_in_relation10778);
match(input,K_NULL,FOLLOW_K_NULL_in_relation10780);
clauses.add(new SingleColumnRelation(name, Operator.IS_NOT, Constants.NULL_LITERAL));
}
break;
case 4 :
// Parser.g:1476:7: K_TOKEN l= tupleOfIdentifiers type= relationType t= term
{
match(input,K_TOKEN,FOLLOW_K_TOKEN_in_relation10790);
pushFollow(FOLLOW_tupleOfIdentifiers_in_relation10794);
l=tupleOfIdentifiers();
state._fsp--;
pushFollow(FOLLOW_relationType_in_relation10798);
type=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_relation10802);
t=term();
state._fsp--;
clauses.add(new TokenRelation(l, type, t));
}
break;
case 5 :
// Parser.g:1478:7: name= cident K_IN marker= inMarker
{
pushFollow(FOLLOW_cident_in_relation10822);
name=cident();
state._fsp--;
match(input,K_IN,FOLLOW_K_IN_in_relation10824);
pushFollow(FOLLOW_inMarker_in_relation10828);
marker=inMarker();
state._fsp--;
clauses.add(new SingleColumnRelation(name, Operator.IN, marker));
}
break;
case 6 :
// Parser.g:1480:7: name= cident K_IN inValues= singleColumnInValues
{
pushFollow(FOLLOW_cident_in_relation10848);
name=cident();
state._fsp--;
match(input,K_IN,FOLLOW_K_IN_in_relation10850);
pushFollow(FOLLOW_singleColumnInValues_in_relation10854);
inValues=singleColumnInValues();
state._fsp--;
clauses.add(SingleColumnRelation.createInRelation(name, inValues));
}
break;
case 7 :
// Parser.g:1482:7: name= cident K_CONTAINS ( K_KEY )? t= term
{
pushFollow(FOLLOW_cident_in_relation10874);
name=cident();
state._fsp--;
match(input,K_CONTAINS,FOLLOW_K_CONTAINS_in_relation10876);
Operator rt = Operator.CONTAINS;
// Parser.g:1482:67: ( K_KEY )?
int alt193=2;
int LA193_0 = input.LA(1);
if ( (LA193_0==K_KEY) ) {
int LA193_1 = input.LA(2);
if ( (LA193_1==BOOLEAN||LA193_1==DURATION||LA193_1==FLOAT||LA193_1==HEXNUMBER||(LA193_1 >= IDENT && LA193_1 <= INTEGER)||(LA193_1 >= K_AGGREGATE && LA193_1 <= K_ALL)||LA193_1==K_AS||LA193_1==K_ASCII||(LA193_1 >= K_BIGINT && LA193_1 <= K_BOOLEAN)||(LA193_1 >= K_CALLED && LA193_1 <= K_CLUSTERING)||(LA193_1 >= K_COMPACT && LA193_1 <= K_COUNTER)||(LA193_1 >= K_CUSTOM && LA193_1 <= K_DECIMAL)||(LA193_1 >= K_DISTINCT && LA193_1 <= K_DOUBLE)||LA193_1==K_DURATION||(LA193_1 >= K_EXISTS && LA193_1 <= K_FLOAT)||LA193_1==K_FROZEN||(LA193_1 >= K_FUNCTION && LA193_1 <= K_FUNCTIONS)||LA193_1==K_GROUP||(LA193_1 >= K_INET && LA193_1 <= K_INPUT)||LA193_1==K_INT||(LA193_1 >= K_JSON && LA193_1 <= K_KEYS)||(LA193_1 >= K_KEYSPACES && LA193_1 <= K_LIKE)||(LA193_1 >= K_LIST && LA193_1 <= K_MAP)||(LA193_1 >= K_NAN && LA193_1 <= K_NOLOGIN)||LA193_1==K_NOSUPERUSER||LA193_1==K_NULL||LA193_1==K_OPTIONS||(LA193_1 >= K_PARTITION && LA193_1 <= K_PERMISSIONS)||LA193_1==K_RETURNS||(LA193_1 >= K_ROLE && LA193_1 <= K_ROLES)||(LA193_1 >= K_SFUNC && LA193_1 <= K_TINYINT)||(LA193_1 >= K_TOKEN && LA193_1 <= K_TRIGGER)||(LA193_1 >= K_TTL && LA193_1 <= K_TYPE)||(LA193_1 >= K_USER && LA193_1 <= K_USERS)||(LA193_1 >= K_UUID && LA193_1 <= K_VARINT)||LA193_1==K_WRITETIME||(LA193_1 >= QMARK && LA193_1 <= QUOTED_NAME)||LA193_1==STRING_LITERAL||LA193_1==UUID||LA193_1==187||LA193_1==192||LA193_1==195||LA193_1==202||LA193_1==206) ) {
alt193=1;
}
}
switch (alt193) {
case 1 :
// Parser.g:1482:68: K_KEY
{
match(input,K_KEY,FOLLOW_K_KEY_in_relation10881);
rt = Operator.CONTAINS_KEY;
}
break;
}
pushFollow(FOLLOW_term_in_relation10897);
t=term();
state._fsp--;
clauses.add(new SingleColumnRelation(name, rt, t));
}
break;
case 8 :
// Parser.g:1484:7: name= cident '[' key= term ']' type= relationType t= term
{
pushFollow(FOLLOW_cident_in_relation10909);
name=cident();
state._fsp--;
match(input,202,FOLLOW_202_in_relation10911);
pushFollow(FOLLOW_term_in_relation10915);
key=term();
state._fsp--;
match(input,204,FOLLOW_204_in_relation10917);
pushFollow(FOLLOW_relationType_in_relation10921);
type=relationType();
state._fsp--;
pushFollow(FOLLOW_term_in_relation10925);
t=term();
state._fsp--;
clauses.add(new SingleColumnRelation(name, key, type, t));
}
break;
case 9 :
// Parser.g:1485:7: ids= tupleOfIdentifiers ( K_IN ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples ) |type= relationType literal= tupleLiteral |type= relationType tupleMarker= markerForTuple )
{
pushFollow(FOLLOW_tupleOfIdentifiers_in_relation10937);
ids=tupleOfIdentifiers();
state._fsp--;
// Parser.g:1486:7: ( K_IN ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples ) |type= relationType literal= tupleLiteral |type= relationType tupleMarker= markerForTuple )
int alt195=3;
alt195 = dfa195.predict(input);
switch (alt195) {
case 1 :
// Parser.g:1486:9: K_IN ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples )
{
match(input,K_IN,FOLLOW_K_IN_in_relation10947);
// Parser.g:1487:11: ( '(' ')' |tupleInMarker= inMarkerForTuple |literals= tupleOfTupleLiterals |markers= tupleOfMarkersForTuples )
int alt194=4;
int LA194_0 = input.LA(1);
if ( (LA194_0==187) ) {
switch ( input.LA(2) ) {
case 188:
{
alt194=1;
}
break;
case 187:
{
alt194=3;
}
break;
case QMARK:
case 195:
{
alt194=4;
}
break;
default:
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 194, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else if ( (LA194_0==QMARK||LA194_0==195) ) {
alt194=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 194, 0, input);
throw nvae;
}
switch (alt194) {
case 1 :
// Parser.g:1487:13: '(' ')'
{
match(input,187,FOLLOW_187_in_relation10961);
match(input,188,FOLLOW_188_in_relation10963);
clauses.add(MultiColumnRelation.createInRelation(ids, new ArrayList()));
}
break;
case 2 :
// Parser.g:1489:13: tupleInMarker= inMarkerForTuple
{
pushFollow(FOLLOW_inMarkerForTuple_in_relation10995);
tupleInMarker=inMarkerForTuple();
state._fsp--;
clauses.add(MultiColumnRelation.createSingleMarkerInRelation(ids, tupleInMarker));
}
break;
case 3 :
// Parser.g:1491:13: literals= tupleOfTupleLiterals
{
pushFollow(FOLLOW_tupleOfTupleLiterals_in_relation11029);
literals=tupleOfTupleLiterals();
state._fsp--;
clauses.add(MultiColumnRelation.createInRelation(ids, literals));
}
break;
case 4 :
// Parser.g:1495:13: markers= tupleOfMarkersForTuples
{
pushFollow(FOLLOW_tupleOfMarkersForTuples_in_relation11063);
markers=tupleOfMarkersForTuples();
state._fsp--;
clauses.add(MultiColumnRelation.createInRelation(ids, markers));
}
break;
}
}
break;
case 2 :
// Parser.g:1498:9: type= relationType literal= tupleLiteral
{
pushFollow(FOLLOW_relationType_in_relation11105);
type=relationType();
state._fsp--;
pushFollow(FOLLOW_tupleLiteral_in_relation11109);
literal=tupleLiteral();
state._fsp--;
clauses.add(MultiColumnRelation.createNonInRelation(ids, type, literal));
}
break;
case 3 :
// Parser.g:1502:9: type= relationType tupleMarker= markerForTuple
{
pushFollow(FOLLOW_relationType_in_relation11135);
type=relationType();
state._fsp--;
pushFollow(FOLLOW_markerForTuple_in_relation11139);
tupleMarker=markerForTuple();
state._fsp--;
clauses.add(MultiColumnRelation.createNonInRelation(ids, type, tupleMarker));
}
break;
}
}
break;
case 10 :
// Parser.g:1505:7: '(' relation[$clauses] ')'
{
match(input,187,FOLLOW_187_in_relation11169);
pushFollow(FOLLOW_relation_in_relation11171);
relation(clauses);
state._fsp--;
match(input,188,FOLLOW_188_in_relation11174);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "relation"
// $ANTLR start "inMarker"
// Parser.g:1508:1: inMarker returns [AbstractMarker.INRaw marker] : ( QMARK | ':' name= noncol_ident );
public final AbstractMarker.INRaw inMarker() throws RecognitionException {
AbstractMarker.INRaw marker = null;
ColumnIdentifier name =null;
try {
// Parser.g:1509:5: ( QMARK | ':' name= noncol_ident )
int alt197=2;
int LA197_0 = input.LA(1);
if ( (LA197_0==QMARK) ) {
alt197=1;
}
else if ( (LA197_0==195) ) {
alt197=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 197, 0, input);
throw nvae;
}
switch (alt197) {
case 1 :
// Parser.g:1509:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_inMarker11195);
marker = newINBindVariables(null);
}
break;
case 2 :
// Parser.g:1510:7: ':' name= noncol_ident
{
match(input,195,FOLLOW_195_in_inMarker11205);
pushFollow(FOLLOW_noncol_ident_in_inMarker11209);
name=noncol_ident();
state._fsp--;
marker = newINBindVariables(name);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return marker;
}
// $ANTLR end "inMarker"
// $ANTLR start "tupleOfIdentifiers"
// Parser.g:1513:1: tupleOfIdentifiers returns [List ids] : '(' n1= cident ( ',' ni= cident )* ')' ;
public final List tupleOfIdentifiers() throws RecognitionException {
List ids = null;
ColumnDefinition.Raw n1 =null;
ColumnDefinition.Raw ni =null;
ids = new ArrayList();
try {
// Parser.g:1515:5: ( '(' n1= cident ( ',' ni= cident )* ')' )
// Parser.g:1515:7: '(' n1= cident ( ',' ni= cident )* ')'
{
match(input,187,FOLLOW_187_in_tupleOfIdentifiers11241);
pushFollow(FOLLOW_cident_in_tupleOfIdentifiers11245);
n1=cident();
state._fsp--;
ids.add(n1);
// Parser.g:1515:39: ( ',' ni= cident )*
loop198:
while (true) {
int alt198=2;
int LA198_0 = input.LA(1);
if ( (LA198_0==191) ) {
alt198=1;
}
switch (alt198) {
case 1 :
// Parser.g:1515:40: ',' ni= cident
{
match(input,191,FOLLOW_191_in_tupleOfIdentifiers11250);
pushFollow(FOLLOW_cident_in_tupleOfIdentifiers11254);
ni=cident();
state._fsp--;
ids.add(ni);
}
break;
default :
break loop198;
}
}
match(input,188,FOLLOW_188_in_tupleOfIdentifiers11260);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return ids;
}
// $ANTLR end "tupleOfIdentifiers"
// $ANTLR start "singleColumnInValues"
// Parser.g:1518:1: singleColumnInValues returns [List terms] : '(' (t1= term ( ',' ti= term )* )? ')' ;
public final List singleColumnInValues() throws RecognitionException {
List terms = null;
Term.Raw t1 =null;
Term.Raw ti =null;
terms = new ArrayList();
try {
// Parser.g:1520:5: ( '(' (t1= term ( ',' ti= term )* )? ')' )
// Parser.g:1520:7: '(' (t1= term ( ',' ti= term )* )? ')'
{
match(input,187,FOLLOW_187_in_singleColumnInValues11290);
// Parser.g:1520:11: (t1= term ( ',' ti= term )* )?
int alt200=2;
int LA200_0 = input.LA(1);
if ( (LA200_0==BOOLEAN||LA200_0==DURATION||LA200_0==FLOAT||LA200_0==HEXNUMBER||(LA200_0 >= IDENT && LA200_0 <= INTEGER)||(LA200_0 >= K_AGGREGATE && LA200_0 <= K_ALL)||LA200_0==K_AS||LA200_0==K_ASCII||(LA200_0 >= K_BIGINT && LA200_0 <= K_BOOLEAN)||(LA200_0 >= K_CALLED && LA200_0 <= K_CLUSTERING)||(LA200_0 >= K_COMPACT && LA200_0 <= K_COUNTER)||(LA200_0 >= K_CUSTOM && LA200_0 <= K_DECIMAL)||(LA200_0 >= K_DISTINCT && LA200_0 <= K_DOUBLE)||LA200_0==K_DURATION||(LA200_0 >= K_EXISTS && LA200_0 <= K_FLOAT)||LA200_0==K_FROZEN||(LA200_0 >= K_FUNCTION && LA200_0 <= K_FUNCTIONS)||LA200_0==K_GROUP||(LA200_0 >= K_INET && LA200_0 <= K_INPUT)||LA200_0==K_INT||(LA200_0 >= K_JSON && LA200_0 <= K_KEYS)||(LA200_0 >= K_KEYSPACES && LA200_0 <= K_LIKE)||(LA200_0 >= K_LIST && LA200_0 <= K_MAP)||(LA200_0 >= K_NAN && LA200_0 <= K_NOLOGIN)||LA200_0==K_NOSUPERUSER||LA200_0==K_NULL||LA200_0==K_OPTIONS||(LA200_0 >= K_PARTITION && LA200_0 <= K_PERMISSIONS)||LA200_0==K_RETURNS||(LA200_0 >= K_ROLE && LA200_0 <= K_ROLES)||(LA200_0 >= K_SFUNC && LA200_0 <= K_TINYINT)||(LA200_0 >= K_TOKEN && LA200_0 <= K_TRIGGER)||(LA200_0 >= K_TTL && LA200_0 <= K_TYPE)||(LA200_0 >= K_USER && LA200_0 <= K_USERS)||(LA200_0 >= K_UUID && LA200_0 <= K_VARINT)||LA200_0==K_WRITETIME||(LA200_0 >= QMARK && LA200_0 <= QUOTED_NAME)||LA200_0==STRING_LITERAL||LA200_0==UUID||LA200_0==187||LA200_0==192||LA200_0==195||LA200_0==202||LA200_0==206) ) {
alt200=1;
}
switch (alt200) {
case 1 :
// Parser.g:1520:13: t1= term ( ',' ti= term )*
{
pushFollow(FOLLOW_term_in_singleColumnInValues11298);
t1=term();
state._fsp--;
terms.add(t1);
// Parser.g:1520:43: ( ',' ti= term )*
loop199:
while (true) {
int alt199=2;
int LA199_0 = input.LA(1);
if ( (LA199_0==191) ) {
alt199=1;
}
switch (alt199) {
case 1 :
// Parser.g:1520:44: ',' ti= term
{
match(input,191,FOLLOW_191_in_singleColumnInValues11303);
pushFollow(FOLLOW_term_in_singleColumnInValues11307);
ti=term();
state._fsp--;
terms.add(ti);
}
break;
default :
break loop199;
}
}
}
break;
}
match(input,188,FOLLOW_188_in_singleColumnInValues11316);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return terms;
}
// $ANTLR end "singleColumnInValues"
// $ANTLR start "tupleOfTupleLiterals"
// Parser.g:1523:1: tupleOfTupleLiterals returns [List literals] : '(' t1= tupleLiteral ( ',' ti= tupleLiteral )* ')' ;
public final List tupleOfTupleLiterals() throws RecognitionException {
List literals = null;
Tuples.Literal t1 =null;
Tuples.Literal ti =null;
literals = new ArrayList<>();
try {
// Parser.g:1525:5: ( '(' t1= tupleLiteral ( ',' ti= tupleLiteral )* ')' )
// Parser.g:1525:7: '(' t1= tupleLiteral ( ',' ti= tupleLiteral )* ')'
{
match(input,187,FOLLOW_187_in_tupleOfTupleLiterals11346);
pushFollow(FOLLOW_tupleLiteral_in_tupleOfTupleLiterals11350);
t1=tupleLiteral();
state._fsp--;
literals.add(t1);
// Parser.g:1525:50: ( ',' ti= tupleLiteral )*
loop201:
while (true) {
int alt201=2;
int LA201_0 = input.LA(1);
if ( (LA201_0==191) ) {
alt201=1;
}
switch (alt201) {
case 1 :
// Parser.g:1525:51: ',' ti= tupleLiteral
{
match(input,191,FOLLOW_191_in_tupleOfTupleLiterals11355);
pushFollow(FOLLOW_tupleLiteral_in_tupleOfTupleLiterals11359);
ti=tupleLiteral();
state._fsp--;
literals.add(ti);
}
break;
default :
break loop201;
}
}
match(input,188,FOLLOW_188_in_tupleOfTupleLiterals11365);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return literals;
}
// $ANTLR end "tupleOfTupleLiterals"
// $ANTLR start "markerForTuple"
// Parser.g:1528:1: markerForTuple returns [Tuples.Raw marker] : ( QMARK | ':' name= noncol_ident );
public final Tuples.Raw markerForTuple() throws RecognitionException {
Tuples.Raw marker = null;
ColumnIdentifier name =null;
try {
// Parser.g:1529:5: ( QMARK | ':' name= noncol_ident )
int alt202=2;
int LA202_0 = input.LA(1);
if ( (LA202_0==QMARK) ) {
alt202=1;
}
else if ( (LA202_0==195) ) {
alt202=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 202, 0, input);
throw nvae;
}
switch (alt202) {
case 1 :
// Parser.g:1529:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_markerForTuple11386);
marker = newTupleBindVariables(null);
}
break;
case 2 :
// Parser.g:1530:7: ':' name= noncol_ident
{
match(input,195,FOLLOW_195_in_markerForTuple11396);
pushFollow(FOLLOW_noncol_ident_in_markerForTuple11400);
name=noncol_ident();
state._fsp--;
marker = newTupleBindVariables(name);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return marker;
}
// $ANTLR end "markerForTuple"
// $ANTLR start "tupleOfMarkersForTuples"
// Parser.g:1533:1: tupleOfMarkersForTuples returns [List markers] : '(' m1= markerForTuple ( ',' mi= markerForTuple )* ')' ;
public final List tupleOfMarkersForTuples() throws RecognitionException {
List markers = null;
Tuples.Raw m1 =null;
Tuples.Raw mi =null;
markers = new ArrayList();
try {
// Parser.g:1535:5: ( '(' m1= markerForTuple ( ',' mi= markerForTuple )* ')' )
// Parser.g:1535:7: '(' m1= markerForTuple ( ',' mi= markerForTuple )* ')'
{
match(input,187,FOLLOW_187_in_tupleOfMarkersForTuples11432);
pushFollow(FOLLOW_markerForTuple_in_tupleOfMarkersForTuples11436);
m1=markerForTuple();
state._fsp--;
markers.add(m1);
// Parser.g:1535:51: ( ',' mi= markerForTuple )*
loop203:
while (true) {
int alt203=2;
int LA203_0 = input.LA(1);
if ( (LA203_0==191) ) {
alt203=1;
}
switch (alt203) {
case 1 :
// Parser.g:1535:52: ',' mi= markerForTuple
{
match(input,191,FOLLOW_191_in_tupleOfMarkersForTuples11441);
pushFollow(FOLLOW_markerForTuple_in_tupleOfMarkersForTuples11445);
mi=markerForTuple();
state._fsp--;
markers.add(mi);
}
break;
default :
break loop203;
}
}
match(input,188,FOLLOW_188_in_tupleOfMarkersForTuples11451);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return markers;
}
// $ANTLR end "tupleOfMarkersForTuples"
// $ANTLR start "inMarkerForTuple"
// Parser.g:1538:1: inMarkerForTuple returns [Tuples.INRaw marker] : ( QMARK | ':' name= noncol_ident );
public final Tuples.INRaw inMarkerForTuple() throws RecognitionException {
Tuples.INRaw marker = null;
ColumnIdentifier name =null;
try {
// Parser.g:1539:5: ( QMARK | ':' name= noncol_ident )
int alt204=2;
int LA204_0 = input.LA(1);
if ( (LA204_0==QMARK) ) {
alt204=1;
}
else if ( (LA204_0==195) ) {
alt204=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 204, 0, input);
throw nvae;
}
switch (alt204) {
case 1 :
// Parser.g:1539:7: QMARK
{
match(input,QMARK,FOLLOW_QMARK_in_inMarkerForTuple11472);
marker = newTupleINBindVariables(null);
}
break;
case 2 :
// Parser.g:1540:7: ':' name= noncol_ident
{
match(input,195,FOLLOW_195_in_inMarkerForTuple11482);
pushFollow(FOLLOW_noncol_ident_in_inMarkerForTuple11486);
name=noncol_ident();
state._fsp--;
marker = newTupleINBindVariables(name);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return marker;
}
// $ANTLR end "inMarkerForTuple"
// $ANTLR start "comparatorType"
// Parser.g:1543:1: comparatorType returns [CQL3Type.Raw t] : (n= native_type |c= collection_type |tt= tuple_type |id= userTypeName | K_FROZEN '<' f= comparatorType '>' |s= STRING_LITERAL );
public final CQL3Type.Raw comparatorType() throws RecognitionException {
CQL3Type.Raw t = null;
Token s=null;
CQL3Type n =null;
CQL3Type.Raw c =null;
CQL3Type.Raw tt =null;
UTName id =null;
CQL3Type.Raw f =null;
try {
// Parser.g:1544:5: (n= native_type |c= collection_type |tt= tuple_type |id= userTypeName | K_FROZEN '<' f= comparatorType '>' |s= STRING_LITERAL )
int alt205=6;
alt205 = dfa205.predict(input);
switch (alt205) {
case 1 :
// Parser.g:1544:7: n= native_type
{
pushFollow(FOLLOW_native_type_in_comparatorType11511);
n=native_type();
state._fsp--;
t = CQL3Type.Raw.from(n);
}
break;
case 2 :
// Parser.g:1545:7: c= collection_type
{
pushFollow(FOLLOW_collection_type_in_comparatorType11527);
c=collection_type();
state._fsp--;
t = c;
}
break;
case 3 :
// Parser.g:1546:7: tt= tuple_type
{
pushFollow(FOLLOW_tuple_type_in_comparatorType11539);
tt=tuple_type();
state._fsp--;
t = tt;
}
break;
case 4 :
// Parser.g:1547:7: id= userTypeName
{
pushFollow(FOLLOW_userTypeName_in_comparatorType11555);
id=userTypeName();
state._fsp--;
t = CQL3Type.Raw.userType(id);
}
break;
case 5 :
// Parser.g:1548:7: K_FROZEN '<' f= comparatorType '>'
{
match(input,K_FROZEN,FOLLOW_K_FROZEN_in_comparatorType11567);
match(input,197,FOLLOW_197_in_comparatorType11569);
pushFollow(FOLLOW_comparatorType_in_comparatorType11573);
f=comparatorType();
state._fsp--;
match(input,200,FOLLOW_200_in_comparatorType11575);
try {
t = CQL3Type.Raw.frozen(f);
} catch (InvalidRequestException e) {
addRecognitionError(e.getMessage());
}
}
break;
case 6 :
// Parser.g:1556:7: s= STRING_LITERAL
{
s=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_comparatorType11593);
try {
t = CQL3Type.Raw.from(new CQL3Type.Custom((s!=null?s.getText():null)));
} catch (SyntaxException e) {
addRecognitionError("Cannot parse type " + (s!=null?s.getText():null) + ": " + e.getMessage());
} catch (ConfigurationException e) {
addRecognitionError("Error setting type " + (s!=null?s.getText():null) + ": " + e.getMessage());
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return t;
}
// $ANTLR end "comparatorType"
// $ANTLR start "native_type"
// Parser.g:1568:1: native_type returns [CQL3Type t] : ( K_ASCII | K_BIGINT | K_BLOB | K_BOOLEAN | K_COUNTER | K_DECIMAL | K_DOUBLE | K_DURATION | K_FLOAT | K_INET | K_INT | K_SMALLINT | K_TEXT | K_TIMESTAMP | K_TINYINT | K_UUID | K_VARCHAR | K_VARINT | K_TIMEUUID | K_DATE | K_TIME );
public final CQL3Type native_type() throws RecognitionException {
CQL3Type t = null;
try {
// Parser.g:1569:5: ( K_ASCII | K_BIGINT | K_BLOB | K_BOOLEAN | K_COUNTER | K_DECIMAL | K_DOUBLE | K_DURATION | K_FLOAT | K_INET | K_INT | K_SMALLINT | K_TEXT | K_TIMESTAMP | K_TINYINT | K_UUID | K_VARCHAR | K_VARINT | K_TIMEUUID | K_DATE | K_TIME )
int alt206=21;
switch ( input.LA(1) ) {
case K_ASCII:
{
alt206=1;
}
break;
case K_BIGINT:
{
alt206=2;
}
break;
case K_BLOB:
{
alt206=3;
}
break;
case K_BOOLEAN:
{
alt206=4;
}
break;
case K_COUNTER:
{
alt206=5;
}
break;
case K_DECIMAL:
{
alt206=6;
}
break;
case K_DOUBLE:
{
alt206=7;
}
break;
case K_DURATION:
{
alt206=8;
}
break;
case K_FLOAT:
{
alt206=9;
}
break;
case K_INET:
{
alt206=10;
}
break;
case K_INT:
{
alt206=11;
}
break;
case K_SMALLINT:
{
alt206=12;
}
break;
case K_TEXT:
{
alt206=13;
}
break;
case K_TIMESTAMP:
{
alt206=14;
}
break;
case K_TINYINT:
{
alt206=15;
}
break;
case K_UUID:
{
alt206=16;
}
break;
case K_VARCHAR:
{
alt206=17;
}
break;
case K_VARINT:
{
alt206=18;
}
break;
case K_TIMEUUID:
{
alt206=19;
}
break;
case K_DATE:
{
alt206=20;
}
break;
case K_TIME:
{
alt206=21;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 206, 0, input);
throw nvae;
}
switch (alt206) {
case 1 :
// Parser.g:1569:7: K_ASCII
{
match(input,K_ASCII,FOLLOW_K_ASCII_in_native_type11622);
t = CQL3Type.Native.ASCII;
}
break;
case 2 :
// Parser.g:1570:7: K_BIGINT
{
match(input,K_BIGINT,FOLLOW_K_BIGINT_in_native_type11636);
t = CQL3Type.Native.BIGINT;
}
break;
case 3 :
// Parser.g:1571:7: K_BLOB
{
match(input,K_BLOB,FOLLOW_K_BLOB_in_native_type11649);
t = CQL3Type.Native.BLOB;
}
break;
case 4 :
// Parser.g:1572:7: K_BOOLEAN
{
match(input,K_BOOLEAN,FOLLOW_K_BOOLEAN_in_native_type11664);
t = CQL3Type.Native.BOOLEAN;
}
break;
case 5 :
// Parser.g:1573:7: K_COUNTER
{
match(input,K_COUNTER,FOLLOW_K_COUNTER_in_native_type11676);
t = CQL3Type.Native.COUNTER;
}
break;
case 6 :
// Parser.g:1574:7: K_DECIMAL
{
match(input,K_DECIMAL,FOLLOW_K_DECIMAL_in_native_type11688);
t = CQL3Type.Native.DECIMAL;
}
break;
case 7 :
// Parser.g:1575:7: K_DOUBLE
{
match(input,K_DOUBLE,FOLLOW_K_DOUBLE_in_native_type11700);
t = CQL3Type.Native.DOUBLE;
}
break;
case 8 :
// Parser.g:1576:7: K_DURATION
{
match(input,K_DURATION,FOLLOW_K_DURATION_in_native_type11713);
t = CQL3Type.Native.DURATION;
}
break;
case 9 :
// Parser.g:1577:7: K_FLOAT
{
match(input,K_FLOAT,FOLLOW_K_FLOAT_in_native_type11726);
t = CQL3Type.Native.FLOAT;
}
break;
case 10 :
// Parser.g:1578:7: K_INET
{
match(input,K_INET,FOLLOW_K_INET_in_native_type11740);
t = CQL3Type.Native.INET;
}
break;
case 11 :
// Parser.g:1579:7: K_INT
{
match(input,K_INT,FOLLOW_K_INT_in_native_type11755);
t = CQL3Type.Native.INT;
}
break;
case 12 :
// Parser.g:1580:7: K_SMALLINT
{
match(input,K_SMALLINT,FOLLOW_K_SMALLINT_in_native_type11771);
t = CQL3Type.Native.SMALLINT;
}
break;
case 13 :
// Parser.g:1581:7: K_TEXT
{
match(input,K_TEXT,FOLLOW_K_TEXT_in_native_type11782);
t = CQL3Type.Native.TEXT;
}
break;
case 14 :
// Parser.g:1582:7: K_TIMESTAMP
{
match(input,K_TIMESTAMP,FOLLOW_K_TIMESTAMP_in_native_type11797);
t = CQL3Type.Native.TIMESTAMP;
}
break;
case 15 :
// Parser.g:1583:7: K_TINYINT
{
match(input,K_TINYINT,FOLLOW_K_TINYINT_in_native_type11807);
t = CQL3Type.Native.TINYINT;
}
break;
case 16 :
// Parser.g:1584:7: K_UUID
{
match(input,K_UUID,FOLLOW_K_UUID_in_native_type11819);
t = CQL3Type.Native.UUID;
}
break;
case 17 :
// Parser.g:1585:7: K_VARCHAR
{
match(input,K_VARCHAR,FOLLOW_K_VARCHAR_in_native_type11834);
t = CQL3Type.Native.VARCHAR;
}
break;
case 18 :
// Parser.g:1586:7: K_VARINT
{
match(input,K_VARINT,FOLLOW_K_VARINT_in_native_type11846);
t = CQL3Type.Native.VARINT;
}
break;
case 19 :
// Parser.g:1587:7: K_TIMEUUID
{
match(input,K_TIMEUUID,FOLLOW_K_TIMEUUID_in_native_type11859);
t = CQL3Type.Native.TIMEUUID;
}
break;
case 20 :
// Parser.g:1588:7: K_DATE
{
match(input,K_DATE,FOLLOW_K_DATE_in_native_type11870);
t = CQL3Type.Native.DATE;
}
break;
case 21 :
// Parser.g:1589:7: K_TIME
{
match(input,K_TIME,FOLLOW_K_TIME_in_native_type11885);
t = CQL3Type.Native.TIME;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return t;
}
// $ANTLR end "native_type"
// $ANTLR start "collection_type"
// Parser.g:1592:1: collection_type returns [CQL3Type.Raw pt] : ( K_MAP '<' t1= comparatorType ',' t2= comparatorType '>' | K_LIST '<' t= comparatorType '>' | K_SET '<' t= comparatorType '>' );
public final CQL3Type.Raw collection_type() throws RecognitionException {
CQL3Type.Raw pt = null;
CQL3Type.Raw t1 =null;
CQL3Type.Raw t2 =null;
CQL3Type.Raw t =null;
try {
// Parser.g:1593:5: ( K_MAP '<' t1= comparatorType ',' t2= comparatorType '>' | K_LIST '<' t= comparatorType '>' | K_SET '<' t= comparatorType '>' )
int alt207=3;
switch ( input.LA(1) ) {
case K_MAP:
{
alt207=1;
}
break;
case K_LIST:
{
alt207=2;
}
break;
case K_SET:
{
alt207=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 207, 0, input);
throw nvae;
}
switch (alt207) {
case 1 :
// Parser.g:1593:7: K_MAP '<' t1= comparatorType ',' t2= comparatorType '>'
{
match(input,K_MAP,FOLLOW_K_MAP_in_collection_type11913);
match(input,197,FOLLOW_197_in_collection_type11916);
pushFollow(FOLLOW_comparatorType_in_collection_type11920);
t1=comparatorType();
state._fsp--;
match(input,191,FOLLOW_191_in_collection_type11922);
pushFollow(FOLLOW_comparatorType_in_collection_type11926);
t2=comparatorType();
state._fsp--;
match(input,200,FOLLOW_200_in_collection_type11928);
// if we can't parse either t1 or t2, antlr will "recover" and we may have t1 or t2 null.
if (t1 != null && t2 != null)
pt = CQL3Type.Raw.map(t1, t2);
}
break;
case 2 :
// Parser.g:1599:7: K_LIST '<' t= comparatorType '>'
{
match(input,K_LIST,FOLLOW_K_LIST_in_collection_type11946);
match(input,197,FOLLOW_197_in_collection_type11948);
pushFollow(FOLLOW_comparatorType_in_collection_type11952);
t=comparatorType();
state._fsp--;
match(input,200,FOLLOW_200_in_collection_type11954);
if (t != null) pt = CQL3Type.Raw.list(t);
}
break;
case 3 :
// Parser.g:1601:7: K_SET '<' t= comparatorType '>'
{
match(input,K_SET,FOLLOW_K_SET_in_collection_type11972);
match(input,197,FOLLOW_197_in_collection_type11975);
pushFollow(FOLLOW_comparatorType_in_collection_type11979);
t=comparatorType();
state._fsp--;
match(input,200,FOLLOW_200_in_collection_type11981);
if (t != null) pt = CQL3Type.Raw.set(t);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return pt;
}
// $ANTLR end "collection_type"
// $ANTLR start "tuple_type"
// Parser.g:1605:1: tuple_type returns [CQL3Type.Raw t] : K_TUPLE '<' t1= comparatorType ( ',' tn= comparatorType )* '>' ;
public final CQL3Type.Raw tuple_type() throws RecognitionException {
CQL3Type.Raw t = null;
CQL3Type.Raw t1 =null;
CQL3Type.Raw tn =null;
try {
// Parser.g:1606:5: ( K_TUPLE '<' t1= comparatorType ( ',' tn= comparatorType )* '>' )
// Parser.g:1606:7: K_TUPLE '<' t1= comparatorType ( ',' tn= comparatorType )* '>'
{
match(input,K_TUPLE,FOLLOW_K_TUPLE_in_tuple_type12012);
match(input,197,FOLLOW_197_in_tuple_type12014);
List types = new ArrayList<>();
pushFollow(FOLLOW_comparatorType_in_tuple_type12029);
t1=comparatorType();
state._fsp--;
types.add(t1);
// Parser.g:1607:47: ( ',' tn= comparatorType )*
loop208:
while (true) {
int alt208=2;
int LA208_0 = input.LA(1);
if ( (LA208_0==191) ) {
alt208=1;
}
switch (alt208) {
case 1 :
// Parser.g:1607:48: ',' tn= comparatorType
{
match(input,191,FOLLOW_191_in_tuple_type12034);
pushFollow(FOLLOW_comparatorType_in_tuple_type12038);
tn=comparatorType();
state._fsp--;
types.add(tn);
}
break;
default :
break loop208;
}
}
match(input,200,FOLLOW_200_in_tuple_type12050);
t = CQL3Type.Raw.tuple(types);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return t;
}
// $ANTLR end "tuple_type"
public static class username_return extends ParserRuleReturnScope {
};
// $ANTLR start "username"
// Parser.g:1611:1: username : ( IDENT | STRING_LITERAL | QUOTED_NAME );
public final Cql_Parser.username_return username() throws RecognitionException {
Cql_Parser.username_return retval = new Cql_Parser.username_return();
retval.start = input.LT(1);
try {
// Parser.g:1612:5: ( IDENT | STRING_LITERAL | QUOTED_NAME )
int alt209=3;
switch ( input.LA(1) ) {
case IDENT:
{
alt209=1;
}
break;
case STRING_LITERAL:
{
alt209=2;
}
break;
case QUOTED_NAME:
{
alt209=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 209, 0, input);
throw nvae;
}
switch (alt209) {
case 1 :
// Parser.g:1612:7: IDENT
{
match(input,IDENT,FOLLOW_IDENT_in_username12069);
}
break;
case 2 :
// Parser.g:1613:7: STRING_LITERAL
{
match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_username12077);
}
break;
case 3 :
// Parser.g:1614:7: QUOTED_NAME
{
match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_username12085);
addRecognitionError("Quoted strings are are not supported for user names and USER is deprecated, please use ROLE");
}
break;
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
// $ANTLR end "username"
public static class mbean_return extends ParserRuleReturnScope {
};
// $ANTLR start "mbean"
// Parser.g:1617:1: mbean : STRING_LITERAL ;
public final Cql_Parser.mbean_return mbean() throws RecognitionException {
Cql_Parser.mbean_return retval = new Cql_Parser.mbean_return();
retval.start = input.LT(1);
try {
// Parser.g:1618:5: ( STRING_LITERAL )
// Parser.g:1618:7: STRING_LITERAL
{
match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_mbean12104);
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return retval;
}
// $ANTLR end "mbean"
// $ANTLR start "non_type_ident"
// Parser.g:1623:1: non_type_ident returns [ColumnIdentifier id] : (t= IDENT |t= QUOTED_NAME |k= basic_unreserved_keyword |kk= K_KEY );
public final ColumnIdentifier non_type_ident() throws RecognitionException {
ColumnIdentifier id = null;
Token t=null;
Token kk=null;
String k =null;
try {
// Parser.g:1624:5: (t= IDENT |t= QUOTED_NAME |k= basic_unreserved_keyword |kk= K_KEY )
int alt210=4;
switch ( input.LA(1) ) {
case IDENT:
{
alt210=1;
}
break;
case QUOTED_NAME:
{
alt210=2;
}
break;
case K_AGGREGATE:
case K_ALL:
case K_AS:
case K_CALLED:
case K_CLUSTERING:
case K_COMPACT:
case K_CONTAINS:
case K_CUSTOM:
case K_EXISTS:
case K_FILTERING:
case K_FINALFUNC:
case K_FROZEN:
case K_FUNCTION:
case K_FUNCTIONS:
case K_GROUP:
case K_INITCOND:
case K_INPUT:
case K_KEYS:
case K_KEYSPACES:
case K_LANGUAGE:
case K_LIKE:
case K_LIST:
case K_LOGIN:
case K_MAP:
case K_NOLOGIN:
case K_NOSUPERUSER:
case K_OPTIONS:
case K_PARTITION:
case K_PASSWORD:
case K_PER:
case K_PERMISSION:
case K_PERMISSIONS:
case K_RETURNS:
case K_ROLE:
case K_ROLES:
case K_SFUNC:
case K_STATIC:
case K_STORAGE:
case K_STYPE:
case K_SUPERUSER:
case K_TRIGGER:
case K_TUPLE:
case K_TYPE:
case K_USER:
case K_USERS:
case K_VALUES:
{
alt210=3;
}
break;
case K_KEY:
{
alt210=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 210, 0, input);
throw nvae;
}
switch (alt210) {
case 1 :
// Parser.g:1624:7: t= IDENT
{
t=(Token)match(input,IDENT,FOLLOW_IDENT_in_non_type_ident12129);
if (reservedTypeNames.contains((t!=null?t.getText():null))) addRecognitionError("Invalid (reserved) user type name " + (t!=null?t.getText():null)); id = new ColumnIdentifier((t!=null?t.getText():null), false);
}
break;
case 2 :
// Parser.g:1625:7: t= QUOTED_NAME
{
t=(Token)match(input,QUOTED_NAME,FOLLOW_QUOTED_NAME_in_non_type_ident12160);
id = new ColumnIdentifier((t!=null?t.getText():null), true);
}
break;
case 3 :
// Parser.g:1626:7: k= basic_unreserved_keyword
{
pushFollow(FOLLOW_basic_unreserved_keyword_in_non_type_ident12185);
k=basic_unreserved_keyword();
state._fsp--;
id = new ColumnIdentifier(k, false);
}
break;
case 4 :
// Parser.g:1627:7: kk= K_KEY
{
kk=(Token)match(input,K_KEY,FOLLOW_K_KEY_in_non_type_ident12197);
id = new ColumnIdentifier((kk!=null?kk.getText():null), false);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return id;
}
// $ANTLR end "non_type_ident"
// $ANTLR start "unreserved_keyword"
// Parser.g:1630:1: unreserved_keyword returns [String str] : (u= unreserved_function_keyword |k= ( K_TTL | K_COUNT | K_WRITETIME | K_KEY | K_CAST | K_JSON | K_DISTINCT ) );
public final String unreserved_keyword() throws RecognitionException {
String str = null;
Token k=null;
String u =null;
try {
// Parser.g:1631:5: (u= unreserved_function_keyword |k= ( K_TTL | K_COUNT | K_WRITETIME | K_KEY | K_CAST | K_JSON | K_DISTINCT ) )
int alt211=2;
int LA211_0 = input.LA(1);
if ( ((LA211_0 >= K_AGGREGATE && LA211_0 <= K_ALL)||LA211_0==K_AS||LA211_0==K_ASCII||(LA211_0 >= K_BIGINT && LA211_0 <= K_BOOLEAN)||LA211_0==K_CALLED||LA211_0==K_CLUSTERING||(LA211_0 >= K_COMPACT && LA211_0 <= K_CONTAINS)||LA211_0==K_COUNTER||(LA211_0 >= K_CUSTOM && LA211_0 <= K_DECIMAL)||LA211_0==K_DOUBLE||LA211_0==K_DURATION||(LA211_0 >= K_EXISTS && LA211_0 <= K_FLOAT)||LA211_0==K_FROZEN||(LA211_0 >= K_FUNCTION && LA211_0 <= K_FUNCTIONS)||LA211_0==K_GROUP||LA211_0==K_INET||(LA211_0 >= K_INITCOND && LA211_0 <= K_INPUT)||LA211_0==K_INT||LA211_0==K_KEYS||(LA211_0 >= K_KEYSPACES && LA211_0 <= K_LIKE)||(LA211_0 >= K_LIST && LA211_0 <= K_MAP)||LA211_0==K_NOLOGIN||LA211_0==K_NOSUPERUSER||LA211_0==K_OPTIONS||(LA211_0 >= K_PARTITION && LA211_0 <= K_PERMISSIONS)||LA211_0==K_RETURNS||(LA211_0 >= K_ROLE && LA211_0 <= K_ROLES)||(LA211_0 >= K_SFUNC && LA211_0 <= K_TINYINT)||LA211_0==K_TRIGGER||(LA211_0 >= K_TUPLE && LA211_0 <= K_TYPE)||(LA211_0 >= K_USER && LA211_0 <= K_USERS)||(LA211_0 >= K_UUID && LA211_0 <= K_VARINT)) ) {
alt211=1;
}
else if ( (LA211_0==K_CAST||LA211_0==K_COUNT||LA211_0==K_DISTINCT||(LA211_0 >= K_JSON && LA211_0 <= K_KEY)||LA211_0==K_TTL||LA211_0==K_WRITETIME) ) {
alt211=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 211, 0, input);
throw nvae;
}
switch (alt211) {
case 1 :
// Parser.g:1631:7: u= unreserved_function_keyword
{
pushFollow(FOLLOW_unreserved_function_keyword_in_unreserved_keyword12240);
u=unreserved_function_keyword();
state._fsp--;
str = u;
}
break;
case 2 :
// Parser.g:1632:7: k= ( K_TTL | K_COUNT | K_WRITETIME | K_KEY | K_CAST | K_JSON | K_DISTINCT )
{
k=input.LT(1);
if ( input.LA(1)==K_CAST||input.LA(1)==K_COUNT||input.LA(1)==K_DISTINCT||(input.LA(1) >= K_JSON && input.LA(1) <= K_KEY)||input.LA(1)==K_TTL||input.LA(1)==K_WRITETIME ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
str = (k!=null?k.getText():null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return str;
}
// $ANTLR end "unreserved_keyword"
// $ANTLR start "unreserved_function_keyword"
// Parser.g:1635:1: unreserved_function_keyword returns [String str] : (u= basic_unreserved_keyword |t= native_type );
public final String unreserved_function_keyword() throws RecognitionException {
String str = null;
String u =null;
CQL3Type t =null;
try {
// Parser.g:1636:5: (u= basic_unreserved_keyword |t= native_type )
int alt212=2;
int LA212_0 = input.LA(1);
if ( ((LA212_0 >= K_AGGREGATE && LA212_0 <= K_ALL)||LA212_0==K_AS||LA212_0==K_CALLED||LA212_0==K_CLUSTERING||(LA212_0 >= K_COMPACT && LA212_0 <= K_CONTAINS)||LA212_0==K_CUSTOM||(LA212_0 >= K_EXISTS && LA212_0 <= K_FINALFUNC)||LA212_0==K_FROZEN||(LA212_0 >= K_FUNCTION && LA212_0 <= K_FUNCTIONS)||LA212_0==K_GROUP||(LA212_0 >= K_INITCOND && LA212_0 <= K_INPUT)||LA212_0==K_KEYS||(LA212_0 >= K_KEYSPACES && LA212_0 <= K_LIKE)||(LA212_0 >= K_LIST && LA212_0 <= K_MAP)||LA212_0==K_NOLOGIN||LA212_0==K_NOSUPERUSER||LA212_0==K_OPTIONS||(LA212_0 >= K_PARTITION && LA212_0 <= K_PERMISSIONS)||LA212_0==K_RETURNS||(LA212_0 >= K_ROLE && LA212_0 <= K_ROLES)||LA212_0==K_SFUNC||(LA212_0 >= K_STATIC && LA212_0 <= K_SUPERUSER)||LA212_0==K_TRIGGER||(LA212_0 >= K_TUPLE && LA212_0 <= K_TYPE)||(LA212_0 >= K_USER && LA212_0 <= K_USERS)||LA212_0==K_VALUES) ) {
alt212=1;
}
else if ( (LA212_0==K_ASCII||(LA212_0 >= K_BIGINT && LA212_0 <= K_BOOLEAN)||LA212_0==K_COUNTER||(LA212_0 >= K_DATE && LA212_0 <= K_DECIMAL)||LA212_0==K_DOUBLE||LA212_0==K_DURATION||LA212_0==K_FLOAT||LA212_0==K_INET||LA212_0==K_INT||LA212_0==K_SMALLINT||(LA212_0 >= K_TEXT && LA212_0 <= K_TINYINT)||LA212_0==K_UUID||(LA212_0 >= K_VARCHAR && LA212_0 <= K_VARINT)) ) {
alt212=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 212, 0, input);
throw nvae;
}
switch (alt212) {
case 1 :
// Parser.g:1636:7: u= basic_unreserved_keyword
{
pushFollow(FOLLOW_basic_unreserved_keyword_in_unreserved_function_keyword12307);
u=basic_unreserved_keyword();
state._fsp--;
str = u;
}
break;
case 2 :
// Parser.g:1637:7: t= native_type
{
pushFollow(FOLLOW_native_type_in_unreserved_function_keyword12319);
t=native_type();
state._fsp--;
str = t.toString();
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return str;
}
// $ANTLR end "unreserved_function_keyword"
// $ANTLR start "basic_unreserved_keyword"
// Parser.g:1640:1: basic_unreserved_keyword returns [String str] : k= ( K_KEYS | K_AS | K_CLUSTERING | K_COMPACT | K_STORAGE | K_TYPE | K_VALUES | K_MAP | K_LIST | K_FILTERING | K_PERMISSION | K_PERMISSIONS | K_KEYSPACES | K_ALL | K_USER | K_USERS | K_ROLE | K_ROLES | K_SUPERUSER | K_NOSUPERUSER | K_LOGIN | K_NOLOGIN | K_OPTIONS | K_PASSWORD | K_EXISTS | K_CUSTOM | K_TRIGGER | K_CONTAINS | K_STATIC | K_FROZEN | K_TUPLE | K_FUNCTION | K_FUNCTIONS | K_AGGREGATE | K_SFUNC | K_STYPE | K_FINALFUNC | K_INITCOND | K_RETURNS | K_LANGUAGE | K_CALLED | K_INPUT | K_LIKE | K_PER | K_PARTITION | K_GROUP ) ;
public final String basic_unreserved_keyword() throws RecognitionException {
String str = null;
Token k=null;
try {
// Parser.g:1641:5: (k= ( K_KEYS | K_AS | K_CLUSTERING | K_COMPACT | K_STORAGE | K_TYPE | K_VALUES | K_MAP | K_LIST | K_FILTERING | K_PERMISSION | K_PERMISSIONS | K_KEYSPACES | K_ALL | K_USER | K_USERS | K_ROLE | K_ROLES | K_SUPERUSER | K_NOSUPERUSER | K_LOGIN | K_NOLOGIN | K_OPTIONS | K_PASSWORD | K_EXISTS | K_CUSTOM | K_TRIGGER | K_CONTAINS | K_STATIC | K_FROZEN | K_TUPLE | K_FUNCTION | K_FUNCTIONS | K_AGGREGATE | K_SFUNC | K_STYPE | K_FINALFUNC | K_INITCOND | K_RETURNS | K_LANGUAGE | K_CALLED | K_INPUT | K_LIKE | K_PER | K_PARTITION | K_GROUP ) )
// Parser.g:1641:7: k= ( K_KEYS | K_AS | K_CLUSTERING | K_COMPACT | K_STORAGE | K_TYPE | K_VALUES | K_MAP | K_LIST | K_FILTERING | K_PERMISSION | K_PERMISSIONS | K_KEYSPACES | K_ALL | K_USER | K_USERS | K_ROLE | K_ROLES | K_SUPERUSER | K_NOSUPERUSER | K_LOGIN | K_NOLOGIN | K_OPTIONS | K_PASSWORD | K_EXISTS | K_CUSTOM | K_TRIGGER | K_CONTAINS | K_STATIC | K_FROZEN | K_TUPLE | K_FUNCTION | K_FUNCTIONS | K_AGGREGATE | K_SFUNC | K_STYPE | K_FINALFUNC | K_INITCOND | K_RETURNS | K_LANGUAGE | K_CALLED | K_INPUT | K_LIKE | K_PER | K_PARTITION | K_GROUP )
{
k=input.LT(1);
if ( (input.LA(1) >= K_AGGREGATE && input.LA(1) <= K_ALL)||input.LA(1)==K_AS||input.LA(1)==K_CALLED||input.LA(1)==K_CLUSTERING||(input.LA(1) >= K_COMPACT && input.LA(1) <= K_CONTAINS)||input.LA(1)==K_CUSTOM||(input.LA(1) >= K_EXISTS && input.LA(1) <= K_FINALFUNC)||input.LA(1)==K_FROZEN||(input.LA(1) >= K_FUNCTION && input.LA(1) <= K_FUNCTIONS)||input.LA(1)==K_GROUP||(input.LA(1) >= K_INITCOND && input.LA(1) <= K_INPUT)||input.LA(1)==K_KEYS||(input.LA(1) >= K_KEYSPACES && input.LA(1) <= K_LIKE)||(input.LA(1) >= K_LIST && input.LA(1) <= K_MAP)||input.LA(1)==K_NOLOGIN||input.LA(1)==K_NOSUPERUSER||input.LA(1)==K_OPTIONS||(input.LA(1) >= K_PARTITION && input.LA(1) <= K_PERMISSIONS)||input.LA(1)==K_RETURNS||(input.LA(1) >= K_ROLE && input.LA(1) <= K_ROLES)||input.LA(1)==K_SFUNC||(input.LA(1) >= K_STATIC && input.LA(1) <= K_SUPERUSER)||input.LA(1)==K_TRIGGER||(input.LA(1) >= K_TUPLE && input.LA(1) <= K_TYPE)||(input.LA(1) >= K_USER && input.LA(1) <= K_USERS)||input.LA(1)==K_VALUES ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
str = (k!=null?k.getText():null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return str;
}
// $ANTLR end "basic_unreserved_keyword"
// Delegated rules
protected DFA1 dfa1 = new DFA1(this);
protected DFA15 dfa15 = new DFA15(this);
protected DFA44 dfa44 = new DFA44(this);
protected DFA154 dfa154 = new DFA154(this);
protected DFA155 dfa155 = new DFA155(this);
protected DFA173 dfa173 = new DFA173(this);
protected DFA175 dfa175 = new DFA175(this);
protected DFA177 dfa177 = new DFA177(this);
protected DFA179 dfa179 = new DFA179(this);
protected DFA182 dfa182 = new DFA182(this);
protected DFA190 dfa190 = new DFA190(this);
protected DFA196 dfa196 = new DFA196(this);
protected DFA195 dfa195 = new DFA195(this);
protected DFA205 dfa205 = new DFA205(this);
static final String DFA1_eotS =
"\63\uffff";
static final String DFA1_eofS =
"\63\uffff";
static final String DFA1_minS =
"\1\42\7\uffff\2\37\1\62\2\32\1\40\10\uffff\1\174\22\uffff\1\161\2\uffff"+
"\1\111\5\uffff\1\37";
static final String DFA1_maxS =
"\1\u0098\7\uffff\3\u0099\2\u00b0\1\u009a\10\uffff\1\174\22\uffff\1\u008e"+
"\2\uffff\1\171\5\uffff\1\114";
static final String DFA1_acceptS =
"\1\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\7\6\uffff\1\10\1\11\1\23\1\27\1\31"+
"\1\40\1\46\1\12\1\uffff\1\34\1\36\1\13\1\14\1\15\1\25\1\30\1\33\1\35\1"+
"\37\1\42\1\47\1\16\1\17\1\24\1\32\1\41\1\50\1\uffff\1\20\1\44\1\uffff"+
"\1\21\1\45\1\26\1\43\1\22\1\uffff";
static final String DFA1_specialS =
"\63\uffff}>";
static final String[] DFA1_transitionS = {
"\1\12\7\uffff\1\4\14\uffff\1\10\4\uffff\1\5\4\uffff\1\11\14\uffff\1\13"+
"\10\uffff\1\2\13\uffff\1\15\32\uffff\1\14\2\uffff\1\1\17\uffff\1\7\5"+
"\uffff\1\3\1\6",
"",
"",
"",
"",
"",
"",
"",
"\1\30\22\uffff\1\17\5\uffff\1\25\23\uffff\1\27\5\uffff\1\25\13\uffff"+
"\1\16\7\uffff\1\24\14\uffff\1\26\13\uffff\1\23\20\uffff\1\21\3\uffff"+
"\1\22\4\uffff\1\20",
"\1\40\22\uffff\1\32\31\uffff\1\37\5\uffff\1\33\13\uffff\1\31\7\uffff"+
"\1\42\30\uffff\1\41\20\uffff\1\35\3\uffff\1\36\4\uffff\1\34",
"\1\43\53\uffff\1\44\7\uffff\1\50\30\uffff\1\47\24\uffff\1\46\4\uffff"+
"\1\45",
"\1\53\4\uffff\1\53\1\51\1\uffff\1\52\2\uffff\1\53\1\uffff\1\53\1\52"+
"\2\uffff\3\53\1\uffff\3\53\1\uffff\4\53\1\52\3\53\3\uffff\1\52\2\53\1"+
"\52\1\53\1\uffff\1\52\4\53\1\uffff\1\53\1\uffff\2\53\1\uffff\1\53\3\uffff"+
"\1\53\1\uffff\2\53\1\uffff\1\53\2\uffff\3\53\1\uffff\3\53\1\uffff\3\53"+
"\3\uffff\1\52\1\uffff\1\53\1\uffff\1\53\4\uffff\1\53\2\uffff\5\53\3\uffff"+
"\1\53\1\uffff\2\53\1\52\1\uffff\13\53\2\uffff\1\53\1\uffff\3\53\4\uffff"+
"\2\53\1\uffff\4\53\3\uffff\1\53\10\uffff\2\53\2\uffff\1\53",
"\1\56\4\uffff\1\56\1\54\1\uffff\1\55\2\uffff\1\56\1\uffff\1\56\1\55"+
"\2\uffff\3\56\1\uffff\3\56\1\uffff\4\56\1\55\3\56\3\uffff\1\55\2\56\1"+
"\55\1\56\1\uffff\1\55\4\56\1\uffff\1\56\1\uffff\2\56\1\uffff\1\56\3\uffff"+
"\1\56\1\uffff\2\56\1\uffff\1\56\2\uffff\3\56\1\uffff\3\56\1\uffff\3\56"+
"\3\uffff\1\55\1\uffff\1\56\1\uffff\1\56\4\uffff\1\56\2\uffff\5\56\3\uffff"+
"\1\56\1\uffff\2\56\1\55\1\uffff\13\56\2\uffff\1\56\1\uffff\3\56\4\uffff"+
"\2\56\1\uffff\4\56\3\uffff\1\56\10\uffff\2\56\2\uffff\1\56",
"\1\61\1\uffff\1\61\5\uffff\1\61\16\uffff\1\61\6\uffff\1\61\2\uffff\1"+
"\61\2\uffff\1\61\44\uffff\1\61\26\uffff\1\60\1\61\30\uffff\1\57",
"",
"",
"",
"",
"",
"",
"",
"",
"\1\62",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"\1\52\7\uffff\1\52\24\uffff\1\53",
"",
"",
"\1\56\47\uffff\1\55\7\uffff\1\55",
"",
"",
"",
"",
"",
"\1\30\54\uffff\1\27"
};
static final short[] DFA1_eot = DFA.unpackEncodedString(DFA1_eotS);
static final short[] DFA1_eof = DFA.unpackEncodedString(DFA1_eofS);
static final char[] DFA1_min = DFA.unpackEncodedStringToUnsignedChars(DFA1_minS);
static final char[] DFA1_max = DFA.unpackEncodedStringToUnsignedChars(DFA1_maxS);
static final short[] DFA1_accept = DFA.unpackEncodedString(DFA1_acceptS);
static final short[] DFA1_special = DFA.unpackEncodedString(DFA1_specialS);
static final short[][] DFA1_transition;
static {
int numStates = DFA1_transitionS.length;
DFA1_transition = new short[numStates][];
for (int i=0; i> operations, ColumnDefinition.Raw key] : (t= term ( '+' c= cident )? |c= cident sig= ( '+' | '-' ) t= term |c= cident i= INTEGER );";
}
}
static final String DFA190_eotS =
"\35\uffff";
static final String DFA190_eofS =
"\35\uffff";
static final String DFA190_minS =
"\1\32\31\u00c7\1\6\2\uffff";
static final String DFA190_maxS =
"\1\u00ad\31\u00c7\1\u00ce\2\uffff";
static final String DFA190_acceptS =
"\33\uffff\1\1\1\2";
static final String DFA190_specialS =
"\35\uffff}>";
static final String[] DFA190_transitionS = {
"\1\1\4\uffff\2\3\4\uffff\1\3\1\uffff\1\4\3\uffff\1\5\1\6\1\7\1\uffff"+
"\1\3\1\31\1\3\1\uffff\2\3\1\31\1\10\1\uffff\1\3\1\27\1\11\4\uffff\1\31"+
"\1\12\1\uffff\1\13\2\uffff\3\3\1\14\1\uffff\1\3\1\uffff\2\3\1\uffff\1"+
"\3\3\uffff\1\15\1\uffff\2\3\1\uffff\1\16\2\uffff\2\31\1\3\1\uffff\3\3"+
"\1\uffff\3\3\5\uffff\1\3\1\uffff\1\3\4\uffff\1\3\2\uffff\5\3\3\uffff"+
"\1\3\1\uffff\2\3\2\uffff\1\3\1\17\4\3\1\20\1\30\1\21\1\26\1\22\2\uffff"+
"\1\3\1\uffff\1\31\2\3\4\uffff\2\3\1\uffff\1\23\1\3\1\24\1\25\3\uffff"+
"\1\31\11\uffff\1\2",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\32",
"\1\33\4\uffff\1\33\10\uffff\1\33\3\uffff\1\33\2\uffff\1\33\3\uffff\2"+
"\33\4\uffff\1\33\1\uffff\1\33\3\uffff\3\33\1\uffff\3\33\1\uffff\4\33"+
"\1\uffff\3\33\4\uffff\2\33\1\uffff\1\33\2\uffff\4\33\1\uffff\1\33\1\uffff"+
"\2\33\1\uffff\1\33\3\uffff\4\33\1\uffff\1\33\2\uffff\3\33\1\uffff\3\33"+
"\1\uffff\3\33\4\uffff\2\33\1\uffff\1\33\4\uffff\1\33\2\uffff\5\33\3\uffff"+
"\1\33\1\uffff\2\33\2\uffff\13\33\2\uffff\1\33\1\uffff\3\33\4\uffff\2"+
"\33\1\uffff\4\33\3\uffff\1\33\14\uffff\1\33\2\uffff\1\33\14\uffff\1\33"+
"\15\uffff\1\34",
"",
""
};
static final short[] DFA190_eot = DFA.unpackEncodedString(DFA190_eotS);
static final short[] DFA190_eof = DFA.unpackEncodedString(DFA190_eofS);
static final char[] DFA190_min = DFA.unpackEncodedStringToUnsignedChars(DFA190_minS);
static final char[] DFA190_max = DFA.unpackEncodedStringToUnsignedChars(DFA190_maxS);
static final short[] DFA190_accept = DFA.unpackEncodedString(DFA190_acceptS);
static final short[] DFA190_special = DFA.unpackEncodedString(DFA190_specialS);
static final short[][] DFA190_transition;
static {
int numStates = DFA190_transitionS.length;
DFA190_transition = new short[numStates][];
for (int i=0; i' |s= STRING_LITERAL );";
}
}
public static final BitSet FOLLOW_selectStatement_in_cqlStatement59 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_insertStatement_in_cqlStatement88 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_updateStatement_in_cqlStatement117 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_batchStatement_in_cqlStatement146 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_deleteStatement_in_cqlStatement176 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_useStatement_in_cqlStatement205 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_truncateStatement_in_cqlStatement237 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createKeyspaceStatement_in_cqlStatement264 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createTableStatement_in_cqlStatement285 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createIndexStatement_in_cqlStatement308 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropKeyspaceStatement_in_cqlStatement331 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropTableStatement_in_cqlStatement353 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropIndexStatement_in_cqlStatement378 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterTableStatement_in_cqlStatement403 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterKeyspaceStatement_in_cqlStatement427 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_grantPermissionsStatement_in_cqlStatement448 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_revokePermissionsStatement_in_cqlStatement466 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_listPermissionsStatement_in_cqlStatement483 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createUserStatement_in_cqlStatement502 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterUserStatement_in_cqlStatement526 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropUserStatement_in_cqlStatement551 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_listUsersStatement_in_cqlStatement577 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createTriggerStatement_in_cqlStatement602 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropTriggerStatement_in_cqlStatement623 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createTypeStatement_in_cqlStatement646 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterTypeStatement_in_cqlStatement670 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropTypeStatement_in_cqlStatement695 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createFunctionStatement_in_cqlStatement721 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropFunctionStatement_in_cqlStatement741 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createAggregateStatement_in_cqlStatement763 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropAggregateStatement_in_cqlStatement782 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createRoleStatement_in_cqlStatement803 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterRoleStatement_in_cqlStatement827 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropRoleStatement_in_cqlStatement852 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_listRolesStatement_in_cqlStatement878 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_grantRoleStatement_in_cqlStatement903 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_revokeRoleStatement_in_cqlStatement928 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_createMaterializedViewStatement_in_cqlStatement952 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dropMaterializedViewStatement_in_cqlStatement964 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_alterMaterializedViewStatement_in_cqlStatement978 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_USE_in_useStatement1004 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_useStatement1008 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_SELECT_in_selectStatement1042 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004C09L});
public static final BitSet FOLLOW_K_JSON_in_selectStatement1052 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004C09L});
public static final BitSet FOLLOW_K_DISTINCT_in_selectStatement1069 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004C09L});
public static final BitSet FOLLOW_selectClause_in_selectStatement1078 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
public static final BitSet FOLLOW_K_FROM_in_selectStatement1088 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_selectStatement1092 = new BitSet(new long[]{0x0000000200000002L,0x0090000400008000L,0x0000000200000000L});
public static final BitSet FOLLOW_K_WHERE_in_selectStatement1102 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L,0x0000000000002000L});
public static final BitSet FOLLOW_whereClause_in_selectStatement1106 = new BitSet(new long[]{0x0000000200000002L,0x0090000400008000L});
public static final BitSet FOLLOW_K_GROUP_in_selectStatement1119 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_K_BY_in_selectStatement1121 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_groupByClause_in_selectStatement1123 = new BitSet(new long[]{0x0000000200000002L,0x0090000400000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_selectStatement1128 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_groupByClause_in_selectStatement1130 = new BitSet(new long[]{0x0000000200000002L,0x0090000400000000L,0x8000000000000000L});
public static final BitSet FOLLOW_K_ORDER_in_selectStatement1147 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_K_BY_in_selectStatement1149 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_orderByClause_in_selectStatement1151 = new BitSet(new long[]{0x0000000200000002L,0x0080000400000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_selectStatement1156 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_orderByClause_in_selectStatement1158 = new BitSet(new long[]{0x0000000200000002L,0x0080000400000000L,0x8000000000000000L});
public static final BitSet FOLLOW_K_PER_in_selectStatement1175 = new BitSet(new long[]{0x0000000000000000L,0x0020000000000000L});
public static final BitSet FOLLOW_K_PARTITION_in_selectStatement1177 = new BitSet(new long[]{0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_LIMIT_in_selectStatement1179 = new BitSet(new long[]{0x0000000008000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_intValue_in_selectStatement1183 = new BitSet(new long[]{0x0000000200000002L,0x0000000400000000L});
public static final BitSet FOLLOW_K_LIMIT_in_selectStatement1198 = new BitSet(new long[]{0x0000000008000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_intValue_in_selectStatement1202 = new BitSet(new long[]{0x0000000200000002L});
public static final BitSet FOLLOW_K_ALLOW_in_selectStatement1217 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_K_FILTERING_in_selectStatement1219 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_selector_in_selectClause1256 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_selectClause1261 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_selector_in_selectClause1265 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_203_in_selectClause1277 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unaliasedSelector_in_selector1310 = new BitSet(new long[]{0x0000002000000002L});
public static final BitSet FOLLOW_K_AS_in_selector1313 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_selector1317 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_unaliasedSelector1360 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_value_in_unaliasedSelector1408 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_187_in_unaliasedSelector1455 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_unaliasedSelector1459 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_unaliasedSelector1461 = new BitSet(new long[]{0x0000000009100840L,0x0000840000100000L,0x0809100000000000L,0x0000000000004409L});
public static final BitSet FOLLOW_value_in_unaliasedSelector1465 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_K_COUNT_in_unaliasedSelector1486 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_unaliasedSelector1488 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000800L});
public static final BitSet FOLLOW_203_in_unaliasedSelector1490 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_unaliasedSelector1492 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_K_WRITETIME_in_unaliasedSelector1526 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_unaliasedSelector1528 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_unaliasedSelector1532 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_unaliasedSelector1534 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_K_TTL_in_unaliasedSelector1560 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_unaliasedSelector1568 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_unaliasedSelector1572 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_unaliasedSelector1574 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_K_CAST_in_unaliasedSelector1600 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_unaliasedSelector1607 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_unaliasedSelector_in_unaliasedSelector1611 = new BitSet(new long[]{0x0000002000000000L});
public static final BitSet FOLLOW_K_AS_in_unaliasedSelector1613 = new BitSet(new long[]{0x0640388000000000L,0x0000000001080105L,0x00000000D0003E10L});
public static final BitSet FOLLOW_native_type_in_unaliasedSelector1617 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_unaliasedSelector1619 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_functionName_in_unaliasedSelector1634 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_selectionFunctionArgs_in_unaliasedSelector1638 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_unaliasedSelector1653 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_unaliasedSelector1657 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_187_in_selectionFunctionArgs1685 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_selectionFunctionArgs1687 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_selectionFunctionArgs1697 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_unaliasedSelector_in_selectionFunctionArgs1701 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_selectionFunctionArgs1717 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_unaliasedSelector_in_selectionFunctionArgs1721 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_selectionFunctionArgs1734 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_relationOrExpression_in_whereClause1765 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_whereClause1769 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L,0x0000000000002000L});
public static final BitSet FOLLOW_relationOrExpression_in_whereClause1771 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_relation_in_relationOrExpression1793 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_customIndexExpression_in_relationOrExpression1802 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_205_in_customIndexExpression1830 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_idxName_in_customIndexExpression1832 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_customIndexExpression1835 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_customIndexExpression1839 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_customIndexExpression1841 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_orderByClause1871 = new BitSet(new long[]{0x2000004000000002L});
public static final BitSet FOLLOW_K_ASC_in_orderByClause1874 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DESC_in_orderByClause1878 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_groupByClause1904 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_INSERT_in_insertStatement1929 = new BitSet(new long[]{0x0000000000000000L,0x0000000002000000L});
public static final BitSet FOLLOW_K_INTO_in_insertStatement1931 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_insertStatement1935 = new BitSet(new long[]{0x0000000000000000L,0x0000000008000000L,0x0800000000000000L});
public static final BitSet FOLLOW_normalInsertStatement_in_insertStatement1949 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_JSON_in_insertStatement1964 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_jsonInsertStatement_in_insertStatement1968 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_normalInsertStatement2004 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_normalInsertStatement2008 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_normalInsertStatement2015 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_normalInsertStatement2019 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_normalInsertStatement2026 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000020000000L});
public static final BitSet FOLLOW_K_VALUES_in_normalInsertStatement2034 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_normalInsertStatement2042 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_normalInsertStatement2046 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_normalInsertStatement2052 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_normalInsertStatement2056 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_normalInsertStatement2063 = new BitSet(new long[]{0x0000000000000002L,0x0000000000010000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_IF_in_normalInsertStatement2073 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_normalInsertStatement2075 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_normalInsertStatement2077 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000008000000L});
public static final BitSet FOLLOW_usingClause_in_normalInsertStatement2092 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_jsonValue_in_jsonInsertStatement2138 = new BitSet(new long[]{0x0800000000000002L,0x0000000000010000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_DEFAULT_in_jsonInsertStatement2148 = new BitSet(new long[]{0x0000000000000000L,0x0000800000000000L,0x0000000000400000L});
public static final BitSet FOLLOW_K_NULL_in_jsonInsertStatement2152 = new BitSet(new long[]{0x0000000000000002L,0x0000000000010000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_UNSET_in_jsonInsertStatement2160 = new BitSet(new long[]{0x0000000000000002L,0x0000000000010000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_IF_in_jsonInsertStatement2176 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_jsonInsertStatement2178 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_jsonInsertStatement2180 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000008000000L});
public static final BitSet FOLLOW_usingClause_in_jsonInsertStatement2195 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_jsonValue2230 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_jsonValue2240 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_jsonValue2244 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_jsonValue2258 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_USING_in_usingClause2289 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000040800L});
public static final BitSet FOLLOW_usingClauseObjective_in_usingClause2291 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_usingClause2296 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000040800L});
public static final BitSet FOLLOW_usingClauseObjective_in_usingClause2298 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_TIMESTAMP_in_usingClauseObjective2320 = new BitSet(new long[]{0x0000000008000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_intValue_in_usingClauseObjective2324 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TTL_in_usingClauseObjective2334 = new BitSet(new long[]{0x0000000008000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_intValue_in_usingClauseObjective2338 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_UPDATE_in_updateStatement2372 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_updateStatement2376 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000008000004L});
public static final BitSet FOLLOW_usingClause_in_updateStatement2386 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_K_SET_in_updateStatement2398 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_columnOperation_in_updateStatement2400 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000200000000L});
public static final BitSet FOLLOW_191_in_updateStatement2404 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_columnOperation_in_updateStatement2406 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000200000000L});
public static final BitSet FOLLOW_K_WHERE_in_updateStatement2417 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L,0x0000000000002000L});
public static final BitSet FOLLOW_whereClause_in_updateStatement2421 = new BitSet(new long[]{0x0000000000000002L,0x0000000000010000L});
public static final BitSet FOLLOW_K_IF_in_updateStatement2431 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_EXISTS_in_updateStatement2435 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_updateConditions_in_updateStatement2443 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_columnCondition_in_updateConditions2485 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_updateConditions2490 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_columnCondition_in_updateConditions2492 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_DELETE_in_deleteStatement2529 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B7E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_deleteSelection_in_deleteStatement2535 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
public static final BitSet FOLLOW_K_FROM_in_deleteStatement2548 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_deleteStatement2552 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000208000000L});
public static final BitSet FOLLOW_usingClauseDelete_in_deleteStatement2562 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000200000000L});
public static final BitSet FOLLOW_K_WHERE_in_deleteStatement2574 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L,0x0000000000002000L});
public static final BitSet FOLLOW_whereClause_in_deleteStatement2578 = new BitSet(new long[]{0x0000000000000002L,0x0000000000010000L});
public static final BitSet FOLLOW_K_IF_in_deleteStatement2588 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_EXISTS_in_deleteStatement2592 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_updateConditions_in_deleteStatement2600 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_deleteOp_in_deleteSelection2647 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_deleteSelection2662 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_deleteOp_in_deleteSelection2666 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_cident_in_deleteOp2693 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_deleteOp2720 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000400L});
public static final BitSet FOLLOW_202_in_deleteOp2722 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_deleteOp2726 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_204_in_deleteOp2728 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_deleteOp2740 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_deleteOp2742 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_deleteOp2746 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_USING_in_usingClauseDelete2766 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000800L});
public static final BitSet FOLLOW_K_TIMESTAMP_in_usingClauseDelete2768 = new BitSet(new long[]{0x0000000008000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_intValue_in_usingClauseDelete2772 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_BEGIN_in_batchStatement2806 = new BitSet(new long[]{0x0040020000000000L,0x0000000000000000L,0x0000000000200000L});
public static final BitSet FOLLOW_K_UNLOGGED_in_batchStatement2816 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_K_COUNTER_in_batchStatement2822 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_K_BATCH_in_batchStatement2835 = new BitSet(new long[]{0x1000001000000000L,0x0000000000800000L,0x0000000008800000L});
public static final BitSet FOLLOW_usingClause_in_batchStatement2839 = new BitSet(new long[]{0x1000001000000000L,0x0000000000800000L,0x0000000000800000L});
public static final BitSet FOLLOW_batchStatementObjective_in_batchStatement2859 = new BitSet(new long[]{0x1000001000000000L,0x0000000000800000L,0x0000000000800000L,0x0000000000000010L});
public static final BitSet FOLLOW_196_in_batchStatement2861 = new BitSet(new long[]{0x1000001000000000L,0x0000000000800000L,0x0000000000800000L});
public static final BitSet FOLLOW_K_APPLY_in_batchStatement2875 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_K_BATCH_in_batchStatement2877 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_insertStatement_in_batchStatementObjective2908 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_updateStatement_in_batchStatementObjective2921 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_deleteStatement_in_batchStatementObjective2934 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createAggregateStatement2967 = new BitSet(new long[]{0x0000000080000000L,0x0008000000000000L});
public static final BitSet FOLLOW_K_OR_in_createAggregateStatement2970 = new BitSet(new long[]{0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_K_REPLACE_in_createAggregateStatement2972 = new BitSet(new long[]{0x0000000080000000L});
public static final BitSet FOLLOW_K_AGGREGATE_in_createAggregateStatement2984 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_K_IF_in_createAggregateStatement2993 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createAggregateStatement2995 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createAggregateStatement2997 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_functionName_in_createAggregateStatement3011 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createAggregateStatement3019 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x10012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createAggregateStatement3043 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createAggregateStatement3059 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createAggregateStatement3063 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createAggregateStatement3087 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_K_SFUNC_in_createAggregateStatement3095 = new BitSet(new long[]{0x077AB8A184000000L,0xA3E4283BA168B5E5L,0x00002000F619BFF9L});
public static final BitSet FOLLOW_allowedFunctionName_in_createAggregateStatement3101 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_K_STYPE_in_createAggregateStatement3109 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createAggregateStatement3115 = new BitSet(new long[]{0x0000000000000002L,0x0000000000200080L});
public static final BitSet FOLLOW_K_FINALFUNC_in_createAggregateStatement3133 = new BitSet(new long[]{0x077AB8A184000000L,0xA3E4283BA168B5E5L,0x00002000F619BFF9L});
public static final BitSet FOLLOW_allowedFunctionName_in_createAggregateStatement3139 = new BitSet(new long[]{0x0000000000000002L,0x0000000000200000L});
public static final BitSet FOLLOW_K_INITCOND_in_createAggregateStatement3166 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_createAggregateStatement3172 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropAggregateStatement3219 = new BitSet(new long[]{0x0000000080000000L});
public static final BitSet FOLLOW_K_AGGREGATE_in_dropAggregateStatement3221 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_K_IF_in_dropAggregateStatement3230 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropAggregateStatement3232 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_functionName_in_dropAggregateStatement3247 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_dropAggregateStatement3265 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x10012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_dropAggregateStatement3293 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_dropAggregateStatement3311 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_dropAggregateStatement3315 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_dropAggregateStatement3343 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createFunctionStatement3400 = new BitSet(new long[]{0x0000000000000000L,0x0008000000001000L});
public static final BitSet FOLLOW_K_OR_in_createFunctionStatement3403 = new BitSet(new long[]{0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_K_REPLACE_in_createFunctionStatement3405 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_K_FUNCTION_in_createFunctionStatement3417 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_K_IF_in_createFunctionStatement3426 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createFunctionStatement3428 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createFunctionStatement3430 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_functionName_in_createFunctionStatement3444 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createFunctionStatement3452 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x10002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_createFunctionStatement3476 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createFunctionStatement3480 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createFunctionStatement3496 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_createFunctionStatement3500 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createFunctionStatement3504 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createFunctionStatement3528 = new BitSet(new long[]{0x0000800000000000L,0x2000000000000000L});
public static final BitSet FOLLOW_K_RETURNS_in_createFunctionStatement3539 = new BitSet(new long[]{0x0000000000000000L,0x0000800000000000L});
public static final BitSet FOLLOW_K_NULL_in_createFunctionStatement3541 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_CALLED_in_createFunctionStatement3547 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_createFunctionStatement3553 = new BitSet(new long[]{0x0000000000000000L,0x0000800000000000L});
public static final BitSet FOLLOW_K_NULL_in_createFunctionStatement3555 = new BitSet(new long[]{0x0000000000000000L,0x0000000000400000L});
public static final BitSet FOLLOW_K_INPUT_in_createFunctionStatement3557 = new BitSet(new long[]{0x0000000000000000L,0x2000000000000000L});
public static final BitSet FOLLOW_K_RETURNS_in_createFunctionStatement3565 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_createFunctionStatement3571 = new BitSet(new long[]{0x0000000000000000L,0x0000000100000000L});
public static final BitSet FOLLOW_K_LANGUAGE_in_createFunctionStatement3579 = new BitSet(new long[]{0x0000000004000000L});
public static final BitSet FOLLOW_IDENT_in_createFunctionStatement3585 = new BitSet(new long[]{0x0000002000000000L});
public static final BitSet FOLLOW_K_AS_in_createFunctionStatement3593 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_createFunctionStatement3599 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropFunctionStatement3637 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_K_FUNCTION_in_dropFunctionStatement3639 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_K_IF_in_dropFunctionStatement3648 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropFunctionStatement3650 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_functionName_in_dropFunctionStatement3665 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_dropFunctionStatement3683 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x10012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_dropFunctionStatement3711 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_dropFunctionStatement3729 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_dropFunctionStatement3733 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_dropFunctionStatement3761 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createKeyspaceStatement3820 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L});
public static final BitSet FOLLOW_K_KEYSPACE_in_createKeyspaceStatement3822 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createKeyspaceStatement3825 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createKeyspaceStatement3827 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createKeyspaceStatement3829 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_createKeyspaceStatement3838 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_createKeyspaceStatement3846 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_properties_in_createKeyspaceStatement3848 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createTableStatement3883 = new BitSet(new long[]{0x0004000000000000L});
public static final BitSet FOLLOW_K_COLUMNFAMILY_in_createTableStatement3885 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createTableStatement3888 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createTableStatement3890 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createTableStatement3892 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_createTableStatement3907 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_cfamDefinition_in_createTableStatement3917 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_cfamDefinition3936 = new BitSet(new long[]{0x877BB8A184000000L,0xA7E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamColumns_in_cfamDefinition3938 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_cfamDefinition3943 = new BitSet(new long[]{0x877BB8A184000000L,0xA7E4283BB968B5E5L,0x90002008F61D3FF9L});
public static final BitSet FOLLOW_cfamColumns_in_cfamDefinition3945 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_cfamDefinition3952 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_cfamDefinition3962 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamProperty_in_cfamDefinition3964 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_cfamDefinition3969 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamProperty_in_cfamDefinition3971 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_ident_in_cfamColumns3997 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_cfamColumns4001 = new BitSet(new long[]{0x0000000000000002L,0x0400000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_STATIC_in_cfamColumns4006 = new BitSet(new long[]{0x0000000000000002L,0x0400000000000000L});
public static final BitSet FOLLOW_K_PRIMARY_in_cfamColumns4023 = new BitSet(new long[]{0x0000000000000000L,0x0000000010000000L});
public static final BitSet FOLLOW_K_KEY_in_cfamColumns4025 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_PRIMARY_in_cfamColumns4037 = new BitSet(new long[]{0x0000000000000000L,0x0000000010000000L});
public static final BitSet FOLLOW_K_KEY_in_cfamColumns4039 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_cfamColumns4041 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x08002008F61D3FF9L});
public static final BitSet FOLLOW_pkDef_in_cfamColumns4043 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_cfamColumns4047 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_ident_in_cfamColumns4051 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_cfamColumns4058 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ident_in_pkDef4078 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_pkDef4088 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_ident_in_pkDef4094 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_pkDef4100 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_ident_in_pkDef4104 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_pkDef4111 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_property_in_cfamProperty4131 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_COMPACT_in_cfamProperty4140 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_K_STORAGE_in_cfamProperty4142 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CLUSTERING_in_cfamProperty4152 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L});
public static final BitSet FOLLOW_K_ORDER_in_cfamProperty4154 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_K_BY_in_cfamProperty4156 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_cfamProperty4158 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamOrdering_in_cfamProperty4160 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_cfamProperty4164 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamOrdering_in_cfamProperty4166 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_cfamProperty4171 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ident_in_cfamOrdering4199 = new BitSet(new long[]{0x2000004000000000L});
public static final BitSet FOLLOW_K_ASC_in_cfamOrdering4202 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DESC_in_cfamOrdering4206 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createTypeStatement4245 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_K_TYPE_in_createTypeStatement4247 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createTypeStatement4250 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createTypeStatement4252 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createTypeStatement4254 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_userTypeName_in_createTypeStatement4272 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createTypeStatement4285 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_typeColumns_in_createTypeStatement4287 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createTypeStatement4292 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x90002008F61D3FF9L});
public static final BitSet FOLLOW_typeColumns_in_createTypeStatement4294 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createTypeStatement4301 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_fident_in_typeColumns4321 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_typeColumns4325 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createIndexStatement4360 = new BitSet(new long[]{0x0100000000000000L,0x0000000000040000L});
public static final BitSet FOLLOW_K_CUSTOM_in_createIndexStatement4363 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040000L});
public static final BitSet FOLLOW_K_INDEX_in_createIndexStatement4369 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E6283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createIndexStatement4372 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createIndexStatement4374 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createIndexStatement4376 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E6283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_idxName_in_createIndexStatement4392 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_createIndexStatement4397 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_createIndexStatement4401 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createIndexStatement4403 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968BDEDL,0x10002008F61D3FF9L});
public static final BitSet FOLLOW_indexIdent_in_createIndexStatement4406 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createIndexStatement4410 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968BDEDL,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_indexIdent_in_createIndexStatement4412 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createIndexStatement4419 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000408000000L});
public static final BitSet FOLLOW_K_USING_in_createIndexStatement4430 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_createIndexStatement4434 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_createIndexStatement4449 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_properties_in_createIndexStatement4451 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_indexIdent4483 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_VALUES_in_indexIdent4511 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_indexIdent4513 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_indexIdent4517 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_indexIdent4519 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_KEYS_in_indexIdent4530 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_indexIdent4532 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_indexIdent4536 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_indexIdent4538 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ENTRIES_in_indexIdent4551 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_indexIdent4553 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_indexIdent4557 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_indexIdent4559 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_FULL_in_indexIdent4569 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_indexIdent4571 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_indexIdent4575 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_indexIdent4577 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createMaterializedViewStatement4614 = new BitSet(new long[]{0x0000000000000000L,0x0000004000000000L});
public static final BitSet FOLLOW_K_MATERIALIZED_in_createMaterializedViewStatement4616 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000100000000L});
public static final BitSet FOLLOW_K_VIEW_in_createMaterializedViewStatement4618 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createMaterializedViewStatement4621 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createMaterializedViewStatement4623 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createMaterializedViewStatement4625 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_createMaterializedViewStatement4633 = new BitSet(new long[]{0x0000002000000000L});
public static final BitSet FOLLOW_K_AS_in_createMaterializedViewStatement4635 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_K_SELECT_in_createMaterializedViewStatement4645 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004C09L});
public static final BitSet FOLLOW_selectClause_in_createMaterializedViewStatement4649 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
public static final BitSet FOLLOW_K_FROM_in_createMaterializedViewStatement4651 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_createMaterializedViewStatement4655 = new BitSet(new long[]{0x0000000000000000L,0x0400000000000000L,0x0000000200000000L});
public static final BitSet FOLLOW_K_WHERE_in_createMaterializedViewStatement4666 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L,0x0000000000002000L});
public static final BitSet FOLLOW_whereClause_in_createMaterializedViewStatement4670 = new BitSet(new long[]{0x0000000000000000L,0x0400000000000000L});
public static final BitSet FOLLOW_K_PRIMARY_in_createMaterializedViewStatement4682 = new BitSet(new long[]{0x0000000000000000L,0x0000000010000000L});
public static final BitSet FOLLOW_K_KEY_in_createMaterializedViewStatement4684 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createMaterializedViewStatement4696 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_createMaterializedViewStatement4698 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_createMaterializedViewStatement4702 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createMaterializedViewStatement4708 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_createMaterializedViewStatement4712 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createMaterializedViewStatement4719 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createMaterializedViewStatement4723 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_createMaterializedViewStatement4727 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createMaterializedViewStatement4734 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_187_in_createMaterializedViewStatement4744 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_createMaterializedViewStatement4748 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_createMaterializedViewStatement4754 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_createMaterializedViewStatement4758 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_createMaterializedViewStatement4765 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_createMaterializedViewStatement4797 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamProperty_in_createMaterializedViewStatement4799 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_createMaterializedViewStatement4804 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cfamProperty_in_createMaterializedViewStatement4806 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_CREATE_in_createTriggerStatement4844 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000010000L});
public static final BitSet FOLLOW_K_TRIGGER_in_createTriggerStatement4846 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createTriggerStatement4849 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createTriggerStatement4851 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createTriggerStatement4853 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_ident_in_createTriggerStatement4863 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_createTriggerStatement4874 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_createTriggerStatement4878 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_USING_in_createTriggerStatement4880 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_createTriggerStatement4884 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropTriggerStatement4925 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000010000L});
public static final BitSet FOLLOW_K_TRIGGER_in_dropTriggerStatement4927 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropTriggerStatement4930 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropTriggerStatement4932 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_ident_in_dropTriggerStatement4942 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_dropTriggerStatement4945 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_dropTriggerStatement4949 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterKeyspaceStatement4989 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L});
public static final BitSet FOLLOW_K_KEYSPACE_in_alterKeyspaceStatement4991 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_alterKeyspaceStatement4995 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_alterKeyspaceStatement5005 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_properties_in_alterKeyspaceStatement5007 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterTableStatement5042 = new BitSet(new long[]{0x0004000000000000L});
public static final BitSet FOLLOW_K_COLUMNFAMILY_in_alterTableStatement5044 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_alterTableStatement5048 = new BitSet(new long[]{0x0000000440000000L,0x0800000000000002L,0x0000000400000000L});
public static final BitSet FOLLOW_K_ALTER_in_alterTableStatement5062 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5066 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_K_TYPE_in_alterTableStatement5069 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTableStatement5073 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ADD_in_alterTableStatement5092 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x08002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5107 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTableStatement5112 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_cfisStatic_in_alterTableStatement5118 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_alterTableStatement5147 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5152 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTableStatement5157 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000020L});
public static final BitSet FOLLOW_cfisStatic_in_alterTableStatement5162 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_alterTableStatement5191 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5195 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTableStatement5200 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000020L});
public static final BitSet FOLLOW_cfisStatic_in_alterTableStatement5205 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_alterTableStatement5212 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_alterTableStatement5232 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_K_COMPACT_in_alterTableStatement5234 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_K_STORAGE_in_alterTableStatement5236 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_alterTableStatement5269 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x08002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5284 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000008000000L});
public static final BitSet FOLLOW_187_in_alterTableStatement5314 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5319 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_alterTableStatement5349 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5353 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_alterTableStatement5360 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000008000000L});
public static final BitSet FOLLOW_K_USING_in_alterTableStatement5388 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000800L});
public static final BitSet FOLLOW_K_TIMESTAMP_in_alterTableStatement5390 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_INTEGER_in_alterTableStatement5394 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_WITH_in_alterTableStatement5416 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_properties_in_alterTableStatement5419 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_RENAME_in_alterTableStatement5452 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5506 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_alterTableStatement5508 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5512 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_alterTableStatement5533 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5537 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_alterTableStatement5539 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_schema_cident_in_alterTableStatement5543 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_STATIC_in_cfisStatic5596 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterMaterializedViewStatement5632 = new BitSet(new long[]{0x0000000000000000L,0x0000004000000000L});
public static final BitSet FOLLOW_K_MATERIALIZED_in_alterMaterializedViewStatement5634 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000100000000L});
public static final BitSet FOLLOW_K_VIEW_in_alterMaterializedViewStatement5636 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_alterMaterializedViewStatement5640 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_alterMaterializedViewStatement5652 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_properties_in_alterMaterializedViewStatement5654 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterTypeStatement5685 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_K_TYPE_in_alterTypeStatement5687 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_userTypeName_in_alterTypeStatement5691 = new BitSet(new long[]{0x0000000440000000L,0x0800000000000000L});
public static final BitSet FOLLOW_K_ALTER_in_alterTypeStatement5705 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5709 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_K_TYPE_in_alterTypeStatement5711 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTypeStatement5715 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ADD_in_alterTypeStatement5731 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5737 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_alterTypeStatement5741 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_RENAME_in_alterTypeStatement5764 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5802 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_alterTypeStatement5804 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5808 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_alterTypeStatement5831 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5835 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_alterTypeStatement5837 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_alterTypeStatement5841 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_DROP_in_dropKeyspaceStatement5908 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L});
public static final BitSet FOLLOW_K_KEYSPACE_in_dropKeyspaceStatement5910 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropKeyspaceStatement5913 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropKeyspaceStatement5915 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_dropKeyspaceStatement5924 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropTableStatement5958 = new BitSet(new long[]{0x0004000000000000L});
public static final BitSet FOLLOW_K_COLUMNFAMILY_in_dropTableStatement5960 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropTableStatement5963 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropTableStatement5965 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_dropTableStatement5974 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropTypeStatement6008 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_K_TYPE_in_dropTypeStatement6010 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropTypeStatement6013 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropTypeStatement6015 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_userTypeName_in_dropTypeStatement6024 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropIndexStatement6058 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040000L});
public static final BitSet FOLLOW_K_INDEX_in_dropIndexStatement6060 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropIndexStatement6063 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropIndexStatement6065 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_indexName_in_dropIndexStatement6074 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropMaterializedViewStatement6114 = new BitSet(new long[]{0x0000000000000000L,0x0000004000000000L});
public static final BitSet FOLLOW_K_MATERIALIZED_in_dropMaterializedViewStatement6116 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000100000000L});
public static final BitSet FOLLOW_K_VIEW_in_dropMaterializedViewStatement6118 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropMaterializedViewStatement6121 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropMaterializedViewStatement6123 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_dropMaterializedViewStatement6132 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TRUNCATE_in_truncateStatement6163 = new BitSet(new long[]{0x877FB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_K_COLUMNFAMILY_in_truncateStatement6166 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_truncateStatement6172 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_GRANT_in_grantPermissionsStatement6197 = new BitSet(new long[]{0x4080010500000000L,0x0000020000000012L,0x0000000000000002L});
public static final BitSet FOLLOW_permissionOrAll_in_grantPermissionsStatement6209 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_grantPermissionsStatement6217 = new BitSet(new long[]{0x877FB8A184000000L,0xA3E429BBF968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_resource_in_grantPermissionsStatement6229 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_grantPermissionsStatement6237 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_grantPermissionsStatement6251 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_REVOKE_in_revokePermissionsStatement6282 = new BitSet(new long[]{0x4080010500000000L,0x0000020000000012L,0x0000000000000002L});
public static final BitSet FOLLOW_permissionOrAll_in_revokePermissionsStatement6294 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_K_ON_in_revokePermissionsStatement6302 = new BitSet(new long[]{0x877FB8A184000000L,0xA3E429BBF968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_resource_in_revokePermissionsStatement6314 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
public static final BitSet FOLLOW_K_FROM_in_revokePermissionsStatement6322 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_revokePermissionsStatement6336 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_GRANT_in_grantRoleStatement6367 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_grantRoleStatement6381 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_K_TO_in_grantRoleStatement6389 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_grantRoleStatement6403 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_REVOKE_in_revokeRoleStatement6434 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_revokeRoleStatement6448 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L});
public static final BitSet FOLLOW_K_FROM_in_revokeRoleStatement6456 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_revokeRoleStatement6470 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_LIST_in_listPermissionsStatement6508 = new BitSet(new long[]{0x4080010500000000L,0x0000020000000012L,0x0000000000000002L});
public static final BitSet FOLLOW_permissionOrAll_in_listPermissionsStatement6520 = new BitSet(new long[]{0x0000000000000002L,0x0003100000000000L});
public static final BitSet FOLLOW_K_ON_in_listPermissionsStatement6530 = new BitSet(new long[]{0x877FB8A184000000L,0xA3E429BBF968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_resource_in_listPermissionsStatement6532 = new BitSet(new long[]{0x0000000000000002L,0x0001100000000000L});
public static final BitSet FOLLOW_K_OF_in_listPermissionsStatement6547 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_roleName_in_listPermissionsStatement6549 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L});
public static final BitSet FOLLOW_K_NORECURSIVE_in_listPermissionsStatement6563 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_permission6599 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_permissionOrAll6656 = new BitSet(new long[]{0x0000000000000002L,0x0200000000000000L});
public static final BitSet FOLLOW_K_PERMISSIONS_in_permissionOrAll6660 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_permission_in_permissionOrAll6681 = new BitSet(new long[]{0x0000000000000002L,0x0100000000000000L});
public static final BitSet FOLLOW_K_PERMISSION_in_permissionOrAll6685 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_dataResource_in_resource6713 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_roleResource_in_resource6725 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_functionResource_in_resource6737 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_jmxResource_in_resource6749 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_dataResource6772 = new BitSet(new long[]{0x0000000000000000L,0x0000000080000000L});
public static final BitSet FOLLOW_K_KEYSPACES_in_dataResource6774 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_KEYSPACE_in_dataResource6784 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_dataResource6790 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_COLUMNFAMILY_in_dataResource6802 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_columnFamilyName_in_dataResource6811 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_jmxResource6840 = new BitSet(new long[]{0x0000000000000000L,0x0000010000000000L});
public static final BitSet FOLLOW_K_MBEANS_in_jmxResource6842 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_MBEAN_in_jmxResource6862 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_mbean_in_jmxResource6864 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_MBEANS_in_jmxResource6874 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_mbean_in_jmxResource6876 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_roleResource6899 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_K_ROLES_in_roleResource6901 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ROLE_in_roleResource6911 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_roleResource6917 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_functionResource6949 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L});
public static final BitSet FOLLOW_K_FUNCTIONS_in_functionResource6951 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALL_in_functionResource6961 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L});
public static final BitSet FOLLOW_K_FUNCTIONS_in_functionResource6963 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L});
public static final BitSet FOLLOW_K_IN_in_functionResource6965 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L});
public static final BitSet FOLLOW_K_KEYSPACE_in_functionResource6967 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_keyspaceName_in_functionResource6973 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_FUNCTION_in_functionResource6988 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61DBFF9L});
public static final BitSet FOLLOW_functionName_in_functionResource6992 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_functionResource7010 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x10012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_functionResource7038 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_functionResource7056 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_functionResource7060 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_functionResource7088 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createUserStatement7136 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000002000000L});
public static final BitSet FOLLOW_K_USER_in_createUserStatement7138 = new BitSet(new long[]{0x0000000004000000L,0x0000000000010000L,0x0001200000000000L});
public static final BitSet FOLLOW_K_IF_in_createUserStatement7141 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createUserStatement7143 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createUserStatement7145 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0001200000000000L});
public static final BitSet FOLLOW_username_in_createUserStatement7153 = new BitSet(new long[]{0x0000000000000002L,0x0000200000000000L,0x0000000400000100L});
public static final BitSet FOLLOW_K_WITH_in_createUserStatement7165 = new BitSet(new long[]{0x0000000000000000L,0x0040000000000000L});
public static final BitSet FOLLOW_userPassword_in_createUserStatement7167 = new BitSet(new long[]{0x0000000000000002L,0x0000200000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_K_SUPERUSER_in_createUserStatement7181 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_NOSUPERUSER_in_createUserStatement7187 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterUserStatement7232 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000002000000L});
public static final BitSet FOLLOW_K_USER_in_alterUserStatement7234 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0001200000000000L});
public static final BitSet FOLLOW_username_in_alterUserStatement7238 = new BitSet(new long[]{0x0000000000000002L,0x0000200000000000L,0x0000000400000100L});
public static final BitSet FOLLOW_K_WITH_in_alterUserStatement7250 = new BitSet(new long[]{0x0000000000000000L,0x0040000000000000L});
public static final BitSet FOLLOW_userPassword_in_alterUserStatement7252 = new BitSet(new long[]{0x0000000000000002L,0x0000200000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_K_SUPERUSER_in_alterUserStatement7266 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_NOSUPERUSER_in_alterUserStatement7280 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropUserStatement7326 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000002000000L});
public static final BitSet FOLLOW_K_USER_in_dropUserStatement7328 = new BitSet(new long[]{0x0000000004000000L,0x0000000000010000L,0x0001200000000000L});
public static final BitSet FOLLOW_K_IF_in_dropUserStatement7331 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropUserStatement7333 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0001200000000000L});
public static final BitSet FOLLOW_username_in_dropUserStatement7341 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_LIST_in_listUsersStatement7366 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000004000000L});
public static final BitSet FOLLOW_K_USERS_in_listUsersStatement7368 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_CREATE_in_createRoleStatement7402 = new BitSet(new long[]{0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_K_ROLE_in_createRoleStatement7404 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_createRoleStatement7407 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_createRoleStatement7409 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_createRoleStatement7411 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_createRoleStatement7419 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_createRoleStatement7429 = new BitSet(new long[]{0x0000000000000000L,0x0044001000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_roleOptions_in_createRoleStatement7431 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ALTER_in_alterRoleStatement7475 = new BitSet(new long[]{0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_K_ROLE_in_alterRoleStatement7477 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_alterRoleStatement7481 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000400000000L});
public static final BitSet FOLLOW_K_WITH_in_alterRoleStatement7491 = new BitSet(new long[]{0x0000000000000000L,0x0044001000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_roleOptions_in_alterRoleStatement7493 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DROP_in_dropRoleStatement7537 = new BitSet(new long[]{0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_K_ROLE_in_dropRoleStatement7539 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB969B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_K_IF_in_dropRoleStatement7542 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_K_EXISTS_in_dropRoleStatement7544 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_userOrRoleName_in_dropRoleStatement7552 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_LIST_in_listRolesStatement7592 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_K_ROLES_in_listRolesStatement7594 = new BitSet(new long[]{0x0000000000000002L,0x0001100000000000L});
public static final BitSet FOLLOW_K_OF_in_listRolesStatement7604 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00013008F61D3FF9L});
public static final BitSet FOLLOW_roleName_in_listRolesStatement7606 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L});
public static final BitSet FOLLOW_K_NORECURSIVE_in_listRolesStatement7619 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_roleOption_in_roleOptions7650 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_roleOptions7654 = new BitSet(new long[]{0x0000000000000000L,0x0044001000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_roleOption_in_roleOptions7656 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_PASSWORD_in_roleOption7678 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_roleOption7680 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_roleOption7684 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_OPTIONS_in_roleOption7695 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_roleOption7697 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_mapLiteral_in_roleOption7701 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_SUPERUSER_in_roleOption7712 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_roleOption7714 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_BOOLEAN_in_roleOption7718 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_LOGIN_in_roleOption7729 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_roleOption7731 = new BitSet(new long[]{0x0000000000000040L});
public static final BitSet FOLLOW_BOOLEAN_in_roleOption7735 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_PASSWORD_in_userPassword7757 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0001000000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_userPassword7761 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EMPTY_QUOTED_NAME_in_cident7793 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_cident7808 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_cident7833 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_cident7852 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_schema_cident7877 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_schema_cident7902 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_schema_cident7921 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_ident7947 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_ident7972 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_ident7991 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_fident8016 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_fident8041 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_fident8060 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_noncol_ident8086 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_noncol_ident8111 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_noncol_ident8130 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ksName_in_keyspaceName8163 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ksName_in_indexName8197 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_indexName8200 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_idxName_in_indexName8204 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ksName_in_columnFamilyName8236 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_columnFamilyName8239 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00003008F61D3FF9L});
public static final BitSet FOLLOW_cfName_in_columnFamilyName8243 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_noncol_ident_in_userTypeName8268 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_userTypeName8270 = new BitSet(new long[]{0x011A802184000000L,0xA3E4283BB060B4E0L,0x00002000261901E9L});
public static final BitSet FOLLOW_non_type_ident_in_userTypeName8276 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_roleName_in_userOrRoleName8308 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_ksName8331 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_ksName8356 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_ksName8375 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_ksName8385 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_cfName8407 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_cfName8432 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_cfName8451 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_cfName8461 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_idxName8483 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_idxName8508 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_idxName8527 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_idxName8537 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_roleName8559 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_roleName8584 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_roleName8600 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_roleName8619 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_roleName8629 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_constant8654 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_INTEGER_in_constant8666 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_FLOAT_in_constant8685 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_BOOLEAN_in_constant8706 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_DURATION_in_constant8725 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_UUID_in_constant8743 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_HEXNUMBER_in_constant8765 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_192_in_constant8783 = new BitSet(new long[]{0x0000000000000000L,0x0000040000100000L});
public static final BitSet FOLLOW_set_in_constant8792 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_206_in_mapLiteral8821 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x000000000000C409L});
public static final BitSet FOLLOW_term_in_mapLiteral8839 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_195_in_mapLiteral8841 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_mapLiteral8845 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_191_in_mapLiteral8851 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_mapLiteral8855 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_195_in_mapLiteral8857 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_mapLiteral8861 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_207_in_mapLiteral8877 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_setOrMapLiteral8901 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_setOrMapLiteral8905 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_setOrMapLiteral8921 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_setOrMapLiteral8925 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_195_in_setOrMapLiteral8927 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_setOrMapLiteral8931 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_setOrMapLiteral8966 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_setOrMapLiteral8970 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_202_in_collectionLiteral9004 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000005409L});
public static final BitSet FOLLOW_term_in_collectionLiteral9022 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_191_in_collectionLiteral9028 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_collectionLiteral9032 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_204_in_collectionLiteral9048 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_206_in_collectionLiteral9058 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_collectionLiteral9062 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000008008L});
public static final BitSet FOLLOW_setOrMapLiteral_in_collectionLiteral9066 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_207_in_collectionLiteral9071 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_206_in_collectionLiteral9089 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_207_in_collectionLiteral9091 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_206_in_usertypeLiteral9135 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_usertypeLiteral9139 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_195_in_usertypeLiteral9141 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_usertypeLiteral9145 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_191_in_usertypeLiteral9151 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_usertypeLiteral9155 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_195_in_usertypeLiteral9157 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_usertypeLiteral9161 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_207_in_usertypeLiteral9168 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_tupleLiteral9205 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_tupleLiteral9209 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_tupleLiteral9215 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_tupleLiteral9219 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_tupleLiteral9226 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_constant_in_value9249 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_collectionLiteral_in_value9271 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_usertypeLiteral_in_value9284 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_tupleLiteral_in_value9299 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_NULL_in_value9315 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_value9339 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_value9343 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_value9354 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_INTEGER_in_intValue9394 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_intValue9408 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_intValue9412 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_intValue9423 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_keyspaceName_in_functionName9469 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000004L});
public static final BitSet FOLLOW_194_in_functionName9471 = new BitSet(new long[]{0x077AB8A184000000L,0xA3E4283BA168B5E5L,0x00002000F619BFF9L});
public static final BitSet FOLLOW_allowedFunctionName_in_functionName9477 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_allowedFunctionName9504 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_allowedFunctionName9538 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_function_keyword_in_allowedFunctionName9566 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TOKEN_in_allowedFunctionName9576 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_COUNT_in_allowedFunctionName9608 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_functionName_in_function9655 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_function9657 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_function9659 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_functionName_in_function9689 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_187_in_function9691 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_functionArgs_in_function9695 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_function9697 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_term_in_functionArgs9730 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_functionArgs9736 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_functionArgs9740 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_value_in_term9768 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_function_in_term9805 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_term9837 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_term9841 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_term9843 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_term9847 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_columnOperation9870 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x4000000000000000L,0x0000000000000486L});
public static final BitSet FOLLOW_columnOperationDifferentiator_in_columnOperation9872 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_199_in_columnOperationDifferentiator9891 = new BitSet(new long[]{0x877BB8A18D120840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_normalColumnOperation_in_columnOperationDifferentiator9893 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_shorthandColumnOperation_in_columnOperationDifferentiator9902 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_202_in_columnOperationDifferentiator9911 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_columnOperationDifferentiator9915 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_204_in_columnOperationDifferentiator9917 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_collectionColumnOperation_in_columnOperationDifferentiator9919 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_194_in_columnOperationDifferentiator9928 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_columnOperationDifferentiator9932 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_udtColumnOperation_in_columnOperationDifferentiator9934 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_term_in_normalColumnOperation9955 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x2000000000000000L});
public static final BitSet FOLLOW_189_in_normalColumnOperation9958 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_normalColumnOperation9962 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_normalColumnOperation9983 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x2000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_set_in_normalColumnOperation9987 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_normalColumnOperation9997 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_normalColumnOperation10015 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_INTEGER_in_normalColumnOperation10019 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_shorthandColumnOperation10047 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_shorthandColumnOperation10057 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_199_in_collectionColumnOperation10083 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_collectionColumnOperation10087 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_199_in_udtColumnOperation10113 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_udtColumnOperation10117 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_columnCondition10150 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L,0x0400000000000000L,0x00000000000007E4L});
public static final BitSet FOLLOW_relationType_in_columnCondition10164 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_columnCondition10168 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_IN_in_columnCondition10182 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_singleColumnInValues_in_columnCondition10200 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_inMarker_in_columnCondition10220 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_202_in_columnCondition10248 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_columnCondition10252 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_204_in_columnCondition10254 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_relationType_in_columnCondition10272 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_columnCondition10276 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_IN_in_columnCondition10294 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_singleColumnInValues_in_columnCondition10316 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_inMarker_in_columnCondition10340 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_194_in_columnCondition10386 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_fident_in_columnCondition10390 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_relationType_in_columnCondition10408 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_columnCondition10412 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_IN_in_columnCondition10430 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_singleColumnInValues_in_columnCondition10452 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_inMarker_in_columnCondition10476 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_property_in_properties10538 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_K_AND_in_properties10542 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_property_in_properties10544 = new BitSet(new long[]{0x0000000800000002L});
public static final BitSet FOLLOW_noncol_ident_in_property10567 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_property10569 = new BitSet(new long[]{0x877BB8A189100840L,0xA3E42C3BB978B5E5L,0x00090008F61D3FF9L,0x0000000000000001L});
public static final BitSet FOLLOW_propertyValue_in_property10573 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_noncol_ident_in_property10585 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000080L});
public static final BitSet FOLLOW_199_in_property10587 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000004000L});
public static final BitSet FOLLOW_mapLiteral_in_property10591 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_constant_in_propertyValue10616 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_keyword_in_propertyValue10638 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_199_in_relationType10661 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_197_in_relationType10672 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_198_in_relationType10683 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_200_in_relationType10693 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_201_in_relationType10704 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_186_in_relationType10714 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10736 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_relationType_in_relation10740 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10744 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10756 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L});
public static final BitSet FOLLOW_K_LIKE_in_relation10758 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10762 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10774 = new BitSet(new long[]{0x0000000000000000L,0x0000000004000000L});
public static final BitSet FOLLOW_K_IS_in_relation10776 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L});
public static final BitSet FOLLOW_K_NOT_in_relation10778 = new BitSet(new long[]{0x0000000000000000L,0x0000800000000000L});
public static final BitSet FOLLOW_K_NULL_in_relation10780 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TOKEN_in_relation10790 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_tupleOfIdentifiers_in_relation10794 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_relationType_in_relation10798 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10802 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10822 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L});
public static final BitSet FOLLOW_K_IN_in_relation10824 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_inMarker_in_relation10828 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10848 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L});
public static final BitSet FOLLOW_K_IN_in_relation10850 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_singleColumnInValues_in_relation10854 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10874 = new BitSet(new long[]{0x0010000000000000L});
public static final BitSet FOLLOW_K_CONTAINS_in_relation10876 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_K_KEY_in_relation10881 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10897 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_cident_in_relation10909 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000400L});
public static final BitSet FOLLOW_202_in_relation10911 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10915 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_204_in_relation10917 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_relationType_in_relation10921 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_relation10925 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_tupleOfIdentifiers_in_relation10937 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L,0x0400000000000000L,0x00000000000003E0L});
public static final BitSet FOLLOW_K_IN_in_relation10947 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_187_in_relation10961 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_relation10963 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_inMarkerForTuple_in_relation10995 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_tupleOfTupleLiterals_in_relation11029 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_tupleOfMarkersForTuples_in_relation11063 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_relationType_in_relation11105 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_tupleLiteral_in_relation11109 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_relationType_in_relation11135 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_markerForTuple_in_relation11139 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_relation11169 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x08002008F61DBFF9L});
public static final BitSet FOLLOW_relation_in_relation11171 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1000000000000000L});
public static final BitSet FOLLOW_188_in_relation11174 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_inMarker11195 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_inMarker11205 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_inMarker11209 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_tupleOfIdentifiers11241 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_tupleOfIdentifiers11245 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_tupleOfIdentifiers11250 = new BitSet(new long[]{0x877BB8A184020000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_cident_in_tupleOfIdentifiers11254 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_tupleOfIdentifiers11260 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_singleColumnInValues11290 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x18093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_singleColumnInValues11298 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_singleColumnInValues11303 = new BitSet(new long[]{0x877BB8A18D100840L,0xA3E4AC3BB978B5E5L,0x08093008F61DBFF9L,0x0000000000004409L});
public static final BitSet FOLLOW_term_in_singleColumnInValues11307 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_singleColumnInValues11316 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_tupleOfTupleLiterals11346 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_tupleLiteral_in_tupleOfTupleLiterals11350 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_tupleOfTupleLiterals11355 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0800000000000000L});
public static final BitSet FOLLOW_tupleLiteral_in_tupleOfTupleLiterals11359 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_tupleOfTupleLiterals11365 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_markerForTuple11386 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_markerForTuple11396 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_markerForTuple11400 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_187_in_tupleOfMarkersForTuples11432 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_markerForTuple_in_tupleOfMarkersForTuples11436 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_191_in_tupleOfMarkersForTuples11441 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000100000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_markerForTuple_in_tupleOfMarkersForTuples11445 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x9000000000000000L});
public static final BitSet FOLLOW_188_in_tupleOfMarkersForTuples11451 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QMARK_in_inMarkerForTuple11472 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_195_in_inMarkerForTuple11482 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00002008F61D3FF9L});
public static final BitSet FOLLOW_noncol_ident_in_inMarkerForTuple11486 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_native_type_in_comparatorType11511 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_collection_type_in_comparatorType11527 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_tuple_type_in_comparatorType11539 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_userTypeName_in_comparatorType11555 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_FROZEN_in_comparatorType11567 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_197_in_comparatorType11569 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_comparatorType11573 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_200_in_comparatorType11575 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_comparatorType11593 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_ASCII_in_native_type11622 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_BIGINT_in_native_type11636 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_BLOB_in_native_type11649 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_BOOLEAN_in_native_type11664 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_COUNTER_in_native_type11676 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DECIMAL_in_native_type11688 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DOUBLE_in_native_type11700 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DURATION_in_native_type11713 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_FLOAT_in_native_type11726 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_INET_in_native_type11740 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_INT_in_native_type11755 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_SMALLINT_in_native_type11771 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TEXT_in_native_type11782 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TIMESTAMP_in_native_type11797 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TINYINT_in_native_type11807 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_UUID_in_native_type11819 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_VARCHAR_in_native_type11834 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_VARINT_in_native_type11846 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TIMEUUID_in_native_type11859 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_DATE_in_native_type11870 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TIME_in_native_type11885 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_MAP_in_collection_type11913 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_197_in_collection_type11916 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_collection_type11920 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L});
public static final BitSet FOLLOW_191_in_collection_type11922 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_collection_type11926 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_200_in_collection_type11928 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_LIST_in_collection_type11946 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_197_in_collection_type11948 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_collection_type11952 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_200_in_collection_type11954 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_SET_in_collection_type11972 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_197_in_collection_type11975 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_collection_type11979 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_200_in_collection_type11981 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_TUPLE_in_tuple_type12012 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_197_in_tuple_type12014 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_tuple_type12029 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_191_in_tuple_type12034 = new BitSet(new long[]{0x877BB8A184000000L,0xA3E4283BB968B5E5L,0x00012008F61D3FFDL});
public static final BitSet FOLLOW_comparatorType_in_tuple_type12038 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x8000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_200_in_tuple_type12050 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_username12069 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_username12077 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_username12085 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_mbean12104 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IDENT_in_non_type_ident12129 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_QUOTED_NAME_in_non_type_ident12160 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_basic_unreserved_keyword_in_non_type_ident12185 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_K_KEY_in_non_type_ident12197 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_unreserved_function_keyword_in_unreserved_keyword12240 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_unreserved_keyword12256 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_basic_unreserved_keyword_in_unreserved_function_keyword12307 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_native_type_in_unreserved_function_keyword12319 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_basic_unreserved_keyword12357 = new BitSet(new long[]{0x0000000000000002L});
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy