public class WritableFactories extends Object
ObjectWritable
to be able to construct instances of non-public classes.限定符和类型 | 方法和说明 |
---|---|
static WritableFactory |
getFactory(Class c)
Define a factory for a class.
|
static Writable |
newInstance(Class<? extends Writable> c)
Create a new instance of a class with a defined factory.
|
static Writable |
newInstance(Class<? extends Writable> c,
Configuration conf)
Create a new instance of a class with a defined factory.
|
static void |
setFactory(Class c,
WritableFactory factory)
Define a factory for a class.
|
public static void setFactory(Class c, WritableFactory factory)
public static WritableFactory getFactory(Class c)
public static Writable newInstance(Class<? extends Writable> c, Configuration conf)
Copyright © 2009 The Apache Software Foundation