}
@Override
protected void map(Text key, NullWritable text, Context context) throws IOException, InterruptedException {
int docId = Integer.valueOf(key.toString());
DocumentStoredFieldVisitor storedFieldVisitor = l2sConf.getStoredFieldVisitor();
segmentReader.document(docId, storedFieldVisitor);
Document document = storedFieldVisitor.getDocument();
List<String> fields = l2sConf.getFields();
Text theKey = new Text(Strings.nullToEmpty(document.get(l2sConf.getIdField())));
Text theValue = new Text();
LuceneSeqFileHelper.populateValues(document, theValue, fields);
//if they are both empty, don't write