diff --git a/adapter-pinecone/pom.xml b/adapter-pinecone/pom.xml index e4bce6b0d..26e5b17b5 100644 --- a/adapter-pinecone/pom.xml +++ b/adapter-pinecone/pom.xml @@ -1,18 +1,18 @@ + ~ Copyright (c) 2022-2023 nosqlbench + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> 4.0.0 @@ -53,12 +53,6 @@ pinecone-client 0.2.3 - - io.nosqlbench - adapters-api - 5.17.3-SNAPSHOT - compile - diff --git a/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/opdispensers/PineconeOpDispenser.java b/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/opdispensers/PineconeOpDispenser.java index 0f0b52c5e..4b2facc7a 100644 --- a/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/opdispensers/PineconeOpDispenser.java +++ b/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/opdispensers/PineconeOpDispenser.java @@ -1,13 +1,29 @@ +/* + * Copyright (c) 2023 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.nosqlbench.adapter.pinecone.opdispensers; +import io.nosqlbench.adapter.pinecone.PineconeDriverAdapter; import io.nosqlbench.adapter.pinecone.PineconeSpace; import io.nosqlbench.adapter.pinecone.ops.PineconeOp; import io.nosqlbench.engine.api.activityimpl.BaseOpDispenser; -import io.nosqlbench.engine.api.activityimpl.uniform.DriverAdapter; import io.nosqlbench.engine.api.templating.ParsedOp; public class PineconeOpDispenser extends BaseOpDispenser { - protected PineconeOpDispenser(DriverAdapter adapter, ParsedOp op) { + protected PineconeOpDispenser(PineconeDriverAdapter adapter, ParsedOp op) { super(adapter, op); } diff --git a/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/ops/PineconeOpTypes.java b/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/ops/PineconeOpTypes.java new file mode 100644 index 000000000..d5cdd1a8a --- /dev/null +++ b/adapter-pinecone/src/main/java/io/nosqlbench/adapter/pinecone/ops/PineconeOpTypes.java @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2023 nosqlbench + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package io.nosqlbench.adapter.pinecone.ops; + +public enum PineconeOpTypes { + query, + update +} diff --git a/adapter-pinecone/src/main/resources/adapter-pinecone.md b/adapter-pinecone/src/main/resources/adapter-pinecone.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/adapter-pinecone/src/main/resources/docs/pinecone.md b/adapter-pinecone/src/main/resources/docs/pinecone.md new file mode 100644 index 000000000..aba2a940d --- /dev/null +++ b/adapter-pinecone/src/main/resources/docs/pinecone.md @@ -0,0 +1,26 @@ +# pinecone driver + +```yaml +ops: + +# A pinecone query op + query-example: + query: myindex + ... additional fields ... + +# A delete op + delete-example: + delete: indexfoo + ... additional fields ... + +# A describe index stats op + describe-index-stats-example: + describe-index-stats: indexbar + +# A pinecone fetch op + +# A pinecone update op + +# A pinecone upsert op + +``` diff --git a/pom.xml b/pom.xml index 732700505..6739919a7 100644 --- a/pom.xml +++ b/pom.xml @@ -111,6 +111,7 @@ adapter-s4j adapter-kafka adapter-jdbc + adapter-pinecone virtdata-api