return 1;
}
return 0;
}
showTablesDesc showTbls = work.getShowTblsDesc();
if (showTbls != null) {
// get the tables for the desired pattenn - populate the output stream
List<String> tbls = null;
if (showTbls.getPattern() != null)
{
LOG.info("pattern: " + showTbls.getPattern());
tbls = db.getTablesByPattern(showTbls.getPattern());
LOG.info("results : " + tbls.size());
}
else
tbls = db.getAllTables();
// write the results in the file
try {
DataOutput outStream = (DataOutput)fs.create(showTbls.getResFile());
SortedSet<String> sortedTbls = new TreeSet<String>(tbls);
Iterator<String> iterTbls = sortedTbls.iterator();
boolean firstCol = true;
while (iterTbls.hasNext())
{