Class TypesRecordProcessor
- java.lang.Object
-
- org.openprovenance.prov.template.types.TypesRecordProcessor
-
public class TypesRecordProcessor extends Object
-
-
Constructor Summary
Constructors Constructor Description TypesRecordProcessor(Map<String,Integer> knownLevel0TypeIndex, Map<Set<Integer>,Integer> knownTypesSets, Map<String,Integer> knownRelations, int relationOffset, int levelOffset, Map<String,String> translation, int levelNumber, boolean addLevel0ToAllLevels, Map<String,Map<String,List<String>>> propertyConverters, List<org.apache.commons.lang3.tuple.Pair<String,Object[]>> records)
-
Method Summary
-
-
-
Constructor Detail
-
TypesRecordProcessor
public TypesRecordProcessor(Map<String,Integer> knownLevel0TypeIndex, Map<Set<Integer>,Integer> knownTypesSets, Map<String,Integer> knownRelations, int relationOffset, int levelOffset, Map<String,String> translation, int levelNumber, boolean addLevel0ToAllLevels, Map<String,Map<String,List<String>>> propertyConverters, List<org.apache.commons.lang3.tuple.Pair<String,Object[]>> records)
-
-
Method Detail
-
levelN
public Map<String,Integer> levelN(HashMap<String,FileBuilder> registry, HashMap<String,Object> clientRegistry, ProxyManagement pm, Map<String,Integer> mapLevelN, int levelNext, Map<String,Integer> mapLevel0)
-
computeTypesPerNode
public Map<String,Collection<Integer>> computeTypesPerNode(int bound)
-
computeFeatureVector
public Map<Integer,Integer> computeFeatureVector(Map<String,Collection<Integer>> types)
-
constructType
public List<Integer> constructType(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap)
-
level0
public Map<String,Integer> level0(Map<QualifiedName,Set<String>> knownTypeMap, Map<QualifiedName,Set<String>> unknownTypeMap, Map<String,Map<String,Function<Object,Collection<String>>>> propertyConverters)
-
computeLevels
public void computeLevels(HashMap<String,FileBuilder> registry, HashMap<String,Object> clientRegistry, ProxyManagement pm, Map<QualifiedName,Set<String>> knownTypeMap, Map<QualifiedName,Set<String>> unknownTypeMap, Map<String,Map<String,Function<Object,Collection<String>>>> propertyConverters, int bound)
-
mergeMapsOfSets
public static <ALPHA,BETA> Map<ALPHA,Set<BETA>> mergeMapsOfSets(Map<ALPHA,Set<BETA>> map1, Map<ALPHA,Set<BETA>> map2)
-
mergeMapsOfLists
public static <ALPHA,BETA> Map<ALPHA,List<BETA>> mergeMapsOfLists(Map<ALPHA,List<BETA>> map1, Map<ALPHA,List<BETA>> map2)
-
getLevelNumber
public int getLevelNumber()
-
getPropertyConverters
public Map<String,Map<String,Function<Object,Collection<String>>>> getPropertyConverters()
-
initialisePropertyConverters
public Map<String,Map<String,Function<Object,Collection<String>>>> initialisePropertyConverters(Map<String,Map<String,List<String>>> converters)
-
-