Class MongoFieldTypeLookup

java.lang.Object
org.graylog2.indexer.fieldtypes.MongoFieldTypeLookup
All Implemented Interfaces:
FieldTypeLookup

public class MongoFieldTypeLookup extends Object implements FieldTypeLookup
This can be used to lookup types for message fields.
  • Constructor Details

  • Method Details

    • get

      public Optional<FieldTypes> get(String fieldName)
      Returns the FieldTypes object for the given message field name.
      Specified by:
      get in interface FieldTypeLookup
      Parameters:
      fieldName - name of the field to get the type for
      Returns:
      field type object
    • get

      public Map<String,FieldTypes> get(Collection<String> fieldNames)
      Returns a map of field names to FieldTypes objects.
      Specified by:
      get in interface FieldTypeLookup
      Parameters:
      fieldNames - a collection of field names to get the types for
      Returns:
      map of field names to field type objects
    • get

      public Map<String,FieldTypes> get(Collection<String> fieldNames, Collection<String> indexNames)
      Returns a map of field names to the corresponding field types.
      Specified by:
      get in interface FieldTypeLookup
      Parameters:
      fieldNames - a collection of field names to get the types for
      indexNames - a collection of index names to filter the results
      Returns:
      map of field names to field type objects