File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ import (
1212 "github.com/brimdata/zed/cmd/zed/dev"
1313 _ "github.com/brimdata/zed/cmd/zed/dev/compile"
1414 _ "github.com/brimdata/zed/cmd/zed/dev/dig/frames"
15- _ "github.com/brimdata/zed/cmd/zed/dev/dig/section"
1615 _ "github.com/brimdata/zed/cmd/zed/dev/dig/slice"
17- _ "github.com/brimdata/zed/cmd/zed/dev/dig/trailer"
1816 _ "github.com/brimdata/zed/cmd/zed/dev/vector/agg"
1917 _ "github.com/brimdata/zed/cmd/zed/dev/vector/copy"
2018 _ "github.com/brimdata/zed/cmd/zed/dev/vector/project"
Original file line number Diff line number Diff line change @@ -397,73 +397,3 @@ gracie
3973970
398398===
399399```
400- To see the detailed VNG structure described as ZSON, you can use the ` vng `
401- command like this:
402- ```
403- zed dev dig section -Z 1 hello.vng
404- ```
405- which provides the Zed output (comments added with explanations):
406- ```
407- // First, all of the types of the encoded value sequence are declared
408- // with null values (just one here).
409-
410- null ({a:string,b:string})
411-
412- // Then comes the root reassembly map.
413-
414- [
415- {
416- offset: 29,
417- length: 2 (int32)
418- }
419- ]
420-
421- // Finally comes the column assembly records.
422- // (Again, only one schema in this example, so only one such record.)
423-
424- {
425- a: {
426- column: [
427- {
428- offset: 0,
429- length: 16 (int32)
430- }
431- ],
432- presence: [] ([{offset:int64,length:int32}])
433- },
434- b: {
435- column: [
436- {
437- offset: 16,
438- length: 13 (int32)
439- }
440- ],
441- presence: [] ([{offset:int64,length:int32}])
442- }
443- }
444-
445- ```
446- The VNG trailer can be viewed with this command:
447- ```
448- zed dev dig trailer -Z hello.vng
449- ```
450- giving
451- ```
452- {
453- magic: "ZNG Trailer",
454- type: "vng",
455- version: 2,
456- sections: [
457- 31,
458- 95
459- ],
460- meta: {
461- skew_thresh: 26214400,
462- segment_thresh: 5242880
463- } (=vng.FileMeta)
464- } (=zngio.Trailer)
465- ```
466-
467- > Note finally, if there were 10MB of ZNG row data here, the reassembly section
468- > would be basically the same size, with perhaps a few segmaps. This emphasizes
469- > just how small this data structure is compared to the data section.
You can’t perform that action at this time.
0 commit comments