Examples of readVInt()


Examples of org.apache.lucene.store.IndexInput.readVInt()

      final int size = input.readVInt(); //read in the size
      FieldInfo infos[] = new FieldInfo[size];

      for (int i = 0; i < size; i++) {
        String name = input.readString();
        final int fieldNumber = input.readVInt();
        byte bits = input.readByte();
        boolean isIndexed = (bits & Lucene40FieldInfosFormat.IS_INDEXED) != 0;
        boolean storeTermVector = (bits & Lucene40FieldInfosFormat.STORE_TERMVECTOR) != 0;
        boolean omitNorms = (bits & Lucene40FieldInfosFormat.OMIT_NORMS) != 0;
        boolean storePayloads = (bits & Lucene40FieldInfosFormat.STORE_PAYLOADS) != 0;
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

    private final int fillDocs(int size) throws IOException {
      final IndexInput freqIn = this.freqIn;
      final int docs[] = this.docs;
      int docAc = accum;
      for (int i = 0; i < size; i++) {
        docAc += freqIn.readVInt();
        docs[i] = docAc;
      }
      accum = docAc;
      return size;
    }
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

      final IndexInput freqIn = this.freqIn;
      final int docs[] = this.docs;
      final int freqs[] = this.freqs;
      int docAc = accum;
      for (int i = 0; i < size; i++) {
        final int code = freqIn.readVInt();
        docAc += code >>> 1; // shift off low bit
        freqs[i] = readFreq(freqIn, code);
        docs[i] = docAc;
      }
      accum = docAc;
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

      int frq = 1;
      final IndexInput freqIn = this.freqIn;
      final boolean omitTF = indexOmitsTF;
      final int loopLimit = limit;
      for (int i = ord; i < loopLimit; i++) {
        int code = freqIn.readVInt();
        if (omitTF) {
          docAcc += code;
        } else {
          docAcc += code >>> 1; // shift off low bit
          frq = readFreq(freqIn, code);
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

      final IndexInput freqIn = this.freqIn;
      final boolean omitTF = indexOmitsTF;
      final int loopLimit = limit;
      final Bits liveDocs = this.liveDocs;
      for (int i = ord; i < loopLimit; i++) {
        int code = freqIn.readVInt();
        if (omitTF) {
          docAcc += code;
        } else {
          docAcc += code >>> 1; // shift off low bit
          frq = readFreq(freqIn, code);
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

      final IndexInput freqIn = this.freqIn;
      final boolean omitTF = indexOmitsTF;
      final int loopLimit = limit;
      final Bits liveDocs = this.liveDocs;
      for (int i = ord; i < loopLimit; i++) {
        int code = freqIn.readVInt();
        if (omitTF) {
          docAcc += code;
        } else {
          docAcc += code >>> 1; // shift off low bit
          frq = readFreq(freqIn, code);
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

          snapshotFiles.add(file);
          Map<Long,Integer> m = new HashMap<Long,Integer>();   
          IndexInput in = dir.openInput(file, IOContext.DEFAULT);
          try {
            CodecUtil.checkHeader(in, CODEC_NAME, VERSION_START, VERSION_START);
            int count = in.readVInt();
            for(int i=0;i<count;i++) {
              long commitGen = in.readVLong();
              int refCount = in.readVInt();
              m.put(commitGen, refCount);
            }
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

          try {
            CodecUtil.checkHeader(in, CODEC_NAME, VERSION_START, VERSION_START);
            int count = in.readVInt();
            for(int i=0;i<count;i++) {
              long commitGen = in.readVLong();
              int refCount = in.readVInt();
              m.put(commitGen, refCount);
            }
          } catch (IOException ioe2) {
            // Save first exception & throw in the end
            if (ioe == null) {
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

      IndexInput in = null;
      try {
        in = segmentState.directory.openInput(summaryFileName, segmentState.context);
        CodecUtil.checkHeader(in, PulsingPostingsWriter.CODEC, version,
                              PulsingPostingsWriter.VERSION_CURRENT);
        int numField = in.readVInt();
        for (int i = 0; i < numField; i++) {
          int fieldNum = in.readVInt();
          int longsSize = in.readVInt();
          fields.put(fieldNum, longsSize);
        }
View Full Code Here

Examples of org.apache.lucene.store.IndexInput.readVInt()

        in = segmentState.directory.openInput(summaryFileName, segmentState.context);
        CodecUtil.checkHeader(in, PulsingPostingsWriter.CODEC, version,
                              PulsingPostingsWriter.VERSION_CURRENT);
        int numField = in.readVInt();
        for (int i = 0; i < numField; i++) {
          int fieldNum = in.readVInt();
          int longsSize = in.readVInt();
          fields.put(fieldNum, longsSize);
        }
      } finally {
        IOUtils.closeWhileHandlingException(in);
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.