Skip to content

Commit 5cc7f38

Browse files
author
xiaozhiqing.xzq
committed
Support Search Agg & GroupBy and SQL Query
1 parent 8f91881 commit 5cc7f38

File tree

164 files changed

+73689
-33311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+73689
-33311
lines changed

.gitignore

Lines changed: 216 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,218 @@
1+
# User-specific files
2+
*.rsuser
3+
*.suo
4+
*.user
5+
*.userosscache
6+
*.sln.docstates
7+
18
packages
2-
*\bin
3-
*\obj
4-
.vs
59
.DS_Store
10+
log.txt
11+
internalTest
12+
*.csproj.user
13+
14+
*.userprefs
15+
16+
mono_crash.*
17+
18+
# Build results
19+
[Dd]ebug/
20+
[Dd]ebugPublic/
21+
[Rr]elease/
22+
[Rr]eleases/
23+
x64/
24+
x86/
25+
[Ww][Ii][Nn]32/
26+
[Aa][Rr][Mm]/
27+
[Aa][Rr][Mm]64/
28+
bld/
29+
[Bb]in/
30+
[Oo]bj/
31+
[Ll]og/
32+
[Ll]ogs/
33+
34+
.vs/
35+
Generated\ Files/
36+
37+
# MSTest test Results
38+
[Tt]est[Rr]esult*/
39+
[Bb]uild[Ll]og.*
40+
41+
# NUnit
42+
*.VisualState.xml
43+
TestResult.xml
44+
nunit-*.xml
45+
46+
[Dd]ebugPS/
47+
[Rr]eleasePS/
48+
dlldata.c
49+
50+
BenchmarkDotNet.Artifacts/
51+
52+
# .NET Core
53+
project.lock.json
54+
project.fragment.lock.json
55+
artifacts/
56+
57+
# StyleCop
58+
StyleCopReport.xml
59+
60+
*_i.c
61+
*_p.c
62+
*_h.h
63+
*.ilk
64+
*.meta
65+
*.obj
66+
*.iobj
67+
*.pch
68+
*.pdb
69+
*.ipdb
70+
*.pgc
71+
*.pgd
72+
*.rsp
73+
*.sbr
74+
*.tlb
75+
*.tli
76+
*.tlh
77+
*.tmp
78+
*.tmp_proj
79+
*_wpftmp.csproj
80+
*.log
81+
*.tlog
82+
*.vspscc
83+
*.vssscc
84+
.builds
85+
*.pidb
86+
*.svclog
87+
*.scc
88+
89+
# Chutzpah Test files
90+
_Chutzpah*
91+
92+
# Visual Studio profiler
93+
*.psess
94+
*.vsp
95+
*.vspx
96+
*.sap
97+
98+
*.e2e
99+
100+
$tf/
101+
102+
# Guidance Automation Toolkit
103+
*.gpState
104+
105+
_ReSharper*/
106+
*.[Rr]e[Ss]harper
107+
*.DotSettings.user
108+
109+
# TeamCity is a build add-in
110+
_TeamCity*
111+
112+
*.dotCover
113+
114+
.axoCover/*
115+
!.axoCover/settings.json
116+
117+
coverage*.json
118+
coverage*.xml
119+
coverage*.info
120+
121+
*.coverage
122+
*.coveragexml
123+
124+
_NCrunch_*
125+
.*crunch*.local.xml
126+
nCrunchTemp_*
127+
128+
# MightyMoose
129+
*.mm.*
130+
AutoTest.Net/
131+
132+
# Web workbench (sass)
133+
.sass-cache/
134+
135+
# Installshield output folder
136+
[Ee]xpress/
137+
138+
DocProject/buildhelp/
139+
DocProject/Help/*.HxT
140+
DocProject/Help/*.HxC
141+
DocProject/Help/*.hhc
142+
DocProject/Help/*.hhk
143+
DocProject/Help/*.hhp
144+
DocProject/Help/Html2
145+
DocProject/Help/html
146+
147+
# Click-Once directory
148+
publish/
149+
150+
*.[Pp]ublish.xml
151+
*.azurePubxml
152+
*.pubxml
153+
*.publishproj
154+
155+
PublishScripts/
156+
157+
# NuGet Packages
158+
*.nupkg
159+
# NuGet Symbol Packages
160+
*.snupkg
161+
# The packages folder can be ignored because of Package Restore
162+
**/[Pp]ackages/*
163+
# except build/, which is used as an MSBuild target.
164+
!**/[Pp]ackages/build/
165+
# Uncomment if necessary however generally it will be regenerated when needed
166+
#!**/[Pp]ackages/repositories.config
167+
# NuGet v3's project.json files produces more ignorable files
168+
*.nuget.props
169+
*.nuget.targets
170+
171+
AppPackages/
172+
BundleArtifacts/
173+
Package.StoreAssociation.xml
174+
_pkginfo.txt
175+
*.appx
176+
*.appxbundle
177+
*.appxupload
178+
179+
# Visual Studio cache files
180+
# files ending in .cache can be ignored
181+
*.[Cc]ache
182+
# but keep track of directories ending in .cache
183+
!?*.[Cc]ache/
184+
185+
# Others
186+
ClientBin/
187+
~$*
188+
*~
189+
*.dbmdl
190+
*.dbproj.schemaview
191+
*.jfm
192+
*.pfx
193+
*.publishsettings
194+
orleans.codegen.cs
195+
196+
# Python Tools for Visual Studio (PTVS)
197+
__pycache__/
198+
*.pyc
199+
200+
# VS Code files for those working on multiple tools
201+
.vscode/*
202+
!.vscode/settings.json
203+
!.vscode/tasks.json
204+
!.vscode/launch.json
205+
!.vscode/extensions.json
206+
*.code-workspace
207+
208+
# Local History for Visual Studio Code
209+
.history/
210+
211+
*.cab
212+
*.msi
213+
*.msix
214+
*.msm
215+
*.msp
216+
217+
*.sln.iml
218+

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@
2727
- 支持多版本
2828

2929
## 版本号 4.1.0 日期:2018/12/17
30-
### 变更内容
30+
### 变更内容
3131
- 支持多元索引(SearchIndex)
3232
- 支持全局二级索引(GlobalIndex)
33-
- 支持原子增
33+
- 支持原子增
34+
35+
## 版本号 5.0.0 日期:2020/08/15
36+
### 变更内容
37+
- 多元索引支持统计聚合功能(Aggregation & GroupBy)
38+
- 多元索引支持创建虚拟列、日期列
39+
- 多元索引支持索引TTL
40+
- 支持SQL查询

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- 阿里云表格存储是构建在阿里云飞天分布式系统之上的NoSQL数据存储服务,提供海量结构化数据的存储和实时访问。
1010

1111
## 版本
12-
- 当前版本:4.1.1
12+
- 当前版本:5.0.0
1313

1414
## 运行环境
1515
### Windows

aliyun-tablestore-csharp-sdk.sln

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28010.2050
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.32630.194
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "aliyun-tablestore-sdk", "sdk\aliyun-tablestore-sdk.csproj", "{AB5EFCA2-53A9-42B5-861E-3FD6F865036B}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "aliyun-tablestore-sdk-test", "test\aliyun-tablestore-sdk-test.csproj", "{F30E0874-399A-4FBD-B72B-74EE36B31AF6}"
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "aliyun-tablestore-sdk-sample", "sample\aliyun-tablestore-sdk-sample.csproj", "{D151C869-BC8F-4465-9460-5103A25D21E9}"
1111
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "internalTest", "internalTest\internalTest.csproj", "{BBC62040-3F72-419D-BF9E-606DE4B8BF1E}"
13+
EndProject
1214
Global
1315
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1416
Debug|Any CPU = Debug|Any CPU
@@ -27,6 +29,10 @@ Global
2729
{D151C869-BC8F-4465-9460-5103A25D21E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
2830
{D151C869-BC8F-4465-9460-5103A25D21E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
2931
{D151C869-BC8F-4465-9460-5103A25D21E9}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{BBC62040-3F72-419D-BF9E-606DE4B8BF1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{BBC62040-3F72-419D-BF9E-606DE4B8BF1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{BBC62040-3F72-419D-BF9E-606DE4B8BF1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{BBC62040-3F72-419D-BF9E-606DE4B8BF1E}.Release|Any CPU.Build.0 = Release|Any CPU
3036
EndGlobalSection
3137
GlobalSection(SolutionProperties) = preSolution
3238
HideSolutionNode = FALSE

sample/Samples/AtomicIncrementSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static void Increment(int incrementValue)
107107
};
108108
RowUpdateChange rowUpdateChange = new RowUpdateChange(TableName, primaryKey);
109109
rowUpdateChange.ReturnType = ReturnType.RT_AFTER_MODIFY;
110-
rowUpdateChange.ReturnColumnNames = new List<string>() { IncrementCol};
110+
rowUpdateChange.ReturnColumnNames = new List<string>() { IncrementCol };
111111
//设置一个原子自增列,这一列从0开始自增,每次增增加1。
112112
rowUpdateChange.Increment(new Column(IncrementCol, new ColumnValue(incrementValue)));
113113

sample/Samples/AutoIncrementSample.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void Main(string[] args)
2626

2727
//写入10行,自增列Pk2将
2828
for (int i = 0; i < 10; i++)
29-
{
29+
{
3030
PutRow(i.ToString());
3131
}
3232

@@ -39,15 +39,15 @@ static void Main(string[] args)
3939
/// </summary>
4040
private static void CreateTableWithAutoIncrementPk()
4141
{
42-
42+
4343
OTSClient otsClient = Config.GetClient();
4444

4545
IList<string> tables = otsClient.ListTable(new ListTableRequest()).TableNames;
4646
if (tables.Contains(TableName))
4747
{
4848
return;
4949
}
50-
50+
5151
PrimaryKeySchema primaryKeySchema = new PrimaryKeySchema
5252
{
5353
{ Pk1, ColumnValueType.String },
@@ -82,9 +82,9 @@ public static void PutRow(string pk1Value)
8282
PutRowRequest request = new PutRowRequest(TableName, new Condition(RowExistenceExpectation.IGNORE), primaryKey, attribute);
8383
request.RowPutChange.ReturnType = ReturnType.RT_PK;
8484

85-
var response = otsClient.PutRow(request);
86-
Console.WriteLine("Put row succeed,autoIncrement Pk value:"+ response.Row.GetPrimaryKey()[Pk2].IntegerValue);
85+
var response = otsClient.PutRow(request);
86+
Console.WriteLine("Put row succeed,autoIncrement Pk value:" + response.Row.GetPrimaryKey()[Pk2].IntegerValue);
8787
}
88-
88+
8989
}
9090
}

0 commit comments

Comments
 (0)