Package org.graylog2.indexer.fieldtypes
Class MongoFieldTypeLookup
java.lang.Object
org.graylog2.indexer.fieldtypes.MongoFieldTypeLookup
- All Implemented Interfaces:
FieldTypeLookup
This can be used to lookup types for message fields.
-
Constructor Summary
ConstructorsConstructorDescriptionMongoFieldTypeLookup(IndexFieldTypesService dbService, FieldTypeMapper typeMapper) -
Method Summary
Modifier and TypeMethodDescriptionReturns theFieldTypesobject for the given message field name.get(Collection<String> fieldNames) Returns a map of field names toFieldTypesobjects.get(Collection<String> fieldNames, Collection<String> indexNames) Returns a map of field names to the corresponding field types.
-
Constructor Details
-
MongoFieldTypeLookup
-
-
Method Details
-
get
Returns theFieldTypesobject for the given message field name.- Specified by:
getin interfaceFieldTypeLookup- Parameters:
fieldName- name of the field to get the type for- Returns:
- field type object
-
get
Returns a map of field names toFieldTypesobjects.- Specified by:
getin interfaceFieldTypeLookup- Parameters:
fieldNames- a collection of field names to get the types for- Returns:
- map of field names to field type objects
-
get
Returns a map of field names to the corresponding field types.- Specified by:
getin interfaceFieldTypeLookup- Parameters:
fieldNames- a collection of field names to get the types forindexNames- a collection of index names to filter the results- Returns:
- map of field names to field type objects
-