public class AvroStorageDataConversionUtilities extends Object
Constructor and Description |
---|
AvroStorageDataConversionUtilities() |
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.generic.GenericData.Array<Object> |
packIntoAvro(DataBag db,
org.apache.avro.Schema s)
Packs a Pig DataBag into an Avro array.
|
static org.apache.avro.generic.GenericData.Record |
packIntoAvro(Tuple t,
org.apache.avro.Schema s)
Packs a Pig Tuple into an Avro record.
|
public static org.apache.avro.generic.GenericData.Record packIntoAvro(Tuple t, org.apache.avro.Schema s) throws IOException
t
- the Pig tuple to pack into the avro objects
- The avro schema for which to determine the typeIOException
public static org.apache.avro.generic.GenericData.Array<Object> packIntoAvro(DataBag db, org.apache.avro.Schema s) throws IOException
db
- the Pig databad to pack into the avro arrays
- The avro schema for which to determine the typeIOException
Copyright © 2007-2017 The Apache Software Foundation