@Override protected BooleanOutputStream createValueOutputStream() { return new BooleanOutputStream(SNAPPY, COMPRESSION_BLOCK_SIZE); }
public BooleanColumnWriter(int column, Type type, CompressionKind compression, int bufferSize) { checkArgument(column >= 0, "column is negative"); this.column = column; this.type = requireNonNull(type, "type is null"); this.compressed = requireNonNull(compression, "compression is null") != NONE; this.dataStream = new BooleanOutputStream(compression, bufferSize); this.presentStream = new PresentOutputStream(compression, bufferSize); }
private void createBooleanOutputStream() { checkState(booleanOutputStream == null); booleanOutputStream = new BooleanOutputStream(buffer); for (int groupsCount : groupsCounts) { booleanOutputStream.writeBooleans(groupsCount, true); booleanOutputStream.recordCheckpoint(); } booleanOutputStream.writeBooleans(currentGroupCount, true); }
BooleanOutputStream output = new BooleanOutputStream(buffer);
public BooleanColumnWriter(int column, Type type, CompressionKind compression, int bufferSize) { checkArgument(column >= 0, "column is negative"); this.column = column; this.type = requireNonNull(type, "type is null"); this.compressed = requireNonNull(compression, "compression is null") != NONE; this.dataStream = new BooleanOutputStream(compression, bufferSize); this.presentStream = new PresentOutputStream(compression, bufferSize); }
@Override protected BooleanOutputStream createValueOutputStream() { return new BooleanOutputStream(SNAPPY, COMPRESSION_BLOCK_SIZE); }
private void createBooleanOutputStream() { checkState(booleanOutputStream == null); booleanOutputStream = new BooleanOutputStream(buffer); for (int groupsCount : groupsCounts) { booleanOutputStream.writeBooleans(groupsCount, true); booleanOutputStream.recordCheckpoint(); } booleanOutputStream.writeBooleans(currentGroupCount, true); }
BooleanOutputStream output = new BooleanOutputStream(buffer);