Skip to content

Introduce SegmentizerFactory#3901

Merged
b-slim merged 2 commits intoapache:masterfrom
pjain1:segmentizer
Feb 6, 2017
Merged

Introduce SegmentizerFactory#3901
b-slim merged 2 commits intoapache:masterfrom
pjain1:segmentizer

Conversation

@pjain1
Copy link
Copy Markdown
Member

@pjain1 pjain1 commented Feb 2, 2017

  • that knows how to deserialize specific type of segment
  • Default implementation is MMappedQueryableSegmentizerFactory which creates QueryableIndexSegment
  • Unit test for the default behavior

Part of #2965

- that knows how to deserialize specific type of segment
- Default implementation is MMappedQueryableSegmentizerFactory which creates QueryableIndexSegment
- Unit test for the default behavior
@pjain1 pjain1 added this to the 0.10.0 milestone Feb 2, 2017
@nishantmonu51 nishantmonu51 self-assigned this Feb 5, 2017
Copy link
Copy Markdown
Member

@nishantmonu51 nishantmonu51 left a comment

Choose a reason for hiding this comment

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

👍

progress.progress();
startTime = System.currentTimeMillis();
FileOutputStream fos = new FileOutputStream(new File(outDir, "factory.json"));
mapper.writeValue(fos, new MMappedQueryableSegmentizerFactory(indexIO));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

close this in finally or use try with resources

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@b-slim b-slim merged commit 8a13a85 into apache:master Feb 6, 2017
@pjain1 pjain1 deleted the segmentizer branch May 6, 2017 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants