@Override public void commit() throws IOException { File chunksFile = new File( dir, CHUNKS_FILENAME ); BufferedOutputStream os = new BufferedOutputStream( new FileOutputStream( chunksFile, true ) ); Writer w = new OutputStreamWriter( os, CHUNKS_FILE_ENCODING ); try { for ( String filename : newChunks ) { w.write( filename + "\n" ); } w.flush(); } finally { IOUtil.close( w ); IOUtil.close( os ); } super.commit(); }
Properties localProperties = target.getProperties(); Date localTimestamp = null; Properties remoteProperties = target.setProperties( source ); target.addIndexChunk( source, filename ); target.setProperties( source ); try timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".gz" ); if ( source instanceof LocalIndexCacheFetcher ) target.addIndexChunk( source, filename ); timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".zip" );
Properties localProperties = target.getProperties(); Date localTimestamp = null; Properties remoteProperties = target.setProperties( source ); target.addIndexChunk( source, filename ); target.setProperties( source ); try timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".gz" ); if ( source instanceof LocalIndexCacheFetcher ) target.addIndexChunk( source, filename ); timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".zip" );
Properties localProperties = target.getProperties(); Date localTimestamp = null; Properties remoteProperties = target.setProperties( source ); target.addIndexChunk( source, filename ); target.setProperties( source ); try timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".gz" ); if ( source instanceof LocalIndexCacheFetcher ) target.addIndexChunk( source, filename ); timestamp = target.setIndexFile( source, IndexingContext.INDEX_FILE_PREFIX + ".zip" );
@Override public void commit() throws IOException { File chunksFile = new File( dir, CHUNKS_FILENAME ); try ( BufferedOutputStream os = new BufferedOutputStream( new FileOutputStream( chunksFile, true ) ); // Writer w = new OutputStreamWriter( os, CHUNKS_FILE_ENCODING ) ) { for ( String filename : newChunks ) { w.write( filename + "\n" ); } w.flush(); } super.commit(); }
@Override public void commit() throws IOException { File chunksFile = new File( dir, CHUNKS_FILENAME ); try ( BufferedOutputStream os = new BufferedOutputStream( new FileOutputStream( chunksFile, true ) ); // Writer w = new OutputStreamWriter( os, CHUNKS_FILE_ENCODING ) ) { for ( String filename : newChunks ) { w.write( filename + "\n" ); } w.flush(); } super.commit(); }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
public void commit() throws IOException { storeProperties(); } }
public void commit() throws IOException { storeProperties(); } }
public void commit() throws IOException { storeProperties(); } }