SegmentManager manager = new SegmentManager(...); Segment segment = manager.nextSegment(); while(...) { try { segment.append(...); } catch(SegmentOverflowException e) { segment.force(); manager.updateMeta(); segment = manger.nextSegment(); } }@author jwu @since 02/05, 2010
05/24, 2010 - Always try to open the manager upon call to SegmentManager.getInstance(...)
02/14, 2012 - Remove the last segment file after being freed
09/04, 2012 - Validate lastForcedTime upon loading segment index buffer
|
|
|
|
|
|
|
|
|
|
|
|
|
|