public class StatsFileHandler extends Object
Constructor and Description |
---|
StatsFileHandler(SnapshotManager snapshotManager,
SchemaManager schemaManager,
StatsFile statsFile) |
Modifier and Type | Method and Description |
---|---|
void |
deleteStats(long snapshotId)
Delete stats of the specified snapshot.
|
void |
deleteStats(String statistic) |
Optional<Statistics> |
readStats()
Read stats of the latest snapshot.
|
Optional<Statistics> |
readStats(long snapshotId)
Read stats of the specified snapshot.
|
Optional<Statistics> |
readStats(Snapshot snapshot) |
Statistics |
readStats(String file) |
String |
writeStats(Statistics stats)
Write stats to a stats file.
|
public StatsFileHandler(SnapshotManager snapshotManager, SchemaManager schemaManager, StatsFile statsFile)
public String writeStats(Statistics stats)
public Optional<Statistics> readStats()
public Optional<Statistics> readStats(long snapshotId)
public Optional<Statistics> readStats(Snapshot snapshot)
public Statistics readStats(String file)
public void deleteStats(long snapshotId)
public void deleteStats(String statistic)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.