public final class FileIndexFormat extends Object
_____________________________________ _____________________ | magic |version|head length | |-------------------------------------| | column number | |-------------------------------------| | column 1 | index number | |-------------------------------------| | index name 1 |start pos |length | |-------------------------------------| | index name 2 |start pos |length | |-------------------------------------| | index name 3 |start pos |length | |-------------------------------------| HEAD | column 2 | index number | |-------------------------------------| | index name 1 |start pos |length | |-------------------------------------| | index name 2 |start pos |length | |-------------------------------------| | index name 3 |start pos |length | |-------------------------------------| | ... | |-------------------------------------| | ... | |-------------------------------------| | redundant length |redundant bytes | |-------------------------------------| --------------------- | BODY | | BODY | | BODY | BODY | BODY | |_____________________________________| _____________________ magic: 8 bytes long version: 4 bytes int head length: 4 bytes int column number: 4 bytes int column x: var bytes utf (length + bytes) index number: 4 bytes int (how many column items below) index name x: var bytes utf start pos: 4 bytes int length: 4 bytes int redundant length: 4 bytes int (for compatibility with later versions, in this version, content is zero) redundant bytes: var bytes (for compatibility with later version, in this version, is empty) BODY: column index bytes + column index bytes + column index bytes + .......
Modifier and Type | Class and Description |
---|---|
static class |
FileIndexFormat.Reader
Reader for file index file.
|
static class |
FileIndexFormat.Writer
Writer for file index file.
|
Constructor and Description |
---|
FileIndexFormat() |
Modifier and Type | Method and Description |
---|---|
static FileIndexFormat.Reader |
createReader(SeekableInputStream inputStream,
RowType fileRowType) |
static FileIndexFormat.Writer |
createWriter(OutputStream outputStream) |
public static FileIndexFormat.Writer createWriter(OutputStream outputStream)
public static FileIndexFormat.Reader createReader(SeekableInputStream inputStream, RowType fileRowType)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.