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.IndexOutput
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexOutput
public void seek(long pos) throws java.io.IOException
seek
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public long length() throws java.io.IOException
length
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
writeByte
in class org.apache.lucene.store.DataOutput
java.io.IOException
public void writeBytes(byte[] b, int offset, int length) throws java.io.IOException
writeBytes
in class org.apache.lucene.store.DataOutput
java.io.IOException
protected long getDelay(boolean closing)
public void setLength(long length) throws java.io.IOException
setLength
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void copyBytes(org.apache.lucene.store.DataInput input, long numBytes) throws java.io.IOException
copyBytes
in class org.apache.lucene.store.DataOutput
java.io.IOException
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.