public OutSegment openWriter ( ) { if ( isGcRequired ( ) ) { // _gcSequence = _seqGen.get(); _table . getGcService ( ) . gc ( _seqGen . get ( ) ) ; _seqSinceGcCount = 0 ; } _seqSinceGcCount ++ ; long sequence = _seqGen . get ( ) ; return openWriterSeq ( sequence ) ; }
Opens a new segment writer . The segment s sequence id will be the next sequence number .