|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GarbageCollectionEnvironment
| Method Summary | |
|---|---|
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 |
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 |
| Method Detail |
|---|
List<String> getCandidates(String continuePoint)
throws TableNotFoundException,
AccumuloException,
AccumuloSecurityException
RootTable.NAME or MetadataTable.NAME
continuePoint - 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 limitations
TableNotFoundException
AccumuloException
AccumuloSecurityException
Iterator<String> getBlipIterator()
throws TableNotFoundException,
AccumuloException,
AccumuloSecurityException
RootTable.NAME or MetadataTable.NAME
TableNotFoundException
AccumuloException
AccumuloSecurityException
Iterator<Map.Entry<Key,Value>> getReferenceIterator()
throws TableNotFoundException,
AccumuloException,
AccumuloSecurityException
MetadataSchema.TabletsSection.DataFileColumnFamily.NAME or MetadataSchema.TabletsSection.ScanFileColumnFamily.NAME, from tablets
Iterator of Map.Entry<Key, Value> which constitute a reference to a file.
TableNotFoundException
AccumuloException
AccumuloSecurityExceptionSet<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 deleted
candidateMap - A Map from relative path to absolute path for files to be deleted.
IOException
AccumuloException
AccumuloSecurityException
TableNotFoundException
void deleteTableDirIfEmpty(String tableID)
throws IOException
tableID - The id of the table whose directory we are to operate on
IOExceptionvoid incrementCandidatesStat(long i)
i - Value to increment the deletion candidates byvoid incrementInUseStat(long i)
i - Value to increment the still-in-use count by.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||