Package uk.gov.gchq.gaffer.store
Class Context
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.Context
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Context.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExporter(Exporter exporter)
void
addVariables(Map<String,Object> variables)
static String
createJobId()
boolean
equals(Object obj)
Object
getConfig(String key)
<E> E
getExporter(Class<? extends E> exporterClass)
Collection<Exporter>
getExporters()
String
getJobId()
OperationChain<?>
getOriginalOpChain()
Gets the original operation chain.User
getUser()
Object
getVariable(String key)
Map<String,Object>
getVariables()
int
hashCode()
void
setConfig(String key, Object value)
void
setOriginalOpChain(OperationChain<?> originalOpChain)
void
setVariable(String key, Object value)
void
setVariables(Map<String,Object> variables)
Context
shallowClone()
Creates a clone of the currentContext
and returns it with a new job ID.String
toString()
-
-
-
Method Detail
-
shallowClone
public Context shallowClone()
Creates a clone of the currentContext
and returns it with a new job ID.- Returns:
- cloned
Context
-
getUser
public User getUser()
-
getJobId
public final String getJobId()
-
getExporters
public Collection<Exporter> getExporters()
-
addExporter
public void addExporter(Exporter exporter)
-
getExporter
public <E> E getExporter(Class<? extends E> exporterClass)
-
getOriginalOpChain
public OperationChain<?> getOriginalOpChain()
Gets the original operation chain. This should not be modified.- Returns:
- the original operation chain.
-
setOriginalOpChain
public void setOriginalOpChain(OperationChain<?> originalOpChain)
-
createJobId
public static String createJobId()
-
-