Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Constant space #1

Merged
merged 47 commits into from
Dec 11, 2018
Merged

WIP: Constant space #1

merged 47 commits into from
Dec 11, 2018

Conversation

guizmaii
Copy link
Contributor

@guizmaii guizmaii commented Dec 6, 2018

No description provided.

@guizmaii guizmaii changed the title Constant space WIP: Constant space Dec 6, 2018
@guizmaii guizmaii changed the base branch from master to init December 6, 2018 17:12
final def addRows(sheet: ConstantMemorySheet, page: Array[Row], pageIndex: Int): ConstantMemorySheet = {
val fileName = tmpFileName(sheet, pageIndex)
val file = java.io.File.createTempFile(fileName, "csv")
file.writeCsv[Row](page, rfc.withHeader)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO JULES: remove the with header call

private final val spoiwoCellDecoder: CellDecoder[SpoiwoCell] =
CellDecoder.fromUnsafe { s =>
val Array(cellType, data) = s.split(":", 2)
cellType match {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO JULES : can I use the @switch annotation here ?

}

spoiwoSheet.saveAsXlsx(fileName)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a clean(sheet: ConstantMemorySheet) function that will delete all tmp files ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@codecov-io
Copy link

codecov-io commented Dec 10, 2018

Codecov Report

❗ No coverage uploaded for pull request base (init@3d90285). Click here to learn what that means.
The diff coverage is 84.09%.

Impacted file tree graph

@@           Coverage Diff           @@
##             init       #1   +/-   ##
=======================================
  Coverage        ?   69.81%           
=======================================
  Files           ?        5           
  Lines           ?       53           
  Branches        ?        0           
=======================================
  Hits            ?       37           
  Misses          ?       16           
  Partials        ?        0
Impacted Files Coverage Δ
...excel/jruby/constant/space/utils/SpoiwoUtils.scala 100% <100%> (ø)
...sy/excel/jruby/constant/space/EasyExcelJRuby.scala 100% <100%> (ø)
...l/jruby/constant/space/utils/KantanExtension.scala 20% <20%> (ø)
...izmaii/easy/excel/jruby/constant/space/Types.scala 66.66% <66.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d90285...a129747. Read the comment docs.

@guizmaii guizmaii merged commit 6c62f1a into init Dec 11, 2018
@guizmaii guizmaii deleted the constant_space branch December 11, 2018 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants