Skip to content

Commit

Permalink
make compression working
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfeismann committed Sep 27, 2024
1 parent da479bf commit a81c887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object ResultEventListener extends Transformer3wResultSupport {
): Iterable[Future[(Class[_], ResultEntitySink)]] = {
resultFileHierarchy.resultSinkType match {
case csv: ResultSinkType.Csv =>
val enableCompression = csv.zipFiles
val enableCompression = csv.compressOutputs

resultFileHierarchy.resultEntitiesToConsider.map { resultClass =>
val filePathOpt =
Expand Down Expand Up @@ -107,7 +107,7 @@ object ResultEventListener extends Transformer3wResultSupport {
ResultEntityCsvSink(
finalFileName,
new ResultEntityProcessor(resultClass),
fileName.endsWith(".gz"),
finalFileName.endsWith(".gz"),
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object ResultSinkType {
fileFormat: String = ".csv",
filePrefix: String = "",
fileSuffix: String = "",
zipFiles: Boolean = false,
compressOutputs: Boolean = false,
) extends ResultSinkType

final case class InfluxDb1x(url: String, database: String, scenario: String)
Expand Down

0 comments on commit a81c887

Please sign in to comment.