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

Information about a segment such as it's name, directory, and files related to the segment. *

NOTE: This API is new and still experimental (subject to change suddenly in the next release)

상속: System.ICloneable
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Dir Directory
Name string

공개 메소드들

메소드 설명
AddFile ( string file ) : void

Add this file to the set of files written for this segment.

AddFiles ( ICollection files ) : void

Add these files to the set of files written for this segment.

Equals ( object obj ) : bool

We consider another SegmentInfo instance equal if it has the same dir and same name.

GetHashCode ( ) : int
SegmentInfo ( Directory dir, string version, string name, int docCount, bool isCompoundFile, Codec codec, string>.IDictionary diagnostics ) : System

Construct a new complete SegmentInfo instance from input.

Note: this is public only to allow access from the codecs package.

SegmentInfo ( Directory dir, string version, string name, int docCount, bool isCompoundFile, Codec codec, string>.IDictionary diagnostics, string>.IDictionary attributes ) : System

Construct a new complete SegmentInfo instance from input.

Note: this is public only to allow access from the codecs package.

ToString ( ) : string

Return all files referenced by this SegmentInfo.

ToString ( Directory dir, int delCount ) : string

Used for debugging. Format may suddenly change.

Current format looks like _a(3.1):c45/4, which means the segment's name is _a; it was created with Lucene 3.1 (or '?' if it's unknown); it's using compound file format (would be C if not compound); it has 45 documents; it has 4 deletions (this part is left off when there are no deletions).

비공개 메소드들

메소드 설명
Attributes ( ) : string>.IDictionary
CheckFileNames ( ICollection files ) : void
GetAttribute ( string key ) : string
HasSeparateNorms ( ) : bool
PutAttribute ( string key, string value ) : string

메소드 상세

AddFile() 공개 메소드

Add this file to the set of files written for this segment.
public AddFile ( string file ) : void
file string
리턴 void

AddFiles() 공개 메소드

Add these files to the set of files written for this segment.
public AddFiles ( ICollection files ) : void
files ICollection
리턴 void

Equals() 공개 메소드

We consider another SegmentInfo instance equal if it has the same dir and same name.
public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

SegmentInfo() 공개 메소드

Construct a new complete SegmentInfo instance from input.

Note: this is public only to allow access from the codecs package.

public SegmentInfo ( Directory dir, string version, string name, int docCount, bool isCompoundFile, Codec codec, string>.IDictionary diagnostics ) : System
dir Directory
version string
name string
docCount int
isCompoundFile bool
codec Codec
diagnostics string>.IDictionary
리턴 System

SegmentInfo() 공개 메소드

Construct a new complete SegmentInfo instance from input.

Note: this is public only to allow access from the codecs package.

public SegmentInfo ( Directory dir, string version, string name, int docCount, bool isCompoundFile, Codec codec, string>.IDictionary diagnostics, string>.IDictionary attributes ) : System
dir Directory
version string
name string
docCount int
isCompoundFile bool
codec Codec
diagnostics string>.IDictionary
attributes string>.IDictionary
리턴 System

ToString() 공개 메소드

Return all files referenced by this SegmentInfo.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Used for debugging. Format may suddenly change.

Current format looks like _a(3.1):c45/4, which means the segment's name is _a; it was created with Lucene 3.1 (or '?' if it's unknown); it's using compound file format (would be C if not compound); it has 45 documents; it has 4 deletions (this part is left off when there are no deletions).

public ToString ( Directory dir, int delCount ) : string
dir Directory
delCount int
리턴 string

프로퍼티 상세

Dir 공개적으로 프로퍼티

Where this segment resides.
public Directory Dir
리턴 Directory

Name 공개적으로 프로퍼티

Unique segment name in the directory.
public string Name
리턴 string