|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.types.avro.AvroDeepCopier<T>
public abstract class AvroDeepCopier<T>
Performs deep copies of Avro-serializable objects.
Warning: Methods in this class are not thread-safe. This shouldn't be a problem when running in a map-reduce context where each mapper/reducer is running in its own JVM, but it may well be a problem in any other kind of multi-threaded context.
| Nested Class Summary | |
|---|---|
static class |
AvroDeepCopier.AvroGenericDeepCopier
Deep copier for Avro generic data objects. |
static class |
AvroDeepCopier.AvroReflectDeepCopier<T>
Deep copier for Avro reflect data objects. |
static class |
AvroDeepCopier.AvroSpecificDeepCopier<T>
Deep copier for Avro specific data objects. |
static class |
AvroDeepCopier.AvroTupleDeepCopier
|
| Nested classes/interfaces inherited from interface org.apache.crunch.types.DeepCopier |
|---|
DeepCopier.NoOpDeepCopier<V> |
| Constructor Summary | |
|---|---|
AvroDeepCopier(org.apache.avro.Schema schema)
|
|
| Method Summary | |
|---|---|
T |
deepCopy(T source)
Create a deep copy of an Avro value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvroDeepCopier(org.apache.avro.Schema schema)
| Method Detail |
|---|
public T deepCopy(T source)
deepCopy in interface DeepCopier<T>source - The value to be copied
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||