while (it.hasNext()) {
File xmlDocument = it.next();
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Starting to read XML document: " + xmlDocument.getAbsolutePath());
}
parser.parseElements(xmlDocument, writer, fta, tupleIndex);
}
}
} else {
throw new HyracksDataException("Invalid directory parameter (" + nodeId + ":"
+ collectionDirectory.getAbsolutePath() + ") passed to collection.");