public OutSegment(TableKelp table,PageServiceSync tableService,TableWriterServiceImpl readWrite,SegmentKelp segment){
  Objects.requireNonNull(table);
  Objects.requireNonNull(tableService);
  Objects.requireNonNull(readWrite);
  Objects.requireNonNull(segment);
  _table=table;
  _readWrite=readWrite;
  _segment=segment;
  if (!_segment.isWriting()) {
    throw new IllegalStateException(String.valueOf(_segment));
  }
  _indexTempBuf=TempBuffer.createLarge();
  _indexBuffer=_indexTempBuf.buffer();
  _indexAddress=_segment.length() - BLOCK_SIZE;
  fillHeader();
  _compressor=readWrite.compressor();
  _sOut=_readWrite.openWrite(segment.extent());
}

public OutSegment ( TableKelp table , PageServiceSync tableService , TableWriterServiceImpl readWrite , SegmentKelp segment ) { Objects . requireNonNull ( table ) ; Objects . requireNonNull ( tableService ) ; Objects . requireNonNull ( readWrite ) ; Objects . requireNonNull ( segment ) ; _table = table ; _readWrite = readWrite ; _segment = segment ; if ( ! _segment . isWriting ( ) ) { throw new IllegalStateException ( String . valueOf ( _segment ) ) ; } _indexTempBuf = TempBuffer . createLarge ( ) ; _indexBuffer = _indexTempBuf . buffer ( ) ; _indexAddress = _segment . length ( ) - BLOCK_SIZE ; fillHeader ( ) ; _compressor = readWrite . compressor ( ) ; _sOut = _readWrite . openWrite ( segment . extent ( ) ) ; }
creates a new store .
