Skip to content
Snippets Groups Projects
Commit 3a70965d authored by Ashwin's avatar Ashwin
Browse files

Formatting to limit line length to 100

parent 351da169
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,10 @@ var glog = x.Log("loader_main") ...@@ -36,8 +36,10 @@ var glog = x.Log("loader_main")
var rdfGzips = flag.String("rdfgzips", "", var rdfGzips = flag.String("rdfgzips", "",
"Comma separated gzip files containing RDF data") "Comma separated gzip files containing RDF data")
var instanceIdx = flag.Uint64("instanceIdx", 0, "Only pick entities, where Fingerprint % numInstance == instanceIdx.") var instanceIdx = flag.Uint64("instanceIdx", 0,
var numInstances = flag.Uint64("numInstances", 1, "Total number of instances among which uid assigning is shared") "Only pick entities, where Fingerprint % numInstance == instanceIdx.")
var numInstances = flag.Uint64("numInstances", 1,
"Total number of instances among which uid assigning is shared")
var postingDir = flag.String("postings", "", "Directory to store posting lists") var postingDir = flag.String("postings", "", "Directory to store posting lists")
var uidDir = flag.String("uidDir", "", "Directory to read UID posting lists") var uidDir = flag.String("uidDir", "", "Directory to read UID posting lists")
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
......
...@@ -20,8 +20,10 @@ var glog = x.Log("uidassigner_main") ...@@ -20,8 +20,10 @@ var glog = x.Log("uidassigner_main")
var rdfGzips = flag.String("rdfgzips", "", var rdfGzips = flag.String("rdfgzips", "",
"Comma separated gzip files containing RDF data") "Comma separated gzip files containing RDF data")
var instanceIdx = flag.Uint64("instanceIdx", 0, "Only pick entities, where Fingerprint % numInstance == instanceIdx.") var instanceIdx = flag.Uint64("instanceIdx", 0,
var numInstances = flag.Uint64("numInstances", 1, "Total number of instances among which uid assigning is shared") "Only pick entities, where Fingerprint % numInstance == instanceIdx.")
var numInstances = flag.Uint64("numInstances", 1,
"Total number of instances among which uid assigning is shared")
var uidDir = flag.String("uidpostings", "", "Directory to store xid to uid posting lists") var uidDir = flag.String("uidpostings", "", "Directory to store xid to uid posting lists")
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file") var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
var numcpu = flag.Int("numCpu", runtime.NumCPU(), "Number of cores to be used by the process") var numcpu = flag.Int("numCpu", runtime.NumCPU(), "Number of cores to be used by the process")
...@@ -49,7 +51,7 @@ func main() { ...@@ -49,7 +51,7 @@ func main() {
glog.WithField("instanceIdx", *instanceIdx). glog.WithField("instanceIdx", *instanceIdx).
WithField("numInstances", *numInstances). WithField("numInstances", *numInstances).
Info("Only those XIDs which satisfy FP(xid) % numInstance == instanceIdx will be given UID") Info("Only those XIDs with FP(xid) % numInstance == instanceIdx will be given UID")
if len(*rdfGzips) == 0 { if len(*rdfGzips) == 0 {
glog.Fatal("No RDF GZIP files specified") glog.Fatal("No RDF GZIP files specified")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment