public class SolrFieldTypeFinder extends Object implements Serializable
Class containing all the information relating fields with their types. This information is wrapped in the class SolrFieldTypeFinder.FieldTypeWrapper
Modifier and Type | Class and Description |
---|---|
static class |
SolrFieldTypeFinder.FieldTypeWrapper
Class wrapping all the information for fields and types.
|
Constructor and Description |
---|
SolrFieldTypeFinder(SchemaBuilder schemaBuilder)
Initiates class containing all the information relating fields with their types.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllSolrFieldTypes() |
SolrFieldTypeFinder.FieldTypeWrapper |
getFieldTypeWrapper(String fieldName)
Finds the schema defined field that matches the input parameter, if any.
|
void |
initialize() |
boolean |
matchesDynamicField(String fieldName) |
boolean |
matchesDynamicField(String fieldName,
String pattern) |
boolean |
matchesField(String fieldName) |
public SolrFieldTypeFinder(SchemaBuilder schemaBuilder)
Initiates class containing all the information relating fields with their types. This information is parsed from the schema
schemaBuilder
- schemaBuilder to build the information about fields and typespublic void initialize()
public SolrFieldTypeFinder.FieldTypeWrapper getFieldTypeWrapper(String fieldName)
Finds the schema defined field that matches the input parameter, if any. It can be a dynamic field, in which case it will return the pattern of the dynamic field that matches the input parameter.
fieldName
- The name of the field to get info forSolrFieldTypeFinder.FieldTypeWrapper
that matches the input parameter, or null if none foundpublic boolean matchesField(String fieldName)
public boolean matchesDynamicField(String fieldName)
Copyright © 2022 The Apache Software Foundation. All rights reserved.