Commit 5dcd67d 1 parent 54ee740 commit 5dcd67d Copy full SHA for 5dcd67d
File tree 2 files changed +13
-2
lines changed
JeMPI_Configuration/src/main/scala/configuration
JeMPI_LibMPI/src/main/java/org/jembi/jempi/libmpi/dgraph
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ private object CustomDgraphIndexes {
25
25
| }
26
26
|
27
27
| public static Boolean shouldUpdateLinkingIndexes() {
28
- | return true ;
28
+ | return ${get_should_update_linking_indexes()} ;
29
29
| }
30
30
| """ .stripMargin);
31
31
@@ -42,6 +42,17 @@ private object CustomDgraphIndexes {
42
42
writer.close()
43
43
44
44
45
+ def get_should_update_linking_indexes (): String = {
46
+ if (config.rules.link.isDefined){
47
+ val linkRules = config.rules.link.get
48
+ if (linkRules.deterministic.isDefined && ! linkRules.probabilistic.isDefined){
49
+ return " true"
50
+ }
51
+ }
52
+
53
+ return " false"
54
+ }
55
+
45
56
def get_default_indexes (): Unit = {
46
57
write_out_indexs_fields(" LOAD_DEFAULT_INDEXES" , write_field_with_index)
47
58
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ private CustomDgraphIndexes() {
7
7
}
8
8
9
9
public static Boolean shouldUpdateLinkingIndexes () {
10
- return true ;
10
+ return false ;
11
11
}
12
12
13
13
static final String LOAD_DEFAULT_INDEXES =
You can’t perform that action at this time.
0 commit comments