124125126127128129130131132133134
{ out = getSpillStream(); } catch (IOException e) { throw new AtlasException(e); } // Sort the tuples // Collections.sort() will copy to an array, sort, and then copy back. Avoid that // extra copy by copying to an array and using Arrays.sort(). Also it lets us use
217218219220221222223224225226227
for (Iterator<E> it : inputs) { Iter.close(it); } throw new AtlasException("Cannot find one of the spill files", e); } } SpillSortIterator<E> ssi = new SpillSortIterator<E>(inputs, comparator); registerCloseableIterator(ssi);
134135136137138139140
public static PeekReader open(String filename) { try { InputStream in = new FileInputStream(filename) ; return makeUTF8(in) ; } catch (FileNotFoundException ex){ throw new AtlasException("File not found: "+filename) ; } }
68697071727374
static public InputStream openFile(String filename) { try { return openFileEx(filename) ; } catch (Exception ex) { throw new AtlasException(ex) ; } }
145146147148149150151
try { resource.close(); } catch (IOException ex) { exception(ex) ; } } public static void exception(IOException ex) { throw new AtlasException(ex) ; }
150151152153154155156
throw new AtlasException(ex) ; } public static void exception(String msg, IOException ex) { throw new AtlasException(msg, ex) ; }
189190191192193194
bb.flip() ; out.send(bb) ; } private static void exception(IOException ex) { throw new AtlasException(ex) ; }
127128129130131132
write(ch) ; column += 1 ; } private void write(char ch) { try { out.write(ch) ; } catch (IOException ex) { throw new AtlasException(ex) ; } }
130131132133134135
private void write(char ch) { try { out.write(ch) ; } catch (IOException ex) { throw new AtlasException(ex) ; } } private void write(String s) { try { out.write(s) ; } catch (IOException ex) { throw new AtlasException(ex) ; } }
103104105106107108109110111112113
dftKeyLength = SystemTDB.LenIndexQuadRecord ; dftValueLength = 0 ; } else { throw new AtlasException("Index name: "+indexName) ; } ColumnMap colMap = new ColumnMap(primaryOrder, indexName) ;