Java

StringZilla for Java

com.github.ashvardanian:stringzilla 6.0.0-rc.1 · 91a27bdd

Topics

InstallationThe bindings require JDK 22+ and native access enabled at launch.
Types65
Searching and Counting
Comparison and Equality
Splitting and PartitioningEvery factory takes an on-heap byte[] or any MemorySegment (e.g.
Unicode SegmentationThe segmentation primitive is allocation-free: it fills the caller's array with segment lengths and returns the count.
Case Folding and NormalizationCase folding fills a gap: the JDK ships no Unicode case folding.
Hashing and Checksums
Sorting and SetsA failed native call throws StringZilla.StatusException, whose status() is the C szstatust code and statusName() its enumerator name.
Memory OperationsEvery operation accepts an on-heap byte[] or any MemorySegment.
Runtime DispatchEvery call dispatches to the fastest kernel among the CPU's enabled capabilities, a bitmask with one bit per SIMD capability.
Platform NotesLucene terms are UTF-8 already (BytesRef), so StringZilla reads the backing bytes directly.