mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00

Refactoring keyword extraction to extract spans information. Modifying the intermediate storage of converted data to use the new slop library, which is allows for easier storage of ad-hoc binary data like spans and positions. This is a bit of a katamari damacy commit that ended up dragging along a bunch of other fairly tangentially related changes that are hard to break out into separate commits after the fact. Will push as-is to get back to being able to do more isolated work.
23 lines
378 B
Java
23 lines
378 B
Java
package nu.marginalia.sequence;
|
|
|
|
import it.unimi.dsi.fastutil.ints.IntIterator;
|
|
import it.unimi.dsi.fastutil.ints.IntList;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
public interface CodedSequence {
|
|
byte[] bytes();
|
|
|
|
IntIterator iterator();
|
|
|
|
IntIterator offsetIterator(int offset);
|
|
|
|
IntList values();
|
|
|
|
ByteBuffer buffer();
|
|
|
|
int bufferSize();
|
|
|
|
int valueCount();
|
|
}
|