/** Read {@code count} integers and feed the result directly to {@link IntersectVisitor#visit(int)}. */ static void readInts(IndexInput in, int count, IntersectVisitor visitor) throws IOException { final int bpv = in.readByte(); switch (bpv) { case 0: readDeltaVInts(in, count, visitor); break; case 32: readInts32(in, count, visitor); break; case 24: readInts24(in, count, visitor); break; default: throw new IOException("Unsupported number of bits per value: " + bpv); } }
/** Read {@code count} integers into {@code docIDs}. */ static void readInts(IndexInput in, int count, int[] docIDs) throws IOException { final int bpv = in.readByte(); switch (bpv) { case 0: readDeltaVInts(in, count, docIDs); break; case 32: readInts32(in, count, docIDs); break; case 24: readInts24(in, count, docIDs); break; default: throw new IOException("Unsupported number of bits per value: " + bpv); } }
/** Read {@code count} integers into {@code docIDs}. */ static void readInts(IndexInput in, int count, int[] docIDs) throws IOException { final int bpv = in.readByte(); switch (bpv) { case 0: readDeltaVInts(in, count, docIDs); break; case 32: readInts32(in, count, docIDs); break; case 24: readInts24(in, count, docIDs); break; default: throw new IOException("Unsupported number of bits per value: " + bpv); } }
/** Read {@code count} integers and feed the result directly to {@link IntersectVisitor#visit(int)}. */ static void readInts(IndexInput in, int count, IntersectVisitor visitor) throws IOException { final int bpv = in.readByte(); switch (bpv) { case 0: readDeltaVInts(in, count, visitor); break; case 32: readInts32(in, count, visitor); break; case 24: readInts24(in, count, visitor); break; default: throw new IOException("Unsupported number of bits per value: " + bpv); } }