Skip to content

Commit 4dc6236

Browse files
authored
Remove zngio.Trailer and dependent "zed dev" subcommands (#5034)
As of #4984, VNG no longer includes a zngio.Trailer. Remove it and the "zed dev dig section" and "zed dev dig trailer" commands, which depend on it.
1 parent 3dcd9ea commit 4dc6236

5 files changed

Lines changed: 0 additions & 432 deletions

File tree

cmd/zed/dev/dig/section/command.go

Lines changed: 0 additions & 104 deletions
This file was deleted.

cmd/zed/dev/dig/trailer/command.go

Lines changed: 0 additions & 86 deletions
This file was deleted.

cmd/zed/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

docs/formats/vng.md

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -397,73 +397,3 @@ gracie
397397
0
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.

0 commit comments

Comments
 (0)