Structs§
Constants§
Functions§
- copy_
file - copy_
files - copy_
recursively - Copies all files in the directory from the source store to the destination store.
- delete_
files - delete_
recursively - exists
- find_
all_ dirs_ with_ epoch_ prefix - This function will find all child directories in the input store which are of the form “epoch_num” and return a map of epoch number to the directory path
- find_
all_ files_ with_ epoch_ prefix - This function will find all child directories in the input store which are of the form “epoch_num” and return a map of epoch number to the directory path
- find_
missing_ epochs_ dirs - This function will find missing epoch directories in the input store and
return a list of such epoch numbers. If the highest epoch directory in the
store is
epoch_N
then it is expected that the store will have all epoch directories fromepoch_0
toepoch_N
. Additionally, any epoch directory should have the passed in marker file present or else that epoch number is already considered as missing. The returned list will contain epoch_N+1. - get
- get_
path - list_
all_ epochs - Finds all epochs in the store and returns them as a sorted list.
- path_
to_ filesystem - put
- Writes bytes in the store with specified path.
- run_
manifest_ update_ loop - Writes the epochs existed in the store to the root MANIFEST (contains only a list of epochs in the store) every 300 seconds.
- write_
snapshot_ manifest