Footer revision 2: bloom skip
Footer revision 2 marks a file whose bloom filter leaves out every key whose first byte is one of a list of tags. Read-only: SEAM 1 readers accept it, SEAM 1 writers do not produce it.
What identifies it
Section titled “What identifies it”| Field | Value in revision 2 |
|---|---|
magic |
"STC1" |
version |
2 |
flags |
SKIP (0x02) set; RANGES and COUNTS clear. STATS (0x01) may be set. |
When a writer chooses it
Section titled “When a writer chooses it”When skip tags are present and nothing of higher priority applies: no stats frame, no ranged bloom, no LZ4 frame. The SQL layer registers skip tag 0x02, because non-unique index entries are only range-scanned. See Choosing a footer revision.
What the flags promise
Section titled “What the flags promise”BLOOM_SKIP set means the bloom frame ends in the skip tail. Keys whose first byte is a listed tag were not added, so may_contain is true for them.