Skip to content

Commit 1f49acc

Browse files
committed
Better naming
1 parent 7bfb123 commit 1f49acc

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/Formats/FormatFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void FormatFactory::registerAppendSupportChecker(const String & name, AppendSupp
402402
target = std::move(append_support_checker);
403403
}
404404

405-
void FormatFactory::markFormatDoesntSupportAppend(const String & name)
405+
void FormatFactory::markFormatHasNoAppendSupport(const String & name)
406406
{
407407
registerAppendSupportChecker(name, [](const FormatSettings &){ return false; });
408408
}

src/Formats/FormatFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class FormatFactory final : private boost::noncopyable
176176

177177
/// If format always doesn't support append, you can use this method instead of
178178
/// registerAppendSupportChecker with append_support_checker that always returns true.
179-
void markFormatDoesntSupportAppend(const String & name);
179+
void markFormatHasNoAppendSupport(const String & name);
180180

181181
bool checkIfFormatSupportAppend(const String & name, ContextPtr context, const std::optional<FormatSettings> & format_settings_ = std::nullopt);
182182

src/Processors/Formats/Impl/ArrowBlockOutputFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void registerOutputFormatArrow(FormatFactory & factory)
9393
{
9494
return std::make_shared<ArrowBlockOutputFormat>(buf, sample, false, format_settings);
9595
});
96-
factory.markFormatDoesntSupportAppend("Arrow");
96+
factory.markFormatHasNoAppendSupport("Arrow");
9797

9898
factory.registerOutputFormat(
9999
"ArrowStream",
@@ -104,7 +104,7 @@ void registerOutputFormatArrow(FormatFactory & factory)
104104
{
105105
return std::make_shared<ArrowBlockOutputFormat>(buf, sample, true, format_settings);
106106
});
107-
factory.markFormatDoesntSupportAppend("ArrowStream");
107+
factory.markFormatHasNoAppendSupport("ArrowStream");
108108
}
109109

110110
}

src/Processors/Formats/Impl/AvroRowOutputFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ void registerOutputFormatAvro(FormatFactory & factory)
479479
{
480480
return std::make_shared<AvroRowOutputFormat>(buf, sample, params, settings);
481481
});
482-
factory.markFormatDoesntSupportAppend("Avro");
482+
factory.markFormatHasNoAppendSupport("Avro");
483483
}
484484

485485
}

src/Processors/Formats/Impl/JSONRowOutputFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void registerOutputFormatJSON(FormatFactory & factory)
284284
});
285285

286286
factory.markOutputFormatSupportsParallelFormatting("JSON");
287-
factory.markFormatDoesntSupportAppend("JSON");
287+
factory.markFormatHasNoAppendSupport("JSON");
288288

289289
factory.registerOutputFormat("JSONStrings", [](
290290
WriteBuffer & buf,
@@ -296,7 +296,7 @@ void registerOutputFormatJSON(FormatFactory & factory)
296296
});
297297

298298
factory.markOutputFormatSupportsParallelFormatting("JSONStrings");
299-
factory.markFormatDoesntSupportAppend("JSONStrings");
299+
factory.markFormatHasNoAppendSupport("JSONStrings");
300300
}
301301

302302
}

src/Processors/Formats/Impl/ORCBlockOutputFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ void registerOutputFormatORC(FormatFactory & factory)
526526
{
527527
return std::make_shared<ORCBlockOutputFormat>(buf, sample, format_settings);
528528
});
529-
factory.markFormatDoesntSupportAppend("ORC");
529+
factory.markFormatHasNoAppendSupport("ORC");
530530
}
531531

532532
}

src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void registerOutputFormatParquet(FormatFactory & factory)
8585
{
8686
return std::make_shared<ParquetBlockOutputFormat>(buf, sample, format_settings);
8787
});
88-
factory.markFormatDoesntSupportAppend("Parquet");
88+
factory.markFormatHasNoAppendSupport("Parquet");
8989
}
9090

9191
}

src/Processors/Formats/Impl/XMLRowOutputFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void registerOutputFormatXML(FormatFactory & factory)
256256
});
257257

258258
factory.markOutputFormatSupportsParallelFormatting("XML");
259-
factory.markFormatDoesntSupportAppend("XML");
259+
factory.markFormatHasNoAppendSupport("XML");
260260
}
261261

262262
}

0 commit comments

Comments
 (0)