decodeColumnarFrame method

TypedColumnarResult decodeColumnarFrame(
  1. Uint8List frame, {
  2. bool lazyStrings = false,
})

Decodes a complete protocol message frame for columnar streaming.

Implementation

TypedColumnarResult decodeColumnarFrame(
  Uint8List frame, {
  bool lazyStrings = false,
}) {
  if (BinaryProtocolParser.isColumnarV2Message(frame)) {
    return BinaryProtocolParser.parseColumnarToTyped(
      frame,
      lazyStrings: lazyStrings,
    );
  }
  final rowBuffer = BinaryProtocolParser.parse(
    frame,
    lazyStrings: lazyStrings,
  );
  return toTypedColumnar(_parser.toQueryResult(rowBuffer));
}