public class Schema extends Object
Constructor and Description |
---|
Schema(Iterable<Field> fields) |
Schema(Iterable<Field> fields,
Map<String,String> metadata) |
Modifier and Type | Method and Description |
---|---|
static Schema |
convertSchema(Schema schema) |
static Schema |
deserialize(ByteBuffer buffer) |
boolean |
equals(Object obj) |
static Field |
findField(List<Field> fields,
String name) |
Field |
findField(String name) |
static Schema |
fromJSON(String json) |
Map<String,String> |
getCustomMetadata() |
List<Field> |
getFields() |
int |
getSchema(com.google.flatbuffers.FlatBufferBuilder builder) |
int |
hashCode() |
String |
toJson() |
String |
toString() |
public static Field findField(List<Field> fields, String name)
fields
- the list of the fieldsname
- the name of the field to returnIllegalArgumentException
- if the field was not foundpublic static Schema fromJSON(String json) throws IOException
IOException
public static Schema deserialize(ByteBuffer buffer)
public Field findField(String name)
name
- the name of the field to returnpublic String toJson()
public int getSchema(com.google.flatbuffers.FlatBufferBuilder builder)
Copyright © 2018 The Apache Software Foundation. All rights reserved.