Package | Description |
---|---|
org.apache.crunch.types.avro |
Business object serialization using Apache Avro.
|
Modifier and Type | Field and Description |
---|---|
static AvroMode |
AvroMode.GENERIC
Default mode to use for reading and writing
Generic types. |
static AvroMode |
AvroMode.REFLECT
Default mode to use for reading and writing
Reflect types. |
static AvroMode |
AvroMode.SPECIFIC
Default mode to use for reading and writing
Specific types. |
Modifier and Type | Method and Description |
---|---|
static AvroMode |
AvroMode.fromConfiguration(org.apache.hadoop.conf.Configuration conf)
Creates an AvroMode based on the
AVRO_MODE_PROPERTY property in the conf . |
static AvroMode |
AvroMode.fromShuffleConfiguration(org.apache.hadoop.conf.Configuration conf)
Creates an AvroMode based on the
AVRO_SHUFFLE_MODE_PROPERTY property in the conf . |
static AvroMode |
AvroMode.fromType(AvroType<?> type)
Creates an
AvroMode based upon the specified type . |
AvroMode |
AvroMode.override(ReaderWriterFactory factory)
Deprecated.
use
withFactory(ReaderWriterFactory) instead. |
AvroMode |
AvroMode.withFactory(ReaderWriterFactory factory)
Creates a new
AvroMode instance which will utilize the factory instance
for creating Avro readers and writers. |
AvroMode |
AvroMode.withFactoryFromConfiguration(org.apache.hadoop.conf.Configuration conf) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.