public interface FineGrainedPrivacy
Modifier and Type | Method and Description |
---|---|
Map<String,long[][][]> |
getAllConstraints()
Get all fine-grained constraints as a map from privacy level to
an array of data ranges represented as two-dimensional long arrays.
|
ArrayList<Map.Entry<DataRange,PrivacyConstraint.PrivacyLevel>> |
getAllConstraintsList()
Return all fine-grained privacy constraints as an arraylist.
|
DataRange[] |
getDataRangesOfPrivacyLevel(PrivacyConstraint.PrivacyLevel privacyLevel)
Get all data ranges for the given privacy level.
|
Map<DataRange,PrivacyConstraint.PrivacyLevel> |
getPrivacyLevel(DataRange searchRange)
Get the data ranges and related privacy levels within given data search range.
|
Map<DataRange,PrivacyConstraint.PrivacyLevel> |
getPrivacyLevelOfElement(long[] searchIndex)
Get the data ranges and related privacy levels of the element with the given index.
|
boolean |
hasConstraints()
True if any fine-grained constraints has been set.
|
void |
put(DataRange dataRange,
PrivacyConstraint.PrivacyLevel privacyLevel)
Set privacy level of the given data range.
|
void |
removeAllConstraints()
Remove all fine-grained privacy constraints.
|
void put(DataRange dataRange, PrivacyConstraint.PrivacyLevel privacyLevel)
dataRange
- representing the range for which the privacy is setprivacyLevel
- the level of privacy for the given data rangeMap<DataRange,PrivacyConstraint.PrivacyLevel> getPrivacyLevel(DataRange searchRange)
searchRange
- the range from which all privacy levels are retrievedMap<DataRange,PrivacyConstraint.PrivacyLevel> getPrivacyLevelOfElement(long[] searchIndex)
searchIndex
- index of elementDataRange[] getDataRangesOfPrivacyLevel(PrivacyConstraint.PrivacyLevel privacyLevel)
privacyLevel
- for which data ranges are foundvoid removeAllConstraints()
boolean hasConstraints()
Map<String,long[][][]> getAllConstraints()
ArrayList<Map.Entry<DataRange,PrivacyConstraint.PrivacyLevel>> getAllConstraintsList()
Copyright © 2020 The Apache Software Foundation. All rights reserved.