public int write( IndexingContext context, IndexReader indexReader, List<Integer> docIndexes ) throws IOException { writeHeader( context ); int n = writeDocuments( indexReader, docIndexes ); writeGroupFields(); close(); return n; }
public void commit() throws IOException { storeProperties(); } }
public Date getTimestamp() { Properties properties = getProperties(); if ( properties == null ) { return null; } Date timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_TIMESTAMP ); if ( timestamp == null ) { timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_LEGACY_TIMESTAMP ); } return timestamp; }
public Date setIndexFile( ResourceFetcher source, String filename ) throws IOException { cleanCacheDirectory( dir ); result.setFullUpdate( true ); File target = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), target ); return null; }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
@Override public List<String> getChunks() throws IOException { return LocalCacheIndexAdaptor.this.getChunks(); } };
public WagonFetcher getWagonResourceFetcher( final TransferListener listener ) throws ComponentLookupException { return getWagonResourceFetcher( listener, null, null ); }
public int write( IndexingContext context, IndexReader indexReader, List<Integer> docIndexes ) throws IOException { writeHeader( context ); int n = writeDocuments( indexReader, docIndexes ); writeGroupFields(); close(); return n; }
public Date setIndexFile( ResourceFetcher source, String filename ) throws IOException { cleanCacheDirectory( dir ); result.setFullUpdate( true ); File target = new File( dir, filename ); FileUtils.copyStreamToFile( new RawInputStreamFacade( source.retrieve( filename ) ), target ); return null; }
public Date getTimestamp() { Properties properties = getProperties(); if ( properties == null ) { return null; } Date timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_TIMESTAMP ); if ( timestamp == null ) { timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_LEGACY_TIMESTAMP ); } return timestamp; }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
public void commit() throws IOException { storeProperties(); } }
@Override public List<String> getChunks() throws IOException { return LocalCacheIndexAdaptor.this.getChunks(); } };
public WagonFetcher getWagonResourceFetcher( final TransferListener listener ) throws ComponentLookupException { return getWagonResourceFetcher( listener, null, null ); }
public int write( IndexingContext context, IndexReader indexReader, List<Integer> docIndexes ) throws IOException { writeHeader( context ); int n = writeDocuments( indexReader, docIndexes ); writeGroupFields(); close(); return n; }
public Date getTimestamp() { Properties properties = getProperties(); if ( properties == null ) { return null; } Date timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_TIMESTAMP ); if ( timestamp == null ) { timestamp = DefaultIndexUpdater.this.getTimestamp( properties, IndexingContext.INDEX_LEGACY_TIMESTAMP ); } return timestamp; }
public void commit() throws IOException { super.commit(); updateRequest.getIndexingContext().commit(); }
public void commit() throws IOException { storeProperties(); } }
@Override public List<String> getChunks() throws IOException { return LocalCacheIndexAdaptor.this.getChunks(); } };
public WagonFetcher getWagonResourceFetcher( final TransferListener listener ) throws ComponentLookupException { return getWagonResourceFetcher( listener, null, null ); }