-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add some constructor for chunk capacity #180
base: develop
Are you sure you want to change the base?
Add some constructor for chunk capacity #180
Conversation
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.
Hi, this is your first pull request in the Apache TsFile project. Thanks for your contribution! TsFile will be better because of you.
1c49df3
to
5fe593f
Compare
@@ -170,6 +204,11 @@ public int write(Tablet tablet) throws WriteProcessException, IOException { | |||
emptyValueChunkWriters.add(entry.getValue()); | |||
} | |||
} | |||
|
|||
for (int columnIndex = 0; columnIndex < measurementSchemas.size(); ++columnIndex) { |
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.
redundant?
@@ -80,6 +80,36 @@ public AlignedChunkWriterImpl(VectorMeasurementSchema schema) { | |||
this.remainingPointsNumber = timeChunkWriter.getRemainingPointNumberForCurrentPage(); | |||
} | |||
|
|||
public AlignedChunkWriterImpl(VectorMeasurementSchema schema, int rowCount) { | |||
|
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.
empyt line
rowCount); | ||
|
||
this.valueIndex = 0; | ||
|
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.
empty line
// init statistics for this chunk and page | ||
this.statistics = Statistics.getStatsByType(dataType); | ||
|
||
int bufferCount = |
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.
abstract function and add comments
For ChunkWriter, we add some constructor with rowCount params to specific the capacity of bytestream such that we can reduce the bytestream grow times.
Note: these constructors are used just in iotdb currently