Skip to content

Commit cceb334

Browse files
authored
add configuration passthrough to datasource for dpl.pth_06.batch.size.fileCompressionRatio dpl.pth_06.batch.size.processingSpeed dpl.pth_06.batch.size.totalObjectCountLimit (#727)
1 parent acd95f2 commit cceb334

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/main/java/com/teragrep/pth_10/datasources/DPLDatasource.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,27 @@ private Dataset<Row> archiveStreamConsumerDataset(ArchiveQuery query, boolean is
163163
}
164164
}
165165

166+
if (config.hasPath("dpl.pth_06.batch.size.fileCompressionRatio")) {
167+
reader = reader
168+
.option(
169+
"batch.size.fileCompressionRatio",
170+
config.getString("dpl.pth_06.batch.size.fileCompressionRatio")
171+
);
172+
}
173+
174+
if (config.hasPath("dpl.pth_06.batch.size.processingSpeed")) {
175+
reader = reader
176+
.option("batch.size.processingSpeed", config.getString("dpl.pth_06.batch.size.processingSpeed"));
177+
}
178+
179+
if (config.hasPath("dpl.pth_06.batch.size.totalObjectCountLimit")) {
180+
reader = reader
181+
.option(
182+
"batch.size.totalObjectCountLimit",
183+
config.getString("dpl.pth_06.batch.size.totalObjectCountLimit")
184+
);
185+
}
186+
166187
boolean bloomEnabled = false;
167188
if (config.hasPath("dpl.pth_06.bloom.enabled")) {
168189
bloomEnabled = config.getBoolean("dpl.pth_06.bloom.enabled");

0 commit comments

Comments
 (0)