Browse Source

Changes to adapt to lucene

ailton 8 years ago
parent
commit
d4803093ac

+ 2 - 2
src/graph/extractor/graph/builder/STJBuilder.java

@@ -117,7 +117,7 @@ public class STJBuilder extends BuilderFactory{
117 117
 
118 118
 				switch (entity.getType()) {
119 119
 				case TYPES.JUDGE:
120
-					proc.addJudge(new Judge(entity.getName()));
120
+					proc.setJudge(new Judge(entity.getName()));
121 121
 					break;
122 122
 				case TYPES.OTHERINFO:
123 123
 					proc.addOtherInfo(entity.getName());
@@ -160,7 +160,7 @@ public class STJBuilder extends BuilderFactory{
160 160
 				Entity entity= this.getEntity(line);
161 161
 				switch (entity.getType()) {
162 162
 				case TYPES.JUDGE:
163
-					proc.addJudge(new Judge(entity.getName()));
163
+					proc.setJudge(new Judge(entity.getName()));
164 164
 					break;
165 165
 				case TYPES.OTHERINFO:
166 166
 					proc.addOtherInfo(entity.getName());

+ 1 - 1
src/graph/output/database/DatabaseOutput.java

@@ -3,7 +3,7 @@ package graph.output.database;
3 3
 import java.util.List;
4 4
 import java.util.Random;
5 5
 
6
-import dao.DAOGeneralProcess;
6
+import dao.lucene.relation.DAOGeneralProcess;
7 7
 import entity.DOProcess;
8 8
 import graph.output.OutPutFactory;
9 9
 

+ 1 - 1
src/graph/output/screen/ScreenOutput.java

@@ -43,7 +43,7 @@ public class ScreenOutput extends OutPutFactory{
43 43
 	public void insertToOutPut(DOProcess process) {
44 44
 
45 45
 
46
-		if(process.getJudges().size() > 0)
46
+		if(process.getJudge() != null)
47 47
 		{
48 48
 
49 49
 			Judge judge = process.getJudge();