Package org.apache.solr.schema
Class AbstractEnumField.EnumMapping
- java.lang.Object
- 
- org.apache.solr.schema.AbstractEnumField.EnumMapping
 
- 
- Enclosing class:
- AbstractEnumField
 
 public static final class AbstractEnumField.EnumMapping extends Object Models all the info contained in an enums config XML file- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static IntegerDEFAULT_VALUEMap<Integer,String>enumIntToStringMapprotected StringenumNameprotected StringenumsConfigFileMap<String,Integer>enumStringToIntMapstatic StringPARAM_ENUM_NAMEstatic StringPARAM_ENUMS_CONFIG
 - 
Constructor SummaryConstructors Constructor Description EnumMapping(IndexSchema schema, FieldType fieldType, Map<String,String> args)Takes in a FieldType and the initArgs Map used for that type, removing the keys that specify the enum.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringintValueToStringValue(Integer intVal)Converting the (internal) integer value (indicating the sort order) to string (displayed) valueIntegerstringValueToIntValue(String stringVal)Converting the string (displayed) value (internal) to integer value (indicating the sort order)
 
- 
- 
- 
Field Detail- 
PARAM_ENUMS_CONFIGpublic static final String PARAM_ENUMS_CONFIG - See Also:
- Constant Field Values
 
 - 
PARAM_ENUM_NAMEpublic static final String PARAM_ENUM_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_VALUEpublic static final Integer DEFAULT_VALUE 
 - 
enumsConfigFileprotected final String enumsConfigFile 
 - 
enumNameprotected final String enumName 
 
- 
 - 
Constructor Detail- 
EnumMappingpublic EnumMapping(IndexSchema schema, FieldType fieldType, Map<String,String> args) Takes in a FieldType and the initArgs Map used for that type, removing the keys that specify the enum.- Parameters:
- schema- for opening resources
- fieldType- Used for logging or error messages
- args- the init args to consume the enum name + config file from
 
 
- 
 
-