getChunksMeta
Syntax
getChunksMeta([chunkPath], [top = 1024])
Arguments
chunkPath is the DFS path to one or multiple database chunks. It supports wildcards %, * and ?.
top is a positive number indicating the maximum number of chunks in the output. The default value is 1024. If it is set to -1, the number of returned chunks is not limited.
Details
Return metadata of specified database chunks on the local datanode. If chunkPath is not specified, return metadata of all database chunks on the local datanode.
Examples
$ if(existsDatabase("dfs://testDB")){
$ dropDatabase("dfs://testDB")
$ }
$ db=database("dfs://testDB", VALUE, 1..10)
$ n=1000000
$ t=table(rand(1..10, n) as id, rand(100.0, n) as x)
$ db.createPartitionedTable(t, `p1, `id).append!(t)
$ n=2000000
$ t=table(rand(1..10, n) as id, rand(100.0, n) as x, rand(100, n) as y)
$ db.createPartitionedTable(t, `pt2, `id).append!(t)
$ getChunksMeta("/testDB%");
site |
chunkId |
path |
dfsPath |
type |
flag |
size |
version |
state |
versionList |
---|---|---|---|---|---|---|---|---|---|
local8848 |
e50ab482-f6d6-109c-4748-648c8af93964 |
C:Users... |
/testDB/pt2.tbl |
0 |
0 |
49 |
1 |
0 |
9:49; |
local8848 |
dbfd1767-f9ca-689e-4d5e-643b8506e82d |
C:Users... |
/testDB/10 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
d221b457-fa7b-5990-4caa-13c99f56f716 |
C:Users... |
/testDB/9 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
92904d3b-0147-9bb8-4a28-f99525b250e7 |
C:Users... |
/testDB/8 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
7478c15a-0629-c8ab-47ee-a1d12c3c1cd6 |
C:Users... |
/testDB/1 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
8bc48c11-86ca-97ac-4ee4-8f829de92cc8 |
C:Users... |
/testDB/5 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
6b3a0a09-bc64-3bab-4535-344b7316d244 |
C:Users... |
/testDB/2 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
a7452c44-5d2b-6f82-4150-7bc48e941d64 |
C:Users... |
/testDB/4 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
a1a375cc-b6c0-29b2-485a-330af7447564 |
C:Users... |
/testDB/6 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
b317dfa8-704d-e7af-4473-1abdf0475eed |
C:Users... |
/testDB/domain |
0 |
0 |
79 |
1 |
0 |
6:79; |
local8848 |
449154b1-a72b-4e81-4394-fdb025839ee5 |
C:Users... |
/testDB/pt1.tbl |
0 |
0 |
41 |
1 |
0 |
7:41; |
local8848 |
b04b4c04-6d43-0d8d-4000-6ae88e349eda |
C:Users... |
/testDB/3 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |
local8848 |
b20df3a7-678b-1cbe-400d-d8e566706682 |
C:Users... |
/testDB/7 |
1 |
0 |
0 |
2 |
0 |
cid : 10,pt1=>… |