Class MergeSchema
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.util.MergeSchema
-
- All Implemented Interfaces:
BiFunction<Schema,Schema,Schema>
,ContextSpecificMergeFunction<Schema,Schema,Schema>
public class MergeSchema extends Object implements BiFunction<Schema,Schema,Schema>, ContextSpecificMergeFunction<Schema,Schema,Schema>
-
-
Field Summary
Fields Modifier and Type Field Description static String
FORMAT_CAUGHT_SCHEMA_EXCEPTION_ATTEMPTING_TO_RE_MERGE_BUT_WITHOUT_S_ERROR_MESSAGE_S
static String
MATCHING_ELEMENT_GROUPS_HAVING_NO_SHARED_PROPERTIES_CAUSED_BY
static String
MERGE_FUNCTION_UNABLE_TO_RECOVER_FROM_ERROR_DUE_TO
static String
WIPE_VERTEX_SERIALISERS
static String
WIPE_VISIBILITY_PROPERTY
-
Constructor Summary
Constructors Constructor Description MergeSchema()
MergeSchema(HashMap<String,Object> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
apply(Schema update, Schema state)
ContextSpecificMergeFunction<Schema,Schema,Schema>
createFunctionWithContext(HashMap<String,Object> context)
Set<String>
getRequiredContextValues()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
Methods inherited from interface uk.gov.gchq.gaffer.federatedstore.util.ContextSpecificMergeFunction
isRequired
-
-
-
-
Field Detail
-
WIPE_VERTEX_SERIALISERS
public static final String WIPE_VERTEX_SERIALISERS
- See Also:
- Constant Field Values
-
WIPE_VISIBILITY_PROPERTY
public static final String WIPE_VISIBILITY_PROPERTY
- See Also:
- Constant Field Values
-
FORMAT_CAUGHT_SCHEMA_EXCEPTION_ATTEMPTING_TO_RE_MERGE_BUT_WITHOUT_S_ERROR_MESSAGE_S
public static final String FORMAT_CAUGHT_SCHEMA_EXCEPTION_ATTEMPTING_TO_RE_MERGE_BUT_WITHOUT_S_ERROR_MESSAGE_S
- See Also:
- Constant Field Values
-
MERGE_FUNCTION_UNABLE_TO_RECOVER_FROM_ERROR_DUE_TO
public static final String MERGE_FUNCTION_UNABLE_TO_RECOVER_FROM_ERROR_DUE_TO
-
MATCHING_ELEMENT_GROUPS_HAVING_NO_SHARED_PROPERTIES_CAUSED_BY
public static final String MATCHING_ELEMENT_GROUPS_HAVING_NO_SHARED_PROPERTIES_CAUSED_BY
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public Schema apply(Schema update, Schema state)
- Specified by:
apply
in interfaceBiFunction<Schema,Schema,Schema>
-
createFunctionWithContext
public ContextSpecificMergeFunction<Schema,Schema,Schema> createFunctionWithContext(HashMap<String,Object> context) throws GafferCheckedException
- Specified by:
createFunctionWithContext
in interfaceContextSpecificMergeFunction<Schema,Schema,Schema>
- Throws:
GafferCheckedException
-
getRequiredContextValues
public Set<String> getRequiredContextValues()
- Specified by:
getRequiredContextValues
in interfaceContextSpecificMergeFunction<Schema,Schema,Schema>
-
-