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

Feature/ant 2636 parquet writesupport #27

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

vargastat
Copy link
Contributor

No description provided.


public MatrixGroupConverter(GroupType schema, int rowCount) {
Objects.requireNonNull(schema);
this.rowCount = Objects.checkIndex(rowCount, 8761);
Copy link
Contributor Author

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);
Copy link
Contributor Author

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);
Copy link
Contributor Author

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

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