Feather (Arrow IPC) file format reading and writing.
Feather is the Arrow IPC file format on disk. Use readFeather/writeFeather or the FeatherReader type for direct access.
Types
FeatherReader = object
- Reader for Feather file format. Wraps GArrowFeatherFileReader.
FeatherWriteProperties = object
- Properties for writing Feather files (compression, etc.). Wraps GArrowFeatherWriteProperties.
Procs
proc `=copy`(dest: var FeatherReader; src: FeatherReader) {....raises: [], tags: [], forbids: [].}
proc `=copy`(dest: var FeatherWriteProperties; src: FeatherWriteProperties) {. ...raises: [], tags: [], forbids: [].}
proc `=destroy`(props: FeatherWriteProperties) {....raises: [], tags: [], forbids: [].}
proc `=destroy`(reader: FeatherReader) {....raises: [], tags: [], forbids: [].}
proc `=dup`(props: FeatherWriteProperties): FeatherWriteProperties {....raises: [], tags: [], forbids: [].}
proc `=dup`(reader: FeatherReader): FeatherReader {....raises: [], tags: [], forbids: [].}
proc `=wasMoved`(props: var FeatherWriteProperties) {....raises: [], tags: [], forbids: [].}
proc `=wasMoved`(reader: var FeatherReader) {....raises: [], tags: [], forbids: [].}
proc compression(props: FeatherWriteProperties): GArrowCompressionType {. ...raises: [], tags: [], forbids: [].}
- Get the current compression type
proc compression=(props: FeatherWriteProperties; compression: GArrowCompressionType) {....raises: [], tags: [], forbids: [].}
- Set the compression type for writing Feather files Only UNCOMPRESSED, LZ4, and ZSTD are supported by Feather format
proc newFeatherReader(fs: FileSystem; path: string): FeatherReader {. ...raises: [OperationError], tags: [], forbids: [].}
- Create a Feather file reader from a filesystem path
proc newFeatherReader(stream: SeekableInputStream): FeatherReader {. ...raises: [OperationError], tags: [], forbids: [].}
- Create a Feather file reader from a seekable input stream
proc newFeatherWriteProperties(): FeatherWriteProperties {....raises: [IOError], tags: [], forbids: [].}
- Create new write properties with default settings Default compression is LZ4 if available, otherwise uncompressed
proc read(reader: FeatherReader): ArrowTable {....raises: [OperationError], tags: [], forbids: [].}
- Read the entire table from the Feather file
proc readFeatherFile(uri: string): ArrowTable {....raises: [OperationError], tags: [], forbids: [].}
- Read an entire Feather file into a table
proc readFeatherFile(uri: string; columnIndices: openArray[int]): ArrowTable {. ...raises: [OperationError], tags: [], forbids: [].}
- Read specific columns by index from a Feather file
proc readFeatherFile(uri: string; columns: openArray[string]): ArrowTable {. ...raises: [OperationError], tags: [], forbids: [].}
- Read specific columns from a Feather file Raises KeyError if any column name does not exist
proc readIndices(reader: FeatherReader; indices: openArray[int]): ArrowTable {. ...raises: [OperationError], tags: [], forbids: [].}
- Read specific columns by their indices (0-based) This allows selective column reading for better performance
proc readNames(reader: FeatherReader; names: openArray[string]): ArrowTable {. ...raises: [OperationError], tags: [], forbids: [].}
- Read specific columns by their names This allows selective column reading for better performance
proc toPtr(props: FeatherWriteProperties): ptr GArrowFeatherWriteProperties {. inline, ...raises: [], tags: [], forbids: [].}
proc toPtr(reader: FeatherReader): ptr GArrowFeatherFileReader {.inline, ...raises: [], tags: [], forbids: [].}
proc version(reader: FeatherReader): int {....raises: [], tags: [], forbids: [].}
- Get the Feather format version
proc writeFeatherFile(uri: string; table: ArrowTable) {. ...raises: [OperationError, IOError], tags: [], forbids: [].}
- Write a table to a Feather file Uses default compression (LZ4 if available, otherwise uncompressed)
proc writeFeatherFile(uri: string; table: ArrowTable; props: FeatherWriteProperties) {....raises: [OperationError], tags: [], forbids: [].}
- Write a table to a Feather file with custom write properties