Class AzureAISearchAdapterUtils

java.lang.Object
io.nosqlbench.adapter.azureaisearch.AzureAISearchAdapterUtils

public class AzureAISearchAdapterUtils extends Object
  • Field Details

  • Constructor Details

    • AzureAISearchAdapterUtils

      public AzureAISearchAdapterUtils()
  • Method Details

    • splitNames

      public static List<String> splitNames(String input)
    • splitLongs

      public static List<Long> splitLongs(String input)
    • maskDigits

      protected static String maskDigits(String unmasked)
      Mask the numeric digits in the given string with '*'.
      Parameters:
      unmasked - The string to mask
      Returns:
      The masked string
    • searchDocumentsResponseIdToIntArray

      public static int[] searchDocumentsResponseIdToIntArray(String field, com.azure.search.documents.util.SearchPagedIterable response)
      Prepares an integer array of the indices of keys containing the result vectors.
      Parameters:
      field - field to search for the index values of the vectors.
      response - results from which we need to search for the indexes.
      Returns:
      an int[] of the indexes of the vectors.