Package org.apache.lucene.util.PagedBytes

Examples of org.apache.lucene.util.PagedBytes.PagedBytesDataInput.readVInt()


    PagedBytesDataInput input = (PagedBytesDataInput) dataInput.clone();
   
    input.setPosition(indexToDataOffset.get(indexOffset));

    // read the term
    int fieldId = input.readVInt();
    Term field = fields[fieldId];
    Term term = field.createTerm(input.readString());

    // read the terminfo
    TermInfo termInfo = new TermInfo();
View Full Code Here


    Term field = fields[fieldId];
    Term term = field.createTerm(input.readString());

    // read the terminfo
    TermInfo termInfo = new TermInfo();
    termInfo.docFreq = input.readVInt();
    if (termInfo.docFreq >= skipInterval) {
      termInfo.skipOffset = input.readVInt();
    } else {
      termInfo.skipOffset = 0;
    }
View Full Code Here

    // read the terminfo
    TermInfo termInfo = new TermInfo();
    termInfo.docFreq = input.readVInt();
    if (termInfo.docFreq >= skipInterval) {
      termInfo.skipOffset = input.readVInt();
    } else {
      termInfo.skipOffset = 0;
    }
    termInfo.freqPointer = input.readVLong();
    termInfo.proxPointer = input.readVLong();
View Full Code Here

  Term getTerm(int termIndex) throws IOException {
    PagedBytesDataInput input = (PagedBytesDataInput) dataInput.clone();
    input.setPosition(indexToDataOffset.get(termIndex));

    // read the term
    int fieldId = input.readVInt();
    Term field = fields[fieldId];
    return field.createTerm(input.readString());
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.