Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Questdb
提交
fb073449
Q
Questdb
项目概览
jobily
/
Questdb
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
Questdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
fb073449
编写于
4月 26, 2020
作者:
A
Alex Prut
提交者:
GitHub
4月 26, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: refactor, last value changed at i++ is never used (#232)
上级
903e806b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
38 addition
and
38 deletion
+38
-38
core/src/main/java/io/questdb/griffin/SqlKeywords.java
core/src/main/java/io/questdb/griffin/SqlKeywords.java
+38
-38
未找到文件。
core/src/main/java/io/questdb/griffin/SqlKeywords.java
浏览文件 @
fb073449
...
...
@@ -33,7 +33,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
's'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
's'
;
}
public
static
boolean
isInKeyword
(
CharSequence
tok
)
{
...
...
@@ -43,7 +43,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'n'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'n'
;
}
public
static
boolean
isOnKeyword
(
CharSequence
tok
)
{
...
...
@@ -53,7 +53,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'n'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'n'
;
}
public
static
boolean
isAllKeyword
(
CharSequence
tok
)
{
...
...
@@ -64,7 +64,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'l'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'l'
;
}
public
static
boolean
isAndKeyword
(
CharSequence
tok
)
{
...
...
@@ -86,7 +86,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'c'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'c'
;
}
public
static
boolean
isNotKeyword
(
CharSequence
tok
)
{
...
...
@@ -97,7 +97,7 @@ public class SqlKeywords {
int
i
=
0
;
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isCaseKeyword
(
CharSequence
tok
)
{
...
...
@@ -109,7 +109,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isCastKeyword
(
CharSequence
tok
)
{
...
...
@@ -121,7 +121,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isCopyKeyword
(
CharSequence
tok
)
{
...
...
@@ -133,7 +133,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'p'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'y'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'y'
;
}
public
static
boolean
isDescKeyword
(
CharSequence
tok
)
{
...
...
@@ -145,7 +145,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'd'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'c'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'c'
;
}
public
static
boolean
isFillKeyword
(
CharSequence
tok
)
{
...
...
@@ -157,7 +157,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'f'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'l'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'l'
;
}
public
static
boolean
isFromKeyword
(
CharSequence
tok
)
{
...
...
@@ -169,7 +169,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'f'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'r'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'm'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'm'
;
}
public
static
boolean
isJoinKeyword
(
CharSequence
tok
)
{
...
...
@@ -181,7 +181,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'j'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'n'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'n'
;
}
public
static
boolean
isNullKeyword
(
CharSequence
tok
)
{
...
...
@@ -193,7 +193,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'u'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'l'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'l'
;
}
public
static
boolean
isOnlyKeyword
(
CharSequence
tok
)
{
...
...
@@ -205,7 +205,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'y'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'y'
;
}
public
static
boolean
isOverKeyword
(
CharSequence
tok
)
{
...
...
@@ -217,7 +217,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'v'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'r'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'r'
;
}
public
static
boolean
isWithKeyword
(
CharSequence
tok
)
{
...
...
@@ -229,7 +229,7 @@ public class SqlKeywords {
return
(
tok
.
charAt
(
i
++)
|
32
)
==
'w'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'h'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'h'
;
}
public
static
boolean
isCacheKeyword
(
CharSequence
tok
)
{
...
...
@@ -242,7 +242,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'h'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isCountKeyword
(
CharSequence
tok
)
{
...
...
@@ -255,7 +255,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'u'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isIndexKeyword
(
CharSequence
tok
)
{
...
...
@@ -268,7 +268,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'd'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'x'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'x'
;
}
public
static
boolean
isLimitKeyword
(
CharSequence
tok
)
{
...
...
@@ -281,7 +281,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'm'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isOrderKeyword
(
CharSequence
tok
)
{
...
...
@@ -294,7 +294,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'r'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'd'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'r'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'r'
;
}
public
static
boolean
isTableKeyword
(
CharSequence
tok
)
{
...
...
@@ -307,7 +307,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'b'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isUnionKeyword
(
CharSequence
tok
)
{
...
...
@@ -320,7 +320,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'n'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'n'
;
}
public
static
boolean
isWhereKeyword
(
CharSequence
tok
)
{
...
...
@@ -333,7 +333,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'h'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'r'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isCreateKeyword
(
CharSequence
tok
)
{
...
...
@@ -347,7 +347,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isInsertKeyword
(
CharSequence
tok
)
{
...
...
@@ -361,7 +361,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'r'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isLatestKeyword
(
CharSequence
tok
)
{
...
...
@@ -375,7 +375,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isRenameKeyword
(
CharSequence
tok
)
{
...
...
@@ -389,7 +389,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'm'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isSampleKeyword
(
CharSequence
tok
)
{
...
...
@@ -403,7 +403,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'm'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'p'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isSelectKeyword
(
CharSequence
tok
)
{
...
...
@@ -417,7 +417,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isValuesKeyword
(
CharSequence
tok
)
{
...
...
@@ -431,7 +431,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'l'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'u'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'e'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
's'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
's'
;
}
public
static
boolean
isNoCacheKeyword
(
CharSequence
tok
)
{
...
...
@@ -446,7 +446,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'h'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isCapacityKeyword
(
CharSequence
tok
)
{
...
...
@@ -462,7 +462,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'y'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'y'
;
}
public
static
boolean
isDatabaseKeyword
(
CharSequence
tok
)
{
...
...
@@ -478,7 +478,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'b'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
's'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'e'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'e'
;
}
public
static
boolean
isDistinctKeyword
(
CharSequence
tok
)
{
...
...
@@ -494,7 +494,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'n'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'c'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
't'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
't'
;
}
public
static
boolean
isPartitionKeyword
(
CharSequence
tok
)
{
...
...
@@ -511,7 +511,7 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'i'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'o'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'n'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'n'
;
}
public
static
boolean
isTimestampKeyword
(
CharSequence
tok
)
{
...
...
@@ -528,6 +528,6 @@ public class SqlKeywords {
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
't'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'a'
&&
(
tok
.
charAt
(
i
++)
|
32
)
==
'm'
&&
(
tok
.
charAt
(
i
++
)
|
32
)
==
'p'
;
&&
(
tok
.
charAt
(
i
)
|
32
)
==
'p'
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录