File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/java/ldbc/snb/datagen Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,12 @@ public static synchronized void init (Configuration conf) {
62
62
DatagenParams .readConf (conf );
63
63
Dictionaries .loadDictionaries (conf );
64
64
SN .initialize ();
65
- Person .personSimilarity = new GeoDistanceSimilarity ();
65
+ try {
66
+ Person .personSimilarity = (Person .PersonSimilarity ) Class .forName (conf .get ("ldbc.snb.datagen.generator.person.similarity" )).newInstance ();
67
+ } catch (Exception e ) {
68
+ System .err .println ("Error while loading person similarity class" );
69
+ System .err .println (e .getMessage ());
70
+ }
66
71
initialized = true ;
67
72
}
68
73
}
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public static Configuration initialize() {
50
50
conf .set ("ldbc.snb.datagen.serializer.dateFormatter" , "ldbc.snb.datagen.serializer.formatter.StringDateFormatter" );
51
51
conf .set ("ldbc.snb.datagen.serializer.formatter.StringDateFormatter.dateTimeFormat" , "yyyy-MM-dd'T'HH:mm:ss.SSSZ" );
52
52
conf .set ("ldbc.snb.datagen.serializer.formatter.StringDateFormatter.dateFormat" , "yyyy-MM-dd" );
53
+ conf .set ("ldbc.snb.datagen.generator.person.similarity" , "ldbc.snb.datagen.objects.similarity.GeoDistanceSimilarity" );
53
54
54
55
/** Loading predefined Scale Factors **/
55
56
You can’t perform that action at this time.
0 commit comments