Write persists one or more Blocks into a directory. No Block is written when resulting Block has 0 samples and returns an empty slice. Prometheus always return one or no block. The interface allows returning more than one block for downstream users to experiment with compactor.
(dest string, b BlockReader, mint, maxt int64, base *BlockMeta)
| 62 | // Prometheus always return one or no block. The interface allows returning more than one |
| 63 | // block for downstream users to experiment with compactor. |
| 64 | Write(dest string, b BlockReader, mint, maxt int64, base *BlockMeta) ([]ulid.ULID, error) |
| 65 | |
| 66 | // Compact runs compaction against the provided directories. Must |
| 67 | // only be called concurrently with results of Plan(). |
no outgoing calls