IsTrivialMove returns a trivial compaction that can be implemented by just moving a single input file to the next level (no merging or splitting). returns true: can just move file to the next level.
()
| 45 | // moving a single input file to the next level (no merging or splitting). |
| 46 | // returns true: can just move file to the next level. |
| 47 | func (c *Compaction) IsTrivialMove() bool { |
| 48 | return len(c.levelInputs) == 1 && len(c.levelUpInputs) == 0 |
| 49 | } |
| 50 | |
| 51 | // GetLevelFiles returns low level files. |
| 52 | func (c *Compaction) GetLevelFiles() []*FileMeta { |
no outgoing calls