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