public class MongoFieldTypeLookup extends Object implements FieldTypeLookup
| Constructor and Description |
|---|
MongoFieldTypeLookup(IndexFieldTypesService dbService,
FieldTypeMapper typeMapper) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,FieldTypes> |
get(Collection<String> fieldNames)
Returns a map of field names to
FieldTypes objects. |
Map<String,FieldTypes> |
get(Collection<String> fieldNames,
Collection<String> indexNames)
Returns a map of field names to the corresponding field types.
|
Optional<FieldTypes> |
get(String fieldName)
Returns the
FieldTypes object for the given message field name. |
@Inject public MongoFieldTypeLookup(IndexFieldTypesService dbService, FieldTypeMapper typeMapper)
public Optional<FieldTypes> get(String fieldName)
FieldTypes object for the given message field name.get in interface FieldTypeLookupfieldName - name of the field to get the type forpublic Map<String,FieldTypes> get(Collection<String> fieldNames)
FieldTypes objects.get in interface FieldTypeLookupfieldNames - a collection of field names to get the types forpublic Map<String,FieldTypes> get(Collection<String> fieldNames, Collection<String> indexNames)
get in interface FieldTypeLookupfieldNames - a collection of field names to get the types forindexNames - a collection of index names to filter the resultsCopyright © 2012–2021 Graylog, Inc.. All rights reserved.