Class TypesRecordProcessor
java.lang.Object
org.openprovenance.prov.template.types.TypesRecordProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionTypesRecordProcessor(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
Modifier and TypeMethodDescriptioncomputeFeatureVector(Map<String, Collection<Integer>> types) voidcomputeLevels(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) computeTypesPerNode(int bound) constructType(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap, String k) booleanfilterTypeRecord(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap) Collection<int[]> filterTypes(Collection<int[]> types, ProxyClientInterface clientBuilder, TMap tMap) Map<String, Map<String, TriFunction<Object, String, String, Collection<org.apache.commons.lang3.tuple.Pair<String, Collection<String>>>>>> intgetStructuredDescriptors(Integer k, Map<String, Map<String, Collection<String>>> idata) getStructuredDescriptors0(Integer k, Map<String, Map<String, Collection<String>>> idata) getStructuredDescriptorsN(Integer k, Map<String, Map<String, Collection<String>>> idata) initialise(Map<String, List<String>> m) Map<String, TriFunction<Object, String, String, Collection<org.apache.commons.lang3.tuple.Pair<String, Collection<String>>>>> initialise2(Map<String, List<String>> m) Map<String, Map<String, TriFunction<Object, String, String, Collection<org.apache.commons.lang3.tuple.Pair<String, Collection<String>>>>>> level0(Map<QualifiedName, Set<String>> knownTypeMap, Map<QualifiedName, Set<String>> unknownTypeMap, Map<QualifiedName, Map<String, Collection<String>>> idata) levelN(HashMap<String, FileBuilder> registry, HashMap<String, Object> clientRegistry, ProxyManagement pm, Map<String, Integer> mapLevelN, int levelNext, Map<String, Integer> mapLevel0) static StringmergeMapsOfLists(Map<ALPHA, List<BETA>> map1, Map<ALPHA, List<BETA>> map2) mergeMapsOfSets(Map<ALPHA, Set<BETA>> map1, Map<ALPHA, Set<BETA>> map2) newDescriptorAtom(Integer k, List<String> value, Map<String, Collection<String>> idata) newDescriptorTree(Integer i, Long count, String s, List<Descriptor> structuredDescriptors) void<ALPHA,BETA>
Map<BETA, ALPHA>
-
Constructor Details
-
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 Details
-
process
-
levelN
-
computeTypesPerNode
-
computeFeatureVector
-
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
-
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) -
getDescriptor0
-
getIdata
-
localName
-
filterTypes
public Collection<int[]> filterTypes(Collection<int[]> types, ProxyClientInterface clientBuilder, TMap tMap) -
filterTypeRecord
-
constructType
public List<Integer> constructType(int[] typeRecord, ProxyClientInterface clientBuilder, TMap tMap, String k) -
swap
-
level0
public Map<String,Integer> level0(Map<QualifiedName, Set<String>> knownTypeMap, Map<QualifiedName, Set<String>> unknownTypeMap, Map<QualifiedName, Map<String, Collection<String>>> idata) -
getResult
-
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
-
mergeMapsOfLists
-
getLevelNumber
public int getLevelNumber() -
getPropertyConverters
-
getIDataConverters
public Map<String,Map<String, getIDataConverters()TriFunction<Object, String, String, Collection<org.apache.commons.lang3.tuple.Pair<String, Collection<String>>>>>> -
initialisePropertyConverters
-
initialiseDataConverters
-
initialise
-
initialise2
public Map<String,TriFunction<Object, initialise2String, String, Collection<org.apache.commons.lang3.tuple.Pair<String, Collection<String>>>>> (Map<String, List<String>> m)
-