public static final SegmentWithRange encode ( final SegmentRange segmentRange ) { return new SegmentWithRange ( encode ( segmentRange . getSegmentId ( ) ) , segmentRange . getMinKey ( ) , segmentRange . getMaxKey ( ) ) ; }
Helper to convert SegmentRange to SegmentWithRange .