@InterfaceAudience.Private public interface FileArchiverNotifier
computeAndStoreSnapshotSizes(Collection)are mutually exclusive. If a "full" computation is in progress, new changes being archived should be held.
|Modifier and Type||Method and Description|
Records a file and its size in bytes being moved to the archive directory.
Computes the size of a table and all of its snapshots, recording new "full" sizes for each.
void addArchivedFiles(Set<Map.Entry<String,Long>> fileSizes) throws IOException
fileSizes- A collection of file name to size in bytes
IOException- If there was an IO-related error persisting the file size(s)
long computeAndStoreSnapshotSizes(Collection<String> currentSnapshots) throws IOException
currentSnapshots- the current list of snapshots against this table
IOException- If there was an IO-related error computing or persisting the sizes.
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.