public class PrivacyPropagator extends Object
| Constructor and Description | 
|---|
| PrivacyPropagator() | 
| Modifier and Type | Method and Description | 
|---|---|
| static PrivacyConstraint.PrivacyLevel | corePropagation(PrivacyConstraint.PrivacyLevel[] inputLevels,
               OperatorType operatorType)Returns the output privacy level based on the given input privacy levels and operator type. | 
| static void | hopPropagation(Hop hop)Propagate privacy constraints from input hops to given hop. | 
| static PrivacyConstraint | mergeBinary(PrivacyConstraint privacyConstraint1,
           PrivacyConstraint privacyConstraint2)Merges the input privacy constraints using the core propagation with NonAggregate operator type. | 
| static PrivacyConstraint | parseAndReturnPrivacyConstraint(org.apache.wink.json4j.JSONObject mtd)Parses the privacy constraint of the given metadata object
 or returns null if no privacy constraint is set in the metadata. | 
| static Data | parseAndSetPrivacyConstraint(Data cd,
                            org.apache.wink.json4j.JSONObject mtd)Parses the privacy constraint of the given metadata object
 and sets the field of the given Data if the privacy constraint is not null. | 
| static void | postProcessInstruction(Instruction inst,
                      ExecutionContext ec)Propagate privacy constraints to output variables
 based on privacy constraint of CPOperand output in instruction
 which has been set during privacy propagation preprocessing. | 
| static Instruction | preprocessInstruction(Instruction inst,
                     ExecutionContext ec)Propagate privacy constraints from input to output CPOperands
 in case the privacy constraints of the input are activated. | 
public static Data parseAndSetPrivacyConstraint(Data cd, org.apache.wink.json4j.JSONObject mtd) throws org.apache.wink.json4j.JSONException
cd - data for which privacy constraint is setmtd - metadata objectorg.apache.wink.json4j.JSONException - during parsing of metadatapublic static PrivacyConstraint parseAndReturnPrivacyConstraint(org.apache.wink.json4j.JSONObject mtd) throws org.apache.wink.json4j.JSONException
mtd - metadataorg.apache.wink.json4j.JSONException - during parsing of metadatapublic static PrivacyConstraint.PrivacyLevel corePropagation(PrivacyConstraint.PrivacyLevel[] inputLevels, OperatorType operatorType)
inputLevels - privacy levels of the inputoperatorType - type of the operator which is either an aggregation (Aggregate) or not an aggregation (NonAggregate)public static PrivacyConstraint mergeBinary(PrivacyConstraint privacyConstraint1, PrivacyConstraint privacyConstraint2)
privacyConstraint1 - first privacy constraintprivacyConstraint2 - second privacy constraintpublic static void hopPropagation(Hop hop)
hop - which the privacy constraints are propagated topublic static void postProcessInstruction(Instruction inst, ExecutionContext ec)
inst - instruction for which privacy constraints are propagatedec - execution contextpublic static Instruction preprocessInstruction(Instruction inst, ExecutionContext ec)
inst - instruction for which the privacy constraints are propagatedec - execution contextCopyright © 2021 The Apache Software Foundation. All rights reserved.