Change the GC.GetTotalMemory() threshold to 10%; otherwise there are just too many...
[beagle.git] / beagled / Lucene.Net / Index / TermInfo.cs
blob66d2e455a9840c49370e97c5c5c3a6683c01e94d
1 /*
2 * Copyright 2004 The Apache Software Foundation
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
17 using System;
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;
33 internal TermInfo()
37 public /*internal*/ TermInfo(int df, long fp, long pp)
39 docFreq = df;
40 freqPointer = fp;
41 proxPointer = pp;
44 internal TermInfo(TermInfo ti)
46 docFreq = ti.docFreq;
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)
62 docFreq = ti.docFreq;
63 freqPointer = ti.freqPointer;
64 proxPointer = ti.proxPointer;
65 skipOffset = ti.skipOffset;