public Optional<List<BooleanStreamCheckpoint>> getCheckpoints() { checkArgument(closed); if (booleanOutputStream == null) { return Optional.empty(); } return Optional.of(booleanOutputStream.getCheckpoints()); }
@Override public List<StreamDataOutput> getIndexStreams(CompressedMetadataWriter metadataWriter) throws IOException { checkState(closed); ImmutableList.Builder<RowGroupIndex> rowGroupIndexes = ImmutableList.builder(); List<BooleanStreamCheckpoint> dataCheckpoints = dataStream.getCheckpoints(); Optional<List<BooleanStreamCheckpoint>> presentCheckpoints = presentStream.getCheckpoints(); for (int i = 0; i < rowGroupColumnStatistics.size(); i++) { int groupId = i; ColumnStatistics columnStatistics = rowGroupColumnStatistics.get(groupId); BooleanStreamCheckpoint dataCheckpoint = dataCheckpoints.get(groupId); Optional<BooleanStreamCheckpoint> presentCheckpoint = presentCheckpoints.map(checkpoints -> checkpoints.get(groupId)); List<Integer> positions = createBooleanColumnPositionList(compressed, dataCheckpoint, presentCheckpoint); rowGroupIndexes.add(new RowGroupIndex(positions, columnStatistics)); } Slice slice = metadataWriter.writeRowIndexes(rowGroupIndexes.build()); Stream stream = new Stream(column, StreamKind.ROW_INDEX, slice.length(), false); return ImmutableList.of(new StreamDataOutput(slice, stream)); }
List<BooleanStreamCheckpoint> batchWriteCheckpoints = output.getCheckpoints(); DynamicSliceOutput slice = new DynamicSliceOutput(128); buffer.writeDataTo(slice); List<BooleanStreamCheckpoint> singleWriteCheckpoints = output.getCheckpoints(); slice = new DynamicSliceOutput(128); buffer.writeDataTo(slice);
public Optional<List<BooleanStreamCheckpoint>> getCheckpoints() { checkArgument(closed); if (booleanOutputStream == null) { return Optional.empty(); } return Optional.of(booleanOutputStream.getCheckpoints()); }
@Override public List<StreamDataOutput> getIndexStreams(CompressedMetadataWriter metadataWriter) throws IOException { checkState(closed); ImmutableList.Builder<RowGroupIndex> rowGroupIndexes = ImmutableList.builder(); List<BooleanStreamCheckpoint> dataCheckpoints = dataStream.getCheckpoints(); Optional<List<BooleanStreamCheckpoint>> presentCheckpoints = presentStream.getCheckpoints(); for (int i = 0; i < rowGroupColumnStatistics.size(); i++) { int groupId = i; ColumnStatistics columnStatistics = rowGroupColumnStatistics.get(groupId); BooleanStreamCheckpoint dataCheckpoint = dataCheckpoints.get(groupId); Optional<BooleanStreamCheckpoint> presentCheckpoint = presentCheckpoints.map(checkpoints -> checkpoints.get(groupId)); List<Integer> positions = createBooleanColumnPositionList(compressed, dataCheckpoint, presentCheckpoint); rowGroupIndexes.add(new RowGroupIndex(positions, columnStatistics)); } Slice slice = metadataWriter.writeRowIndexes(rowGroupIndexes.build()); Stream stream = new Stream(column, StreamKind.ROW_INDEX, slice.length(), false); return ImmutableList.of(new StreamDataOutput(slice, stream)); }
List<BooleanStreamCheckpoint> batchWriteCheckpoints = output.getCheckpoints(); DynamicSliceOutput slice = new DynamicSliceOutput(128); buffer.writeDataTo(slice); List<BooleanStreamCheckpoint> singleWriteCheckpoints = output.getCheckpoints(); slice = new DynamicSliceOutput(128); buffer.writeDataTo(slice);