Skip to content

Commit f791bc5

Browse files
added --no-data flag
1 parent 7d6773c commit f791bc5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/java/com/datastax/cdm/CDMArgs.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ public class CDMArgs {
1919
@Parameter(names = "--rf", description = "Replication Factor")
2020
public Integer rf = 1;
2121

22+
@Parameter(names = {"--no-data", "--nodata"}, description = "Only set up schema")
23+
public Boolean noData = false; // setting this is schema only
24+
2225
}

src/main/java/com/datastax/cdm/CassandraDatasetManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ void install(String name) throws IOException, InterruptedException, GitAPIExcept
267267
}
268268
}
269269

270+
// skip the data load
271+
if(args.noData) {
272+
System.out.println("Not loading up data, skipping");
273+
cluster.close();
274+
return;
275+
}
270276
System.out.println("Loading data");
271277

272278
this.session = session;

0 commit comments

Comments
 (0)