mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fix up copyright to get away from RAT build errors
This commit is contained in:
committed by
Madhavan
parent
41ef86585d
commit
010bc9f928
@@ -1,3 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2020-2024 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.weaviate.opsdispensers;
|
package io.nosqlbench.adapter.weaviate.opsdispensers;
|
||||||
|
|
||||||
import java.util.function.LongFunction;
|
import java.util.function.LongFunction;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ params:
|
|||||||
|
|
||||||
bindings:
|
bindings:
|
||||||
id_val: Identity();
|
id_val: Identity();
|
||||||
|
id_val_uuid: ToHashedUUID() -> java.util.UUID
|
||||||
row_key: ToString()
|
row_key: ToString()
|
||||||
row_key_batch: Mul(TEMPLATE(batch_size)L); ListSizedStepped(TEMPLATE(batch_size),long->ToString());
|
row_key_batch: Mul(TEMPLATE(batch_size)L); ListSizedStepped(TEMPLATE(batch_size),long->ToString());
|
||||||
# filetype=hdf5 for TEMPLATE(filetype,hdf5)
|
# filetype=hdf5 for TEMPLATE(filetype,hdf5)
|
||||||
@@ -167,22 +168,14 @@ blocks:
|
|||||||
ops:
|
ops:
|
||||||
create_objects_op:
|
create_objects_op:
|
||||||
create_objects: "TEMPLATE(collection)"
|
create_objects: "TEMPLATE(collection)"
|
||||||
wait: TEMPLATE(upsert_point_wait,true)
|
objects:
|
||||||
# https://github.com/weaviate/weaviate/blob/v1.9.0/lib/api/src/grpc/proto/points.proto#L11-L15
|
- id: "{id_val_uuid}"
|
||||||
# 0 - Weak, 1 - Medium, 2 - Strong
|
#properties:
|
||||||
ordering: TEMPLATE(upsert_point_ordering,1)
|
# key: "{row_key}"
|
||||||
#shard_key: "{row_key}"
|
vectors:
|
||||||
points:
|
# Only named vectors are supported at this time
|
||||||
- id: "{id_val}"
|
|
||||||
payload:
|
|
||||||
key: "{row_key}"
|
|
||||||
vector:
|
|
||||||
# For dense vectors, use the below format
|
|
||||||
value: "{train_floatlist_TEMPLATE(filetype)}"
|
value: "{train_floatlist_TEMPLATE(filetype)}"
|
||||||
# For sparse vectors, use the below format
|
#tenant: ""
|
||||||
#value_sv:
|
|
||||||
# indices: your array of numbers
|
|
||||||
# values: your array of floats
|
|
||||||
|
|
||||||
search_points:
|
search_points:
|
||||||
ops:
|
ops:
|
||||||
|
|||||||
Reference in New Issue
Block a user