public class AvroSchema2Pig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARRAY_FIELD |
static String |
FIELD |
static String |
MAP_VALUE_FIELD |
static String |
RECORD |
| Constructor and Description |
|---|
AvroSchema2Pig() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
add2BagSchema(ResourceSchema.ResourceFieldSchema fieldSchema,
ResourceSchema.ResourceFieldSchema subFieldSchema)
Add a field schema to a bag schema
|
static ResourceSchema |
convert(org.apache.avro.Schema schema)
Convert an Avro schema to a Pig schema
|
static ResourceSchema.ResourceFieldSchema |
getPigSchema(byte pigType,
String fieldName)
Wrap a pig type to a field schema
|
public static String RECORD
public static String FIELD
public static String ARRAY_FIELD
public static String MAP_VALUE_FIELD
public static ResourceSchema.ResourceFieldSchema getPigSchema(byte pigType, String fieldName)
public static ResourceSchema convert(org.apache.avro.Schema schema) throws IOException
IOExceptionprotected static void add2BagSchema(ResourceSchema.ResourceFieldSchema fieldSchema, ResourceSchema.ResourceFieldSchema subFieldSchema) throws IOException
IOExceptionCopyright © 2007-2017 The Apache Software Foundation