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 java.io.IOException
flush in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic void seek(long pos)
throws java.io.IOException
seek in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic long length()
throws java.io.IOException
length in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void writeByte(byte b)
throws java.io.IOException
writeByte in class org.apache.lucene.store.DataOutputjava.io.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws java.io.IOException
writeBytes in class org.apache.lucene.store.DataOutputjava.io.IOExceptionprotected long getDelay(boolean closing)
public void setLength(long length)
throws java.io.IOException
setLength in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
throws java.io.IOException
copyBytes in class org.apache.lucene.store.DataOutputjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.