Class MapConverter

java.lang.Object
com.yahoo.search.dispatch.rpc.MapConverter

public class MapConverter extends Object
Author:
ollivir
  • Constructor Details

    • MapConverter

      public MapConverter()
  • Method Details

    • convertMapTensors

      public static void convertMapTensors(Map<String,Object> map, Consumer<ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol.TensorProperty.Builder> inserter)
    • convertMapPrimitives

      public static void convertMapPrimitives(Map<String,Object> map, Consumer<ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol.StringProperty.Builder> inserter)
    • convertStringMultiMap

      public static void convertStringMultiMap(Map<String,List<String>> map, Consumer<ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol.StringProperty.Builder> inserter)
    • convertMultiMap

      public static void convertMultiMap(Map<String,List<Object>> map, Consumer<ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol.StringProperty.Builder> stringInserter, Consumer<ai.vespa.searchlib.searchprotocol.protobuf.SearchProtocol.TensorProperty.Builder> tensorInserter)