Path inputPath = dd.getFilename();
File workingParserFile = File.createTempFile("textdesc", "typetree", null);
File workingSchemaFile = File.createTempFile("textdesc", "schema", null);
ls.inferRecordFormat(fs, inputPath, localFS, new Path(workingSchemaFile.getCanonicalPath()), new Path(workingParserFile.getCanonicalPath()), null, null, false, MAX_LINES);
this.schema = Schema.parse(workingSchemaFile);
DataInputStream in = new DataInputStream(localFS.open(new Path(workingParserFile.getCanonicalPath())));
try {
this.typeTree = InferredType.readType(in);