private static void parseBooleanColumn(
      int size, DataInputStream stream, Object[] values, int columnIndex) throws IOException {
    boolean[] boolValues = new boolean[size];
    for (int index = 0; index < size; index++) {
      boolValues[index] = BytesUtils.byteToBool(stream.readByte());
    }
    values[columnIndex] = boolValues;
  }
Deserialize Tablet Values From Buffer

@param buffer data values
@param columns column number
@param size value count in each column
@throws UnSupportedDataTypeException if TSDataType is unknown, UnSupportedDataTypeException
    will be thrown.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/QueryDataSetUtils.java