@Public
@Stable
public class WritableFactories
extends java.lang.Object
ObjectWritable to be able to construct instances of non-public classes.| Modifier and Type | Method | Description |
|---|---|---|
static WritableFactory |
getFactory(java.lang.Class c) |
Define a factory for a class.
|
static Writable |
newInstance(java.lang.Class<? extends Writable> c) |
Create a new instance of a class with a defined factory.
|
static Writable |
newInstance(java.lang.Class<? extends Writable> c,
Configuration conf) |
Create a new instance of a class with a defined factory.
|
static void |
setFactory(java.lang.Class c,
WritableFactory factory) |
Define a factory for a class.
|
public static void setFactory(java.lang.Class c,
WritableFactory factory)
c - input c.factory - input factory.public static WritableFactory getFactory(java.lang.Class c)
c - input c.public static Writable newInstance(java.lang.Class<? extends Writable> c, Configuration conf)
c - input c.conf - input configuration.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.