public class WritableUnwrappers extends Object
Modifier and Type | Method and Description |
---|---|
static <W extends org.apache.hadoop.io.Writable,J> |
lookup(Class<W> writableClass,
Class<J> javaClass)
Lookup type converter
|
static <W extends org.apache.hadoop.io.Writable,J> |
lookup(JavaWritablePair<W,J> classes)
Lookup type converter
|
public static <W extends org.apache.hadoop.io.Writable,J> WritableUnwrapper<W,J> lookup(Class<W> writableClass, Class<J> javaClass)
W
- Writable typeJ
- Java typewritableClass
- class of WritablejavaClass
- class of Java typeWritableUnwrapper
public static <W extends org.apache.hadoop.io.Writable,J> WritableUnwrapper<W,J> lookup(JavaWritablePair<W,J> classes)
W
- Writable typeJ
- Java typeclasses
- JavaAndWritableClassesWritableUnwrapper
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.