Crate stringtape

Source
Expand description

§StringTape

Memory-efficient string storage compatible with Apache Arrow.

use stringtape::{StringTape32, StringTapeError};

let mut tape = StringTape32::new();
tape.push("hello")?;
tape.push("world")?;

assert_eq!(tape.len(), 2);
assert_eq!(&tape[0], "hello");

// Iterate over strings
for s in &tape {
    println!("{}", s);
}

Structs§

DefaultAllocator
Default allocator implementation using the global allocator.
GlobalAllocWrapper
Wrapper around any type that implements GlobalAlloc.
StringTape
A memory-efficient string storage structure compatible with Apache Arrow.
StringTapeIter

Enums§

StringTapeError
Errors that can occur when working with StringTape.

Traits§

Allocator
Trait for custom allocators used in StringTape.
OffsetType
Trait for offset types used in StringTape.

Type Aliases§

StringTape32
StringTape64