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, Map<String,Map<String,List<String>>> idataConverters, Collection<String> rejectedTypes, 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, Map<String,Map<String,List<String>>> idataConverters, Collection<String> rejectedTypes, 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)
-
getStructuredDescriptors
public List<Descriptor> getStructuredDescriptors(Integer k, Map<String,Map<String,Collection<String>>> idata)
-
getStructuredDescriptorsN
public List<Descriptor> getStructuredDescriptorsN(Integer k, Map<String,Map<String,Collection<String>>> idata)
-
getStructuredDescriptors0
public List<Descriptor> getStructuredDescriptors0(Integer k, Map<String,Map<String,Collection<String>>> idata)
-
getStructuredDescriptorStringLevel0
public List<String> getStructuredDescriptorStringLevel0(Integer k)
-
newDescriptorTree
public Descriptor newDescriptorTree(Integer i, Long count, String s, List<Descriptor> structuredDescriptors)
-
newDescriptorAtom
public Descriptor newDescriptorAtom(Integer k, List<String> value, Map<String,Collection<String>> idata)
-
getIdata
public Map<String,Collection<String>> getIdata(Integer k, Map<String,Map<String,Collection<String>>> idata)
-
filterTypes
public Collection<int[]> filterTypes(Collection<int[]> types, ProxyClientInterface clientBuilder, TMap tMap)
-
filterTypeRecord
public boolean filterTypeRecord(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap)
-
constructType
public List<Integer> constructType(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap, String k)
-
level0
public Map<String,Integer> level0(Map<QualifiedName,Set<String>> knownTypeMap, Map<QualifiedName,Set<String>> unknownTypeMap, Map<QualifiedName,Map<String,Collection<String>>> idata)
-
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<QualifiedName,Map<String,Collection<String>>> idata, 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,BiFunction<Object,String,Collection<String>>>> getPropertyConverters()
-
getIDataConverters
public Map<String,Map<String,TriFunction<Object,String,String,Collection<org.apache.commons.lang3.tuple.Pair<String,Collection<String>>>>>> getIDataConverters()
-
initialisePropertyConverters
public Map<String,Map<String,BiFunction<Object,String,Collection<String>>>> initialisePropertyConverters(Map<String,Map<String,List<String>>> converters)
-
initialiseDataConverters
public Map<String,Map<String,TriFunction<Object,String,String,Collection<org.apache.commons.lang3.tuple.Pair<String,Collection<String>>>>>> initialiseDataConverters(Map<String,Map<String,List<String>>> converters)
-
initialise
public Map<String,BiFunction<Object,String,Collection<String>>> initialise(Map<String,List<String>> m)
-
initialise2
public Map<String,TriFunction<Object,String,String,Collection<org.apache.commons.lang3.tuple.Pair<String,Collection<String>>>>> initialise2(Map<String,List<String>> m)
-
-