mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
all adapters loading indirectly
This commit is contained in:
@@ -54,12 +54,4 @@ public class PineconeDriverAdapter extends BaseDriverAdapter<PineconeOp, Pinecon
|
||||
return super.getConfigModel().add(PineconeSpace.getConfigModel());
|
||||
}
|
||||
|
||||
@Service(value = DriverAdapterLoader.class,selector = "pinecone")
|
||||
public static class Loader implements DriverAdapterLoader {
|
||||
@Override
|
||||
public PineconeDriverAdapter load(NBComponent parent, NBLabels childLabels) {
|
||||
return new PineconeDriverAdapter(parent,childLabels);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package io.nosqlbench.adapter.pinecone;
|
||||
|
||||
import io.nosqlbench.adapter.diag.DriverAdapterLoader;
|
||||
import io.nosqlbench.api.labels.NBLabels;
|
||||
import io.nosqlbench.components.NBComponent;
|
||||
import io.nosqlbench.nb.annotations.Service;
|
||||
|
||||
@Service(value = DriverAdapterLoader.class, selector = "pinecone")
|
||||
public class PineconeDriverAdapterLoader implements DriverAdapterLoader {
|
||||
@Override
|
||||
public PineconeDriverAdapter load(NBComponent parent, NBLabels childLabels) {
|
||||
return new PineconeDriverAdapter(parent, childLabels);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user