Skip to content

Commit cc81f81

Browse files
author
Milder Hernandez Cagua
committed
Add suggestions
1 parent 8d66e48 commit cc81f81

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/connectors/data/azureaisearch/AzureAISearchVectorStoreRecordCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public Mono<Record> getAsync(
203203
// Use custom mapper if available
204204
if (mapper != null && mapper.getStorageModelToRecordMapper() != null) {
205205
return searchAsyncClient.getDocument(key, SearchDocument.class)
206-
.map(record -> mapper.mapStorageModeltoRecord(record, options));
206+
.map(record -> mapper.mapStorageModelToRecord(record, options));
207207
}
208208

209209
return searchAsyncClient
@@ -292,7 +292,7 @@ private Mono<List<VectorSearchResult<Record>>> searchAndMapAsync(SearchOptions s
292292
// Use custom mapper if available
293293
if (mapper != null && mapper.getStorageModelToRecordMapper() != null) {
294294
record = mapper
295-
.mapStorageModeltoRecord(response.getDocument(SearchDocument.class),
295+
.mapStorageModelToRecord(response.getDocument(SearchDocument.class),
296296
getRecordOptions);
297297
} else {
298298
record = response.getDocument(this.options.getRecordClass());

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/connectors/data/jdbc/JDBCVectorStoreQueryProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public <Record> List<Record> getRecords(String collectionName, List<String> keys
360360
ResultSet resultSet = statement.executeQuery();
361361

362362
while (resultSet.next()) {
363-
records.add(mapper.mapStorageModeltoRecord(resultSet, options));
363+
records.add(mapper.mapStorageModelToRecord(resultSet, options));
364364
}
365365

366366
return Collections.unmodifiableList(records);

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/connectors/data/postgres/PostgreSQLVectorStoreQueryProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public <Record> List<VectorSearchResult<Record>> search(String collectionName,
391391

392392
while (resultSet.next()) {
393393
records.add(new VectorSearchResult<>(
394-
mapper.mapStorageModeltoRecord(resultSet,
394+
mapper.mapStorageModelToRecord(resultSet,
395395
new GetRecordOptions(options.isIncludeVectors())),
396396
resultSet.getDouble("score")));
397397
}

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/connectors/data/redis/RedisHashSetVectorStoreRecordCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ public Mono<List<Record>> getBatchAsync(List<String> keys,
250250
if (options != null && options.isIncludeVectors()) {
251251
// Results directly in a Map<String, String>
252252
return this.vectorStoreRecordMapper
253-
.mapStorageModeltoRecord(
253+
.mapStorageModelToRecord(
254254
new AbstractMap.SimpleEntry<>(entry.getKey(),
255255
(Map<String, String>) entry.getValue().get()),
256256
options);
257257
}
258258

259259
// Results in a List<String> with the values of the fields
260260
return this.vectorStoreRecordMapper
261-
.mapStorageModeltoRecord(
261+
.mapStorageModelToRecord(
262262
new AbstractMap.SimpleEntry<>(entry.getKey(),
263263
addDataFieldNames((List<String>) entry.getValue().get())),
264264
options);

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/connectors/data/redis/RedisJsonVectorStoreRecordCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public Mono<Record> getAsync(String key, GetRecordOptions options) {
233233
}
234234

235235
return Mono.just(this.vectorStoreRecordMapper
236-
.mapStorageModeltoRecord(new SimpleEntry<>(key, jsonNode), options));
236+
.mapStorageModelToRecord(new SimpleEntry<>(key, jsonNode), options));
237237
} catch (Exception e) {
238238
return Mono.error(e);
239239
}
@@ -280,7 +280,7 @@ public Mono<List<Record>> getBatchAsync(List<String> keys,
280280
jsonNode = removeRedisPathPrefix((JSONObject) value);
281281
}
282282
return this.vectorStoreRecordMapper
283-
.mapStorageModeltoRecord(new SimpleEntry<>(entry.getKey(), jsonNode),
283+
.mapStorageModelToRecord(new SimpleEntry<>(entry.getKey(), jsonNode),
284284
options);
285285
})
286286
.collect(Collectors.toList()));

semantickernel-experimental/src/main/java/com/microsoft/semantickernel/data/vectorstorage/VectorStoreRecordMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public StorageModel mapRecordToStorageModel(Record record) {
6666
* @param storageModel the storage model to convert
6767
* @return the record
6868
*/
69-
public Record mapStorageModeltoRecord(StorageModel storageModel, GetRecordOptions options) {
69+
public Record mapStorageModelToRecord(StorageModel storageModel, GetRecordOptions options) {
7070
return getStorageModelToRecordMapper().apply(storageModel, options);
7171
}
7272
}

0 commit comments

Comments
 (0)