public interface GarbageCollectionEnvironment
| Modifier and Type | Method and Description |
|---|---|
void |
delete(SortedMap<String,String> candidateMap)
Delete the given files from the provided
Map of relative path to absolute path for each file that should be deleted |
void |
deleteTableDirIfEmpty(String tableID)
Delete a table's directory if it is empty.
|
Iterator<String> |
getBlipIterator()
Fetch a list of paths for all bulk loads in progress (blip) from a given table,
RootTable.NAME or MetadataTable.NAME |
List<String> |
getCandidates(String continuePoint)
Return a list of paths to files and dirs which are candidates for deletion from a given table,
RootTable.NAME or MetadataTable.NAME |
Iterator<Map.Entry<Key,Value>> |
getReferenceIterator()
Fetches the references to files,
MetadataSchema.TabletsSection.DataFileColumnFamily.NAME or MetadataSchema.TabletsSection.ScanFileColumnFamily.NAME, from tablets |
Iterator<Map.Entry<String,Replication.Status>> |
getReplicationNeededIterator()
Determine if the given absolute file is still pending replication
|
Set<String> |
getTableIDs()
Return the set of tableIDs for the given instance this GarbageCollector is running over
|
void |
incrementCandidatesStat(long i)
Increment the number of candidates for deletion for the current garbage collection run
|
void |
incrementInUseStat(long i)
Increment the number of files still in use for the current garbage collection run
|
List<String> getCandidates(String continuePoint) throws TableNotFoundException, AccumuloException, AccumuloSecurityException
RootTable.NAME or MetadataTable.NAMEcontinuePoint - A row to resume from if a previous invocation was stopped due to finding an extremely large number of candidates to remove which would have
exceeded memory limitationsTableNotFoundExceptionAccumuloExceptionAccumuloSecurityExceptionIterator<String> getBlipIterator() throws TableNotFoundException, AccumuloException, AccumuloSecurityException
RootTable.NAME or MetadataTable.NAMETableNotFoundExceptionAccumuloExceptionAccumuloSecurityExceptionIterator<Map.Entry<Key,Value>> getReferenceIterator() throws TableNotFoundException, AccumuloException, AccumuloSecurityException
MetadataSchema.TabletsSection.DataFileColumnFamily.NAME or MetadataSchema.TabletsSection.ScanFileColumnFamily.NAME, from tabletsIterator of Map.Entry<Key, Value> which constitute a reference to a file.TableNotFoundExceptionAccumuloExceptionAccumuloSecurityExceptionSet<String> getTableIDs()
void delete(SortedMap<String,String> candidateMap) throws IOException, AccumuloException, AccumuloSecurityException, TableNotFoundException
Map of relative path to absolute path for each file that should be deletedcandidateMap - A Map from relative path to absolute path for files to be deleted.IOExceptionAccumuloExceptionAccumuloSecurityExceptionTableNotFoundExceptionvoid deleteTableDirIfEmpty(String tableID) throws IOException
tableID - The id of the table whose directory we are to operate onIOExceptionvoid incrementCandidatesStat(long i)
i - Value to increment the deletion candidates byvoid incrementInUseStat(long i)
i - Value to increment the still-in-use count by.Iterator<Map.Entry<String,Replication.Status>> getReplicationNeededIterator() throws AccumuloException, AccumuloSecurityException
AccumuloExceptionAccumuloSecurityExceptionCopyright © 2015 Apache Accumulo Project. All rights reserved.