public Compactor snapshotIndex(long index){
  this.snapshotIndex=Math.max(this.snapshotIndex,index);
  return this;
}

public Compactor snapshotIndex ( long index ) { this . snapshotIndex = Math . max ( this . snapshotIndex , index ) ; return this ; }
sets the snapshot index to indicate commands entries that can be removed during compaction .
