C# Class Lucene.Net.Util.ThrottledIndexOutput

Intentionally slow IndexOutput for testing.
Inheritance: Lucene.Net.Store.IndexOutput
Afficher le fichier Open project: paulirwin/lucene.net

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
GetDelay ( bool closing ) : long

Private Methods

Méthode Description
Sleep ( long ms ) : void

Method Details

CopyBytes() public méthode

public CopyBytes ( DataInput input, long numBytes ) : void
input DataInput
numBytes long
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetDelay() protected méthode

protected GetDelay ( bool closing ) : long
closing bool
Résultat long

MBitsToBytes() public static méthode

public static MBitsToBytes ( int mbits ) : int
mbits int
Résultat int

NewFromDelegate() public méthode

public NewFromDelegate ( IndexOutput output ) : ThrottledIndexOutput
output IndexOutput
Résultat ThrottledIndexOutput

Seek() public méthode

public Seek ( long pos ) : void
pos long
Résultat void

ThrottledIndexOutput() public méthode

public ThrottledIndexOutput ( int bytesPerSecond, long delayInMillis, IndexOutput @delegate ) : System
bytesPerSecond int
delayInMillis long
@delegate IndexOutput
Résultat System

ThrottledIndexOutput() public méthode

public ThrottledIndexOutput ( int bytesPerSecond, long delays, int minBytesWritten, IndexOutput @delegate ) : System
bytesPerSecond int
delays long
minBytesWritten int
@delegate IndexOutput
Résultat System

ThrottledIndexOutput() public méthode

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
Résultat System

WriteByte() public méthode

public WriteByte ( byte b ) : void
b byte
Résultat void

WriteBytes() public méthode

public WriteBytes ( byte b, int offset, int length ) : void
b byte
offset int
length int
Résultat void