Class FieldTypesLookup

java.lang.Object
org.graylog.plugins.views.search.elasticsearch.FieldTypesLookup

public class FieldTypesLookup extends Object
  • Constructor Details

  • Method Details

    • getType

      public Optional<String> getType(Set<String> streamIds, String field)
    • getTypes

      public Map<String,String> getTypes(Set<String> streamIds, Set<String> fields)
      It may be inefficient to call getType() method for multiple fields, if the list of streams does not change. In that scenario this method will be better, hitting Mongo DB only once.