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

Allow SegmentAnalyzer to read columns from StorageAdapter, allow SegmentMetadataQuery to query IncrementalIndexSegments on realtime node #1739

Merged
merged 1 commit into from
Sep 18, 2015

Conversation

jon-wei
Copy link
Contributor

@jon-wei jon-wei commented Sep 16, 2015

Allows SegmentAnalyzer to create an analysis from a StorageAdapter; this is used during the SegmentMetadataQuery to allow the query to read from IncrementalIndexSegments wrapped by a StorageAdapter.

This allows the metadata query to read columns from the most recent hydrant on the realtime node.

Size calculation is not performed in this alternate path.

@fjy
Copy link
Contributor

fjy commented Sep 16, 2015

👍

columns.put(
Column.TIME_COLUMN_NAME,
new ColumnAnalysis(ValueType.LONG.name(), 0, null, null)
);
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a single line // comment, also imo the real issue is that StorageAdapters don't tell you how many rows they have. (you don't actually need to read the time column to know how big it is; you just have to know how many rows the segment has)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gianm For the metrics columns, I can get the row count via IncrementalIndex.size() or QueryableIndex.getNumRows(). I don't think this covers size calculations for the string or complex columns though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gianm Updated patch, analysis on StorageAdapter can now do size calculation for time and metrics columns

@jon-wei jon-wei force-pushed the segment_realtime branch 2 times, most recently from a6fc236 to 934a052 Compare September 17, 2015 01:33
…entMetadataQuery to query IncrementalIndexSegments on realtime node
@gianm
Copy link
Contributor

gianm commented Sep 18, 2015

👍

gianm added a commit that referenced this pull request Sep 18, 2015
Allow SegmentAnalyzer to read columns from StorageAdapter, allow SegmentMetadataQuery to query IncrementalIndexSegments on realtime node
@gianm gianm merged commit aaa8a88 into apache:master Sep 18, 2015
@jon-wei jon-wei deleted the segment_realtime branch September 22, 2015 23:56
@gianm gianm added this to the 0.8.2 milestone Sep 25, 2015
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.

3 participants