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

Expose an API to handle file offset tables #1207

Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we encapsulate handling of file offset tables for data
files in a dedicated class. This class implements the necessary
low-level handling only exposing a higher-level API for consumers.

Closes #1204

With this commit we encapsulate handling of file offset tables for data
files in a dedicated class. This class implements the necessary
low-level handling only exposing a higher-level API for consumers.

Closes elastic#1204
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Track Management New operations, changes in the track format, track download changes and the like labels Mar 11, 2021
@danielmitterdorfer danielmitterdorfer added this to the 2.1.0 milestone Mar 11, 2021
@danielmitterdorfer danielmitterdorfer self-assigned this Mar 11, 2021
Copy link
Contributor

@gingerwizard gingerwizard left a comment

Choose a reason for hiding this comment

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

LGTM

:param data_file_path: The absolute path to the data file. This file is assumed to exist at this point.
:param offset_table_path: The absolute path to the corresponding offset table file. Only required to exist
for read operations on the data file.
:param mode: The mode in which the file offset table should be opened.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we not infer this? If an offset file is provided we can always open for read?

Copy link
Contributor

Choose a reason for hiding this comment

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

never mind this will never be called directly.

@danielmitterdorfer danielmitterdorfer merged commit 90198c7 into elastic:master Mar 15, 2021
@danielmitterdorfer danielmitterdorfer deleted the file-offset-api branch March 15, 2021 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Track Management New operations, changes in the track format, track download changes and the like
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Api for updating offset tables
2 participants