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) |
long |
getChecksum() |
protected long |
getDelay(boolean closing) |
long |
getFilePointer() |
static int |
mBitsToBytes(int mbits) |
ThrottledIndexOutput |
newFromDelegate(IndexOutput output) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int length) |
toStringwriteBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong, writeZInt, writeZLongpublic 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 close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexOutputIOExceptionpublic long getFilePointer()
getFilePointer in class IndexOutputpublic 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 copyBytes(DataInput input, long numBytes) throws IOException
copyBytes in class DataOutputIOExceptionpublic long getChecksum()
throws IOException
getChecksum in class IndexOutputIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.