public class ThrottledIndexOutput
extends org.apache.lucene.store.IndexOutput
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MIN_WRITTEN_BYTES |
| Constructor and Description |
|---|
ThrottledIndexOutput(int bytesPerSecond,
long delayInMillis,
org.apache.lucene.store.IndexOutput delegate) |
ThrottledIndexOutput(int bytesPerSecond,
long delays,
int minBytesWritten,
org.apache.lucene.store.IndexOutput delegate) |
ThrottledIndexOutput(int bytesPerSecond,
long flushDelayMillis,
long closeDelayMillis,
long seekDelayMillis,
long minBytesWritten,
org.apache.lucene.store.IndexOutput delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyBytes(org.apache.lucene.store.DataInput input,
long numBytes) |
void |
flush() |
protected long |
getDelay(boolean closing) |
long |
getFilePointer() |
long |
length() |
static int |
mBitsToBytes(int mbits) |
ThrottledIndexOutput |
newFromDelegate(org.apache.lucene.store.IndexOutput output) |
void |
seek(long pos) |
void |
setLength(long length) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int length) |
public static final int DEFAULT_MIN_WRITTEN_BYTES
public ThrottledIndexOutput(int bytesPerSecond,
long delayInMillis,
org.apache.lucene.store.IndexOutput delegate)
public ThrottledIndexOutput(int bytesPerSecond,
long delays,
int minBytesWritten,
org.apache.lucene.store.IndexOutput delegate)
public ThrottledIndexOutput(int bytesPerSecond,
long flushDelayMillis,
long closeDelayMillis,
long seekDelayMillis,
long minBytesWritten,
org.apache.lucene.store.IndexOutput delegate)
public ThrottledIndexOutput newFromDelegate(org.apache.lucene.store.IndexOutput output)
public static final int mBitsToBytes(int mbits)
public void flush()
throws IOException
flush in class org.apache.lucene.store.IndexOutputIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexOutputIOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic void seek(long pos)
throws IOException
seek in class org.apache.lucene.store.IndexOutputIOExceptionpublic long length()
throws IOException
length in class org.apache.lucene.store.IndexOutputIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class org.apache.lucene.store.DataOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
writeBytes in class org.apache.lucene.store.DataOutputIOExceptionprotected long getDelay(boolean closing)
public void setLength(long length)
throws IOException
setLength in class org.apache.lucene.store.IndexOutputIOExceptionpublic void copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
throws IOException
copyBytes in class org.apache.lucene.store.DataOutputIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.