Class CPlanMemoTable
java.lang.Object
org.apache.sysds.hops.codegen.template.CPlanMemoTable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Hop hop, CPlanMemoTable.MemoTableEntry me) voidadd(Hop hop, TemplateBase.TemplateType type) voidadd(Hop hop, TemplateBase.TemplateType type, long in1) voidadd(Hop hop, TemplateBase.TemplateType type, long in1, long in2) voidadd(Hop hop, TemplateBase.TemplateType type, long in1, long in2, long in3) voidvoidbooleancontains(long hopID) booleancontains(long hopID, boolean checkClose, TemplateBase.TemplateType... type) booleancontains(long hopID, CPlanMemoTable.MemoTableEntry me, TemplateBase.TemplateType type) booleancontains(long hopID, TemplateBase.TemplateType type) booleancontainsHop(Hop hop) booleancontainsNotIn(long hopID, Collection<TemplateBase.TemplateType> types, boolean checkChildRefs) booleancontainsTopLevel(long hopID) intcountEntries(long hopID) intcountEntries(long hopID, TemplateBase.TemplateType type) get(long hopID) get(long hopID, TemplateBase.TemplateType type) long[]getAllRefs(long hopID) getBest(long hopID) getBest(long hopID, TemplateBase.TemplateType pref) getBest(long hopID, TemplateBase.TemplateType pref1, TemplateBase.TemplateType pref2) getDistinct(long hopID) getDistinctTemplates(long hopID) getDistinctTemplateTypes(long hopID, int refAt) getDistinctTemplateTypes(long hopID, int refAt, boolean exclInvalOuter) getPlans()booleanhasOnlyExactMatches(long hopID, TemplateBase.TemplateType type1, TemplateBase.TemplateType type2) voidpruneRedundant(long hopID, boolean pruneDominated, InterestingPoint[] matPoints) voidpruneSuboptimal(ArrayList<Hop> roots) voidremove(Hop hop, Set<CPlanMemoTable.MemoTableEntry> excludeList) voidremove(Hop hop, TemplateBase.TemplateType type) voidremoveAllRefTo(long hopID) voidremoveAllRefTo(long hopID, TemplateBase.TemplateType type) voidsetDistinct(long hopID, List<CPlanMemoTable.MemoTableEntry> plans) intsize()toString()
-
Constructor Details
-
CPlanMemoTable
public CPlanMemoTable()
-
-
Method Details
-
getPlans
-
getPlansExcludeListed
-
getHopRefs
-
addHop
-
containsHop
-
contains
public boolean contains(long hopID) -
contains
-
contains
public boolean contains(long hopID, CPlanMemoTable.MemoTableEntry me, TemplateBase.TemplateType type) -
contains
-
containsNotIn
public boolean containsNotIn(long hopID, Collection<TemplateBase.TemplateType> types, boolean checkChildRefs) -
hasOnlyExactMatches
public boolean hasOnlyExactMatches(long hopID, TemplateBase.TemplateType type1, TemplateBase.TemplateType type2) -
countEntries
public int countEntries(long hopID) -
countEntries
-
containsTopLevel
public boolean containsTopLevel(long hopID) -
add
-
add
-
add
-
add
-
add
-
addAll
-
remove
-
remove
-
removeAllRefTo
public void removeAllRefTo(long hopID) -
removeAllRefTo
-
setDistinct
-
pruneRedundant
-
pruneSuboptimal
-
get
-
get
-
getDistinct
-
getDistinctTemplates
-
getDistinctTemplateTypes
-
getDistinctTemplateTypes
public List<TemplateBase.TemplateType> getDistinctTemplateTypes(long hopID, int refAt, boolean exclInvalOuter) -
getBest
-
getBest
-
getBest
public CPlanMemoTable.MemoTableEntry getBest(long hopID, TemplateBase.TemplateType pref1, TemplateBase.TemplateType pref2) -
getAllRefs
public long[] getAllRefs(long hopID) -
size
public int size() -
toString
-