mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 04:58:59 +00:00
(*) Upgrade slop library
This commit is contained in:
parent
93652e0937
commit
bca40de107
@ -10,6 +10,7 @@ import nu.marginalia.slop.desc.ColumnFunction;
|
||||
import nu.marginalia.slop.desc.StorageType;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.file.Path;
|
||||
@ -44,10 +45,10 @@ public class GammaCodedSequenceArrayColumn extends AbstractObjectColumn<List<Gam
|
||||
);
|
||||
}
|
||||
|
||||
public Reader openUnregistered(Path path, int page) throws IOException {
|
||||
public Reader openUnregistered(URI uri, int page) throws IOException {
|
||||
return new Reader(
|
||||
dataColumn.openUnregistered(path, page),
|
||||
groupsColumn.openUnregistered(path, page)
|
||||
dataColumn.openUnregistered(uri, page),
|
||||
groupsColumn.openUnregistered(uri, page)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,7 @@ import nu.marginalia.slop.storage.StorageReader;
|
||||
import nu.marginalia.slop.storage.StorageWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.file.Path;
|
||||
@ -43,10 +44,10 @@ public class GammaCodedSequenceColumn extends AbstractObjectColumn<GammaCodedSeq
|
||||
);
|
||||
}
|
||||
|
||||
public Reader openUnregistered(Path path, int page) throws IOException {
|
||||
public Reader openUnregistered(URI uri, int page) throws IOException {
|
||||
return new Reader(
|
||||
Storage.reader(path, this, page, false),
|
||||
indexColumn.openUnregistered(path, page)
|
||||
Storage.reader(uri, this, page, false),
|
||||
indexColumn.openUnregistered(uri, page)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ dependencyResolutionManagement {
|
||||
library('jetty-util','org.eclipse.jetty','jetty-util').version('9.4.54.v20240208')
|
||||
library('jetty-servlet','org.eclipse.jetty','jetty-servlet').version('9.4.54.v20240208')
|
||||
|
||||
library('slop', 'nu.marginalia', 'slop').version('0.0.3-SNAPSHOT')
|
||||
library('slop', 'nu.marginalia', 'slop').version('0.0.4-SNAPSHOT')
|
||||
|
||||
bundle('jetty', ['jetty-server', 'jetty-util', 'jetty-servlet'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user