Пример #1
0
 CompactStats(String type, ProcessContext context, RecordDef definition) {
   if (type == null) throw new IllegalArgumentException("null type");
   if (context == null) throw new IllegalArgumentException("null context");
   if (definition == null) throw new IllegalArgumentException("null definition");
   this.type = type;
   this.definition = definition;
   coding = context.getCoding();
   file = context.file("compact", true, definition);
   if (context.isClean()) file.delete();
 }
Пример #2
0
 private static RecordDef definition(ProcessContext context, SubRecordDef subRecDef) {
   RecordDef def = context.getRecordDef();
   if (def == null) throw new IllegalArgumentException("no record definition");
   if (subRecDef != null) def = def.asSubRecord(subRecDef);
   return def.asBasis();
 }