public class SchemaFields extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected Set<CopyFieldId> | 
_copyFieldIds
The copy field ids. 
 | 
protected Set<String> | 
_dynFieldNames
The dynamic field names. 
 | 
protected Set<String> | 
_fieldNames
The simple field names. 
 | 
protected Set<String> | 
_fieldTypeNames
The field type names. 
 | 
| Constructor and Description | 
|---|
SchemaFields(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schemaRepresentation)
Build a SchemaFields object from a  
SchemaRepresentation. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCopyField(String source,
            String destination)
Add the given copy field. 
 | 
void | 
addDynamicField(String name)
Add a dynamic field name. 
 | 
void | 
addField(String name)
Add the given field name. 
 | 
void | 
addFieldType(String name)
Add the given field type name. 
 | 
Set<CopyFieldId> | 
getCopyFieldIds()
Get the copy field ids. 
 | 
Set<String> | 
getDynamicFieldNames()
Get the dynamic field names. 
 | 
Set<String> | 
getFieldNames()
Get the simple field names. 
 | 
Set<String> | 
getFieldTypeNames()
Get the field types. 
 | 
boolean | 
hasCopyField(String source,
            String destination)
Test if the schema contains the given copy field. 
 | 
boolean | 
hasDynamicField(String name)
Test if the schema contains the given dynamic field. 
 | 
boolean | 
hasField(String name)
Test if the schema contains the given simple field. 
 | 
boolean | 
hasFieldType(String name)
Test if the schema contains the given field type. 
 | 
protected void | 
initFields(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schema)
Initialize the field names from the schema representation. 
 | 
String | 
toString()  | 
protected Set<String> _fieldNames
protected Set<String> _dynFieldNames
protected Set<CopyFieldId> _copyFieldIds
protected Set<String> _fieldTypeNames
public SchemaFields(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schemaRepresentation)
SchemaRepresentation.schemaRepresentation - The schema representation.public Set<String> getFieldNames()
public boolean hasField(String name)
name - The field name to test.public void addField(String name)
name - the field name to add.public Set<String> getDynamicFieldNames()
public boolean hasDynamicField(String name)
name - The dynamic field name to test.public void addDynamicField(String name)
name - the dynamic field name to add.public Set<CopyFieldId> getCopyFieldIds()
public boolean hasCopyField(String source, String destination)
source - The copy field source.destination - The copy field destination.public void addCopyField(String source, String destination)
source - The copy field source.destination - The copy field destination.public Set<String> getFieldTypeNames()
public boolean hasFieldType(String name)
name - The field type name to test.public void addFieldType(String name)
name - the field type name to add.protected void initFields(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schema)
schema - The schema representation.