public VectorizedRleValuesReader(int bitWidth) { this.fixedWidth = true; this.readLength = bitWidth != 0; init(bitWidth); }
public VectorizedRleValuesReader(int bitWidth) { fixedWidth = true; init(bitWidth); }
public VectorizedRleValuesReader(int bitWidth, boolean readLength) { this.fixedWidth = true; this.readLength = readLength; init(bitWidth); }
public VectorizedRleValuesReader(int bitWidth) { this.fixedWidth = true; this.readLength = bitWidth != 0; init(bitWidth); }
public VectorizedRleValuesReader(int bitWidth, boolean readLength) { this.fixedWidth = true; this.readLength = readLength; init(bitWidth); }
@Override public void initFromPage(int valueCount, byte[] page, int start) { this.offset = start; this.in = page; if (fixedWidth) { if (bitWidth != 0) { int length = readIntLittleEndian(); this.end = this.offset + length; } } else { this.end = page.length; if (this.end != this.offset) init(page[this.offset++] & 255); } if (bitWidth == 0) { // 0 bit width, treat this as an RLE run of valueCount number of 0's. this.mode = MODE.RLE; this.currentCount = valueCount; this.currentValue = 0; } else { this.currentCount = 0; } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream in) throws IOException { this.in = in; if (fixedWidth) { // initialize for repetition and definition levels if (readLength) { int length = readIntLittleEndian(); this.in = in.sliceStream(length); } } else { // initialize for values if (in.available() > 0) { init(in.read()); } } if (bitWidth == 0) { // 0 bit width, treat this as an RLE run of valueCount number of 0's. this.mode = MODE.RLE; this.currentCount = valueCount; this.currentValue = 0; } else { this.currentCount = 0; } }
@Override public void initFromPage(int valueCount, ByteBufferInputStream in) throws IOException { this.in = in; if (fixedWidth) { // initialize for repetition and definition levels if (readLength) { int length = readIntLittleEndian(); this.in = in.sliceStream(length); } } else { // initialize for values if (in.available() > 0) { init(in.read()); } } if (bitWidth == 0) { // 0 bit width, treat this as an RLE run of valueCount number of 0's. this.mode = MODE.RLE; this.currentCount = valueCount; this.currentValue = 0; } else { this.currentCount = 0; } }
public VectorizedRleValuesReader(int bitWidth) { fixedWidth = true; init(bitWidth); }
@Override public void initFromPage(int valueCount, byte[] page, int start) { this.offset = start; this.in = page; if (fixedWidth) { if (bitWidth != 0) { int length = readIntLittleEndian(); this.end = this.offset + length; } } else { this.end = page.length; if (this.end != this.offset) init(page[this.offset++] & 255); } if (bitWidth == 0) { // 0 bit width, treat this as an RLE run of valueCount number of 0's. this.mode = MODE.RLE; this.currentCount = valueCount; this.currentValue = 0; } else { this.currentCount = 0; } }