|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.Classes
public class Classes
Utilities for class manipulation.
Constructor Summary | |
---|---|
Classes()
|
Method Summary | |
---|---|
static Filter |
createForName(String className)
This method is almost the same as #createWritableForName, except that this one doesn't expect the filter class to extends Configurable. |
static Filter |
createWritableForName(String className)
Used to dynamically load a filter class, and create a Writable filter. |
static Class<?> |
extendedForName(String className)
Equivalent of Class.forName(String) which also returns classes for
primitives like boolean , etc. |
static String |
stringify(Class[] classes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Classes()
Method Detail |
---|
public static Class<?> extendedForName(String className) throws ClassNotFoundException
Class.forName(String)
which also returns classes for
primitives like boolean
, etc.
className
- The name of the class to retrieve. Can be either a normal class or
a primitive class.
className
ClassNotFoundException
- If the requested class can not be found.public static String stringify(Class[] classes)
public static Filter createWritableForName(String className)
className
- the filter class name.
public static Filter createForName(String className)
className
- the filter class name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |