/** Sole constructor. * @param blockSize the number of values of a block, must be equal to the * block size of the {@link BlockPackedWriter} which has * been used to write the stream */ public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) { checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE); this.packedIntsVersion = packedIntsVersion; this.blockSize = blockSize; this.values = new long[blockSize]; this.valuesRef = new LongsRef(this.values, 0, 0); reset(in, valueCount); }
private int[][] readPositions(int skip, int numFields, PackedInts.Reader flags, PackedInts.Reader numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException { final int[][] positions = new int[numFields][]; reader.reset(vectorsStream, totalPositions);
numFields = totalFields = vectorsStream.readVInt(); } else { reader.reset(vectorsStream, chunkDocs); int sum = 0; for (int i = docBase; i < doc; ++i) { final int[][] suffixLengths = new int[numFields][]; reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); for (int i = 0; i < totalTerms; ) { final LongsRef next = reader.next(totalTerms - i); int payloadLen = 0; if (totalPayloads > 0) { reader.reset(vectorsStream, totalPayloads);
/** Sole constructor. * @param blockSize the number of values of a block, must be equal to the * block size of the {@link BlockPackedWriter} which has * been used to write the stream */ public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) { checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE); this.packedIntsVersion = packedIntsVersion; this.blockSize = blockSize; this.values = new long[blockSize]; this.valuesRef = new LongsRef(this.values, 0, 0); reset(in, valueCount); }
/** Sole constructor. * @param blockSize the number of values of a block, must be equal to the * block size of the {@link BlockPackedWriter} which has * been used to write the stream */ public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) { checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE); this.packedIntsVersion = packedIntsVersion; this.blockSize = blockSize; this.values = new long[blockSize]; this.valuesRef = new LongsRef(this.values, 0, 0); reset(in, valueCount); }
/** Sole constructor. * @param blockSize the number of values of a block, must be equal to the * block size of the {@link BlockPackedWriter} which has * been used to write the stream */ public BlockPackedReaderIterator(DataInput in, int packedIntsVersion, int blockSize, long valueCount) { checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE); this.packedIntsVersion = packedIntsVersion; this.blockSize = blockSize; this.values = new long[blockSize]; this.valuesRef = new LongsRef(this.values, 0, 0); reset(in, valueCount); }
private int[][] readPositions(int skip, int numFields, PackedInts.Reader flags, PackedInts.Reader numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException { final int[][] positions = new int[numFields][]; reader.reset(vectorsStream, totalPositions);
private int[][] readPositions(int skip, int numFields, PackedInts.Reader flags, PackedInts.Reader numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException { final int[][] positions = new int[numFields][]; reader.reset(vectorsStream, totalPositions);
private int[][] readPositions(int skip, int numFields, PackedInts.Reader flags, PackedInts.Reader numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException { final int[][] positions = new int[numFields][]; reader.reset(vectorsStream, totalPositions);
private int[][] readPositions(int skip, int numFields, PackedInts.Reader flags, PackedInts.Reader numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException { final int[][] positions = new int[numFields][]; reader.reset(vectorsStream, totalPositions);
numFields = totalFields = vectorsStream.readVInt(); } else { reader.reset(vectorsStream, chunkDocs); int sum = 0; for (int i = docBase; i < doc; ++i) { final int[][] suffixLengths = new int[numFields][]; reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); for (int i = 0; i < totalTerms; ) { final LongsRef next = reader.next(totalTerms - i); int payloadLen = 0; if (totalPayloads > 0) { reader.reset(vectorsStream, totalPayloads);
numFields = totalFields = vectorsStream.readVInt(); } else { reader.reset(vectorsStream, chunkDocs); int sum = 0; for (int i = docBase; i < doc; ++i) { final int[][] suffixLengths = new int[numFields][]; reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); for (int i = 0; i < totalTerms; ) { final LongsRef next = reader.next(totalTerms - i); int payloadLen = 0; if (totalPayloads > 0) { reader.reset(vectorsStream, totalPayloads);
numFields = totalFields = vectorsStream.readVInt(); } else { reader.reset(vectorsStream, chunkDocs); int sum = 0; for (int i = docBase; i < doc; ++i) { final int[][] suffixLengths = new int[numFields][]; reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); for (int i = 0; i < totalTerms; ) { final LongsRef next = reader.next(totalTerms - i); int payloadLen = 0; if (totalPayloads > 0) { reader.reset(vectorsStream, totalPayloads);
numFields = totalFields = vectorsStream.readVInt(); } else { reader.reset(vectorsStream, chunkDocs); int sum = 0; for (int i = docBase; i < doc; ++i) { final int[][] suffixLengths = new int[numFields][]; reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); reader.reset(vectorsStream, totalTerms); for (int i = 0; i < totalTerms; ) { final LongsRef next = reader.next(totalTerms - i); int payloadLen = 0; if (totalPayloads > 0) { reader.reset(vectorsStream, totalPayloads);