@ThreadSafe public class FragmentConvertor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Class<? extends Fragment>> |
CACHED_FRAGMENT_CLASSES
Cache of fragment classes
|
| Constructor and Description |
|---|
FragmentConvertor() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Fragment> |
convert(Class<T> clazz,
CatalogProtos.FragmentProto... fragments) |
static <T extends Fragment> |
convert(Class<T> clazz,
CatalogProtos.FragmentProto fragment) |
static <T extends Fragment> |
convert(org.apache.hadoop.conf.Configuration conf,
CatalogProtos.FragmentProto... fragments) |
static <T extends Fragment> |
convert(org.apache.hadoop.conf.Configuration conf,
CatalogProtos.FragmentProto fragment) |
static Class<? extends Fragment> |
getFragmentClass(org.apache.hadoop.conf.Configuration conf,
String dataFormat) |
static CatalogProtos.FragmentProto[] |
toFragmentProtoArray(Fragment... fragments) |
static List<CatalogProtos.FragmentProto> |
toFragmentProtoList(Fragment... fragments) |
public static Class<? extends Fragment> getFragmentClass(org.apache.hadoop.conf.Configuration conf, String dataFormat)
public static <T extends Fragment> T convert(Class<T> clazz, CatalogProtos.FragmentProto fragment)
public static <T extends Fragment> T convert(org.apache.hadoop.conf.Configuration conf, CatalogProtos.FragmentProto fragment)
public static <T extends Fragment> List<T> convert(Class<T> clazz, CatalogProtos.FragmentProto... fragments) throws IOException
IOExceptionpublic static <T extends Fragment> List<T> convert(org.apache.hadoop.conf.Configuration conf, CatalogProtos.FragmentProto... fragments)
public static List<CatalogProtos.FragmentProto> toFragmentProtoList(Fragment... fragments)
public static CatalogProtos.FragmentProto[] toFragmentProtoArray(Fragment... fragments)
Copyright © 2016 Apache Software Foundation. All Rights Reserved.