C# Class Lucene.Net.Util._TestUtil

ファイルを表示 Open project: synhershko/lucene.net

Public Methods

Method Description
ArrayToString ( System array ) : System.String

Use only for testing.

ArrayToString ( int array ) : System.String

Use only for testing.

CheckIndex ( Lucene.Net.Store.Directory dir ) : bool

This runs the CheckIndex tool on the index in. If any issues are hit, a RuntimeException is thrown; else, true is returned.

GetRandomSocketPort ( ) : int
GetTempDir ( System desc ) : DirectoryInfo

Returns temp dir, containing String arg in its name; does not create the directory.

RmDir ( System dir ) : void
SyncConcurrentMerges ( Lucene.Net.Index.IndexWriter writer ) : void
SyncConcurrentMerges ( Lucene.Net.Index.MergeScheduler ms ) : void

Method Details

ArrayToString() public static method

Use only for testing.
public static ArrayToString ( System array ) : System.String
array System
return System.String

ArrayToString() public static method

Use only for testing.
public static ArrayToString ( int array ) : System.String
array int
return System.String

CheckIndex() public static method

This runs the CheckIndex tool on the index in. If any issues are hit, a RuntimeException is thrown; else, true is returned.
public static CheckIndex ( Lucene.Net.Store.Directory dir ) : bool
dir Lucene.Net.Store.Directory
return bool

GetRandomSocketPort() public static method

public static GetRandomSocketPort ( ) : int
return int

GetTempDir() public static method

Returns temp dir, containing String arg in its name; does not create the directory.
public static GetTempDir ( System desc ) : DirectoryInfo
desc System
return System.IO.DirectoryInfo

RmDir() public static method

public static RmDir ( System dir ) : void
dir System
return void

SyncConcurrentMerges() public static method

public static SyncConcurrentMerges ( Lucene.Net.Index.IndexWriter writer ) : void
writer Lucene.Net.Index.IndexWriter
return void

SyncConcurrentMerges() public static method

public static SyncConcurrentMerges ( Lucene.Net.Index.MergeScheduler ms ) : void
ms Lucene.Net.Index.MergeScheduler
return void