improve TODO comment

This commit is contained in:
Shay Banon 2013-03-15 21:46:02 +01:00
parent 0e3b88be35
commit d5da8f22ff
1 changed files with 4 additions and 4 deletions

View File

@ -18,11 +18,11 @@
*/
package org.apache.lucene.store;
import org.apache.lucene.store.IOContext.Context;
import java.io.IOException;
import java.util.Collection;
import org.apache.lucene.store.IOContext.Context;
public final class RateLimitedFSDirectory extends Directory {
private final FSDirectory delegate;
@ -160,7 +160,7 @@ public final class RateLimitedFSDirectory extends Directory {
private final StoreRateLimiting.Listener rateListener;
RateLimitedIndexOutput(final RateLimiter rateLimiter, final StoreRateLimiting.Listener rateListener, final IndexOutput delegate) {
// TODO should we make buffer size configurable
// TODO if Lucene exposed in BufferedIndexOutput#getBufferSize, we could initialize it if the delegate is buffered
if (delegate instanceof BufferedIndexOutput) {
bufferedDelegate = (BufferedIndexOutput) delegate;
this.delegate = delegate;