public class ObjectSchema extends Object implements RecordSchema
| Constructor and Description |
|---|
ObjectSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(Field field) |
Field |
getField(String fieldName,
int index) |
Iterable<? extends Field> |
getFields() |
void |
removeField(Field field,
int index) |
Iterable<? extends Field> |
removeUnreadFields() |
void |
resetMarkedFields() |
String |
toSchemaString() |
public void addField(Field field)
addField in interface RecordSchemapublic Field getField(String fieldName, int index)
getField in interface RecordSchemapublic void removeField(Field field, int index)
removeField in interface RecordSchemapublic Iterable<? extends Field> getFields()
getFields in interface RecordSchemapublic String toSchemaString()
toSchemaString in interface RecordSchemapublic void resetMarkedFields()
resetMarkedFields in interface RecordSchemapublic Iterable<? extends Field> removeUnreadFields()
removeUnreadFields in interface RecordSchemaCopyright © 2022 The Apache Software Foundation. All rights reserved.