C# 클래스 Lucene.Net.Index.IndexSplitter

Command-line tool that enables listing segments in an index, copying specific segments to another index, and deleting segments from an index.

This tool does file-level copying of segments files. This means it's unable to split apart a single segment into multiple segments. For example if your index is a single segment, this tool won't help. Also, it does basic file-level copying (using simple FileInfo) so it will not work with non FSDirectory Directory impls.

@lucene.experimental You can easily accidentally remove segments from your index so be careful!
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
infos SegmentInfos

공개 메소드들

메소드 설명
IndexSplitter ( DirectoryInfo dir ) : Lucene.Net.Store
ListSegments ( ) : void
Main ( string args ) : void
Remove ( string segs ) : void
Split ( DirectoryInfo destDir, string segs ) : void

비공개 메소드들

메소드 설명
CopyFile ( FileInfo src, FileInfo dst ) : void
GetIdx ( string name ) : int
GetInfo ( string name ) : Lucene.Net.Index.SegmentCommitInfo

메소드 상세

IndexSplitter() 공개 메소드

public IndexSplitter ( DirectoryInfo dir ) : Lucene.Net.Store
dir System.IO.DirectoryInfo
리턴 Lucene.Net.Store

ListSegments() 공개 메소드

public ListSegments ( ) : void
리턴 void

Main() 공개 정적인 메소드

public static Main ( string args ) : void
args string
리턴 void

Remove() 공개 메소드

public Remove ( string segs ) : void
segs string
리턴 void

Split() 공개 메소드

public Split ( DirectoryInfo destDir, string segs ) : void
destDir System.IO.DirectoryInfo
segs string
리턴 void

프로퍼티 상세

infos 공개적으로 프로퍼티

public SegmentInfos,Lucene.Net.Index infos
리턴 SegmentInfos