Package com.redis.vl.utils.vectorize
Class BaseVectorizer.BatchCacheResult
java.lang.Object
com.redis.vl.utils.vectorize.BaseVectorizer.BatchCacheResult
- Enclosing class:
BaseVectorizer
Helper class to hold batch cache results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe texts that were not found in cache.The indices of cache misses in the results list.final List<float[]> The results list with nulls for cache misses. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
results
The results list with nulls for cache misses. -
cacheMisses
The texts that were not found in cache. -
cacheMissIndices
The indices of cache misses in the results list.
-
-
Constructor Details
-
BatchCacheResult
public BatchCacheResult(List<float[]> results, List<String> cacheMisses, List<Integer> cacheMissIndices) Creates a new batch cache result.- Parameters:
results- The results list with nulls for cache missescacheMisses- The texts that were not found in cachecacheMissIndices- The indices of cache misses in the results list
-