public class CollectionSchema
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addField(CollectionSchemaField field)
AddField allows to set new field to the CollectionSchema object. If the target field exists, it is overwritten.
|
void |
delete() |
CollectionSchemaField |
getField(int idx)
GetField allows to obtain CollectionSchemaField object by its index.
|
CollectionSchemaField |
getField(java.lang.String name)
GetField allows to obtain CollectionSchemaField by name.
|
int |
getFieldsNumber()
GetFieldsNumber allows to obtain fields number in the schema.
|
void |
removeField(CollectionSchemaField field)
RemoveField allows to remove specified field from the schema.
|
public void delete()
public void addField(CollectionSchemaField field)
field - CollectionSchemaField object which will be added to the schema.public void removeField(CollectionSchemaField field)
field - CollectionSchemaField which will be removed from the schema.public CollectionSchemaField getField(java.lang.String name)
name - textual field name.public CollectionSchemaField getField(int idx)
idx - index of the object to find.public int getFieldsNumber()