-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/ant 2636 parquet writesupport #27
base: develop
Are you sure you want to change the base?
Conversation
|
||
public MatrixGroupConverter(GroupType schema, int rowCount) { | ||
Objects.requireNonNull(schema); | ||
this.rowCount = Objects.checkIndex(rowCount, 8761); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if we need checkIndex method here to check rowCount? if rowCount is 8761 index of rows will be from 0 to 8760
public static Matrix readMatrixFromTxt(Path filePath) throws IOException { | ||
Objects.requireNonNull(filePath); | ||
|
||
var lines = Files.readAllLines(filePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe is better to use File.lines(filePath) which returns a stream to read large files
var endDeserialization = System.nanoTime(); | ||
var deserializationTime = (endDeserialization - startDeserialization) / 1_000_000_000.0; | ||
|
||
System.out.println("Serialization time: " + serializationTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to use Log.info than System.out.println
No description provided.