public class JobContextAdapterStore extends Object implements TransientAdapterStore
Constructor and Description |
---|
JobContextAdapterStore(org.apache.hadoop.mapreduce.JobContext context,
PersistentAdapterStore persistentAdapterStore,
InternalAdapterStore internalAdapterStore) |
Modifier and Type | Method and Description |
---|---|
boolean |
adapterExists(String typeName)
Check for the existence of the adapter with the given unique ID
|
void |
addAdapter(DataTypeAdapter<?> adapter)
Add the adapter to the store
|
static void |
addDataAdapter(org.apache.hadoop.conf.Configuration configuration,
DataTypeAdapter<?> adapter) |
DataTypeAdapter<?> |
getAdapter(String typeName)
Get an adapter from the store by its unique ID
|
DataTypeAdapter<?>[] |
getAdapters()
Get the full set of adapters within this store
|
protected static DataTypeAdapter<?> |
getDataAdapter(org.apache.hadoop.mapreduce.JobContext context,
String typeName) |
static DataTypeAdapter<?>[] |
getDataAdapters(org.apache.hadoop.mapreduce.JobContext context) |
List<String> |
getTypeNames() |
static void |
removeAdapter(org.apache.hadoop.conf.Configuration configuration,
String typeName) |
void |
removeAdapter(String typeName) |
void |
removeAll() |
public JobContextAdapterStore(org.apache.hadoop.mapreduce.JobContext context, PersistentAdapterStore persistentAdapterStore, InternalAdapterStore internalAdapterStore)
public void addAdapter(DataTypeAdapter<?> adapter)
AdapterStore
addAdapter
in interface AdapterStore<String,DataTypeAdapter<?>>
adapter
- the adapterpublic void removeAdapter(String typeName)
removeAdapter
in interface AdapterStore<String,DataTypeAdapter<?>>
typeName
- the adapter ID to removepublic DataTypeAdapter<?> getAdapter(String typeName)
AdapterStore
getAdapter
in interface AdapterStore<String,DataTypeAdapter<?>>
typeName
- the unique adapter IDpublic boolean adapterExists(String typeName)
AdapterStore
adapterExists
in interface AdapterStore<String,DataTypeAdapter<?>>
typeName
- the unique ID to look uppublic void removeAll()
removeAll
in interface AdapterStore<String,DataTypeAdapter<?>>
public DataTypeAdapter<?>[] getAdapters()
AdapterStore
getAdapters
in interface AdapterStore<String,DataTypeAdapter<?>>
protected static DataTypeAdapter<?> getDataAdapter(org.apache.hadoop.mapreduce.JobContext context, String typeName)
public static DataTypeAdapter<?>[] getDataAdapters(org.apache.hadoop.mapreduce.JobContext context)
public static void addDataAdapter(org.apache.hadoop.conf.Configuration configuration, DataTypeAdapter<?> adapter)
public static void removeAdapter(org.apache.hadoop.conf.Configuration configuration, String typeName)
Copyright © 2013–2022. All rights reserved.