1 package org.apache.lucene.index; 2 3 18 19 20 21 final class TermInfo { 22 23 int docFreq = 0; 24 25 long freqPointer = 0; 26 long proxPointer = 0; 27 int skipOffset; 28 29 TermInfo() {} 30 31 TermInfo(int df, long fp, long pp) { 32 docFreq = df; 33 freqPointer = fp; 34 proxPointer = pp; 35 } 36 37 TermInfo(TermInfo ti) { 38 docFreq = ti.docFreq; 39 freqPointer = ti.freqPointer; 40 proxPointer = ti.proxPointer; 41 skipOffset = ti.skipOffset; 42 } 43 44 final void set(int docFreq, 45 long freqPointer, long proxPointer, int skipOffset) { 46 this.docFreq = docFreq; 47 this.freqPointer = freqPointer; 48 this.proxPointer = proxPointer; 49 this.skipOffset = skipOffset; 50 } 51 52 final void set(TermInfo ti) { 53 docFreq = ti.docFreq; 54 freqPointer = ti.freqPointer; 55 proxPointer = ti.proxPointer; 56 skipOffset = ti.skipOffset; 57 } 58 } 59 | Popular Tags |