当前位置: 首页 > 工具软件 > Lucene4c > 使用案例 >

lucene段文件解析840&620

窦啸
2023-12-01

840:

3fd7 6c17 0873 6567 6d65 6e74 7300 0000
09a4 73e0 c8c3 1863 3190 6133 a91c 900f
2301 3208 0400 0800 0000 0000 0000 0701
0000 0001 0804 0002 5f30 a473 e0c8 c318
6331 9061 33a9 1c90 0f22 084c 7563 656e
6538 34ff ffff ffff ffff ff00 0000 00ff
ffff ffff ffff ffff ffff ffff ffff ff00
0000 0000 0000 0000 020e 636f 6d6d 6974
5469 6d65 4d53 6563 0d31 3539 3739 3133
3933 3030 3732 1063 6f6d 6d69 7443 6f6d
6d61 6e64 5665 7213 3136 3735 3533 3431
3937 3133 3831 3238 3839 36c0 2893 e800
0000 0000 0000 00fc 0e27 22

魔法值 4Byte:
3fd7 6c17
codec字符串长度1byte:
08
codec字符串8byte:segments
73 6567 6d65 6e74 73
actural version 4Byte : 
00 0000 09
Commit id 16Byte : 
a4 73e0 c8c3 1863 3190 6133 a91c 900f 23
IndexHeaderSuffix长度1Byte : 
01
IndexHeaderSuffix值:1byte :
32
major,minor,bugfix 3byte:
08 04 00
indexCreatedVersion 1byte:
08
segmentinfo版本 8byte:
00 0000 0000 0000 07
infos.counter表示下一个段文件的编号(vlong类型,低位在前)1byte: 620此处读了一个long,不是vlong
01
numSegments当前段文件数4byte:
0000 0001
minSegmentLuceneVersion 3byte:
0804 00
segName的长度vInt类型,此处为1byte:
02
segName 2byte:
5f30(_0)
segmentID 16byte:
a473 e0c8 c318 6331 9061 33a9 1c90 0f22
codec长度 vInt 此处为8byte:
08
codec内容 8byte:
4c 7563 656e 6538 34(Lucene84)

 

620:

3fd7 6c17 0873 6567 6d65 6e74 7300 0000
0614 cf25 d728 b4bf 4a46 404e dbfc 6210
0501 3706 0200 0000 0000 0000 00dc 0000
004f 0000 000e 0602 0003 5f31 6b01 14cf
25d7 28b4 bf4a 4640 4edb fc62 0fed 084c
7563 656e 6536 3200 0000 0000 0000 0100
02b9 99


魔法值:3fd7 6c17
segments字段长度:08
segments:73 6567 6d65 6e74 73
version:00 0000 06
commit ID:14 cf25 d728 b4bf 4a46 404e dbfc 6210 05
generation字段长度:01
generation字段值:37
lucene版本:06 0200
段文件版本:0000 0000 0000 00dc表示修改了220次
下一个段文件编号:0000 004f 
段文件个数:0000 000e
minSegmentLuceneVersion:0602 00
segName的长度:03
segName:5f31 6b(_1k)
hasID:01(1表示有segmentID)
segmentID:14cf 25d7 28b4 bf4a 4640 4edb fc62 0fed
codec长度:08
codec:4c 7563 656e 6536 32(Lucene62)


 

 类似资料: