C# Class Lucene.Net.Util.ThrottledIndexOutput

Intentionally slow IndexOutput for testing.
Inheritance: Lucene.Net.Store.IndexOutput
显示文件 Open project: paulirwin/lucene.net

Public Methods

Method Description
CopyBytes ( DataInput input, long numBytes ) : void
Dispose ( ) : void
Flush ( ) : void
MBitsToBytes ( int mbits ) : int
NewFromDelegate ( IndexOutput output ) : ThrottledIndexOutput
Seek ( long pos ) : void
ThrottledIndexOutput ( int bytesPerSecond, long delayInMillis, IndexOutput @delegate ) : System
ThrottledIndexOutput ( int bytesPerSecond, long delays, int minBytesWritten, IndexOutput @delegate ) : System
ThrottledIndexOutput ( int bytesPerSecond, long flushDelayMillis, long closeDelayMillis, long seekDelayMillis, long minBytesWritten, IndexOutput @delegate ) : System
WriteByte ( byte b ) : void
WriteBytes ( byte b, int offset, int length ) : void

Protected Methods

Method Description
GetDelay ( bool closing ) : long

Private Methods

Method Description
Sleep ( long ms ) : void

Method Details

CopyBytes() public method

public CopyBytes ( DataInput input, long numBytes ) : void
input DataInput
numBytes long
return void

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

GetDelay() protected method

protected GetDelay ( bool closing ) : long
closing bool
return long

MBitsToBytes() public static method

public static MBitsToBytes ( int mbits ) : int
mbits int
return int

NewFromDelegate() public method

public NewFromDelegate ( IndexOutput output ) : ThrottledIndexOutput
output IndexOutput
return ThrottledIndexOutput

Seek() public method

public Seek ( long pos ) : void
pos long
return void

ThrottledIndexOutput() public method

public ThrottledIndexOutput ( int bytesPerSecond, long delayInMillis, IndexOutput @delegate ) : System
bytesPerSecond int
delayInMillis long
@delegate IndexOutput
return System

ThrottledIndexOutput() public method

public ThrottledIndexOutput ( int bytesPerSecond, long delays, int minBytesWritten, IndexOutput @delegate ) : System
bytesPerSecond int
delays long
minBytesWritten int
@delegate IndexOutput
return System

ThrottledIndexOutput() public method

public ThrottledIndexOutput ( int bytesPerSecond, long flushDelayMillis, long closeDelayMillis, long seekDelayMillis, long minBytesWritten, IndexOutput @delegate ) : System
bytesPerSecond int
flushDelayMillis long
closeDelayMillis long
seekDelayMillis long
minBytesWritten long
@delegate IndexOutput
return System

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void

WriteBytes() public method

public WriteBytes ( byte b, int offset, int length ) : void
b byte
offset int
length int
return void