Пример #1
0
 internal DocData(CompressingTermVectorsWriter OuterInstance, int numFields, int posStart, int offStart, int payStart)
 {
     this.OuterInstance = OuterInstance;
     this.NumFields     = numFields;
     this.Fields        = new LinkedList <FieldData>();
     this.PosStart      = posStart;
     this.OffStart      = offStart;
     this.PayStart      = payStart;
 }
 internal DocData(CompressingTermVectorsWriter outerInstance, int numFields, int posStart, int offStart, int payStart)
 {
     this.outerInstance = outerInstance;
     this.numFields     = numFields;
     this.fields        = new LinkedList <FieldData>();
     this.posStart      = posStart;
     this.offStart      = offStart;
     this.payStart      = payStart;
 }
Пример #3
0
 internal FieldData(CompressingTermVectorsWriter OuterInstance, int fieldNum, int numTerms, bool positions, bool offsets, bool payloads, int posStart, int offStart, int payStart)
 {
     this.OuterInstance = OuterInstance;
     this.FieldNum      = fieldNum;
     this.NumTerms      = numTerms;
     this.HasPositions  = positions;
     this.HasOffsets    = offsets;
     this.HasPayloads   = payloads;
     this.Flags         = (positions ? POSITIONS : 0) | (offsets ? OFFSETS : 0) | (payloads ? PAYLOADS : 0);
     this.Freqs         = new int[numTerms];
     this.PrefixLengths = new int[numTerms];
     this.SuffixLengths = new int[numTerms];
     this.PosStart      = posStart;
     this.OffStart      = offStart;
     this.PayStart      = payStart;
     TotalPositions     = 0;
     Ord = 0;
 }
 internal FieldData(CompressingTermVectorsWriter outerInstance, int fieldNum, int numTerms, bool positions, bool offsets, bool payloads, int posStart, int offStart, int payStart)
 {
     this.outerInstance = outerInstance;
     this.fieldNum      = fieldNum;
     this.numTerms      = numTerms;
     this.hasPositions  = positions;
     this.hasOffsets    = offsets;
     this.hasPayloads   = payloads;
     this.flags         = (positions ? POSITIONS : 0) | (offsets ? OFFSETS : 0) | (payloads ? PAYLOADS : 0);
     this.freqs         = new int[numTerms];
     this.prefixLengths = new int[numTerms];
     this.suffixLengths = new int[numTerms];
     this.posStart      = posStart;
     this.offStart      = offStart;
     this.payStart      = payStart;
     totalPositions     = 0;
     ord = 0;
 }
 internal DocData(CompressingTermVectorsWriter OuterInstance, int numFields, int posStart, int offStart, int payStart)
 {
     this.OuterInstance = OuterInstance;
     this.NumFields = numFields;
     this.Fields = new LinkedList<FieldData>();
     this.PosStart = posStart;
     this.OffStart = offStart;
     this.PayStart = payStart;
 }
 internal FieldData(CompressingTermVectorsWriter OuterInstance, int fieldNum, int numTerms, bool positions, bool offsets, bool payloads, int posStart, int offStart, int payStart)
 {
     this.OuterInstance = OuterInstance;
     this.FieldNum = fieldNum;
     this.NumTerms = numTerms;
     this.HasPositions = positions;
     this.HasOffsets = offsets;
     this.HasPayloads = payloads;
     this.Flags = (positions ? POSITIONS : 0) | (offsets ? OFFSETS : 0) | (payloads ? PAYLOADS : 0);
     this.Freqs = new int[numTerms];
     this.PrefixLengths = new int[numTerms];
     this.SuffixLengths = new int[numTerms];
     this.PosStart = posStart;
     this.OffStart = offStart;
     this.PayStart = payStart;
     TotalPositions = 0;
     Ord = 0;
 }