|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.piggybank.storage.avro.AvroSchemaManager
public class AvroSchemaManager
This class creates two maps out of a given Avro schema. And it supports looking up avro schemas using either type name or field name. 1. map[type name] = > avro schema 2. map[field name] => avro schema
Constructor Summary | |
---|---|
AvroSchemaManager(org.apache.avro.Schema schema)
Construct with a given schema |
Method Summary | |
---|---|
org.apache.avro.Schema |
getSchema(String name)
Look up schema using type name or field name |
protected void |
init(String namespace,
org.apache.avro.Schema schema,
boolean ignoreNameMap)
Initialize given a schema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvroSchemaManager(org.apache.avro.Schema schema) throws IOException
IOException
Method Detail |
---|
protected void init(String namespace, org.apache.avro.Schema schema, boolean ignoreNameMap)
public org.apache.avro.Schema getSchema(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |