public static class DocValuesFormatProvider.Helper extends Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static DocValuesFormatProvider |
lookup(Settings indexSettings,
String name,
Map<String,DocValuesFormatProvider.Factory> docValuesFormatFactories)
Looks up and creates
DocValuesFormatProvider for the given name. |
public static DocValuesFormatProvider lookup(@IndexSettings Settings indexSettings, String name, Map<String,DocValuesFormatProvider.Factory> docValuesFormatFactories) throws ElasticsearchIllegalArgumentException
DocValuesFormatProvider
for the given name.
The settings for the created DocValuesFormatProvider
is taken from the given index settings.
All settings with the prefix
and the formats name as the key are passed to the factory.
indexSettings
- the index settings to configure the postings formatname
- the name of the doc values format to lookupdocValuesFormatFactories
- the factory mapping to lookup the DocValuesFormatProvider.Factory
to create the DocValuesFormatProvider
DocValuesFormatProvider
for the given name.ElasticsearchIllegalArgumentException
- if the no DocValuesFormatProvider
for the given name parameter could be found.Copyright © 2009–2015. All rights reserved.