2 * Copyright 2004 The Apache Software Foundation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 namespace Lucene
.Net
.Index
22 /// <summary>A TermInfo is the record of information stored for a term.</summary>
24 public sealed class TermInfo
26 /// <summary>The number of documents which contain the term. </summary>
27 public /*internal*/ int docFreq
= 0;
29 public /*internal*/ long freqPointer
= 0;
30 public /*internal*/ long proxPointer
= 0;
31 internal int skipOffset
;
37 public /*internal*/ TermInfo(int df
, long fp
, long pp
)
44 internal TermInfo(TermInfo ti
)
47 freqPointer
= ti
.freqPointer
;
48 proxPointer
= ti
.proxPointer
;
49 skipOffset
= ti
.skipOffset
;
52 internal void Set(int docFreq
, long freqPointer
, long proxPointer
, int skipOffset
)
54 this.docFreq
= docFreq
;
55 this.freqPointer
= freqPointer
;
56 this.proxPointer
= proxPointer
;
57 this.skipOffset
= skipOffset
;
60 internal void Set(TermInfo ti
)
63 freqPointer
= ti
.freqPointer
;
64 proxPointer
= ti
.proxPointer
;
65 skipOffset
= ti
.skipOffset
;