public class DefaultSchemaOperations extends Object implements SchemaOperations
SchemaOperations implementation based on SolrTemplate.| Constructor and Description |
|---|
DefaultSchemaOperations(String collection,
SolrTemplate template) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(SchemaDefinition.SchemaField field)
Add given
SchemaDefinition.SchemaField. |
String |
getSchemaName()
Get the current schema name.
|
Double |
getSchemaVersion()
Get the current schema version.
|
SchemaDefinition |
readSchema()
Read back the
SchemaDefinition from server. |
void |
removeField(String name)
Remove the field with given name.
|
public DefaultSchemaOperations(String collection, SolrTemplate template)
public String getSchemaName()
SchemaOperationsgetSchemaName in interface SchemaOperationspublic Double getSchemaVersion()
SchemaOperationsgetSchemaVersion in interface SchemaOperationspublic SchemaDefinition readSchema()
SchemaOperationsSchemaDefinition from server.readSchema in interface SchemaOperationspublic void addField(SchemaDefinition.SchemaField field)
SchemaOperationsSchemaDefinition.SchemaField.addField in interface SchemaOperationsfield - must not be null.public void removeField(String name)
SchemaOperationsremoveField in interface SchemaOperationsname - must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.