Package org.apache.accumulo.core.gc
Class ReferenceDirectory
- java.lang.Object
-
- org.apache.accumulo.core.gc.ReferenceFile
-
- org.apache.accumulo.core.gc.ReferenceDirectory
-
- All Implemented Interfaces:
Comparable<ReferenceFile>
,Reference
public class ReferenceDirectory extends ReferenceFile
A GC reference to a Tablet directory, like t-0003.
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.core.gc.ReferenceFile
metadataEntry, tableId
-
-
Constructor Summary
Constructors Constructor Description ReferenceDirectory(TableId tableId, String dirName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMetadataEntry()
A Tablet directory should have a metadata entry equal to the dirName.String
getTabletDir()
boolean
isDirectory()
Only return true if the reference is a directory.-
Methods inherited from class org.apache.accumulo.core.gc.ReferenceFile
compareTo, equals, getTableId, hashCode, toString
-
-
-
-
Method Detail
-
isDirectory
public boolean isDirectory()
Description copied from interface:Reference
Only return true if the reference is a directory.- Specified by:
isDirectory
in interfaceReference
- Overrides:
isDirectory
in classReferenceFile
-
getTabletDir
public String getTabletDir()
-
getMetadataEntry
public String getMetadataEntry()
A Tablet directory should have a metadata entry equal to the dirName.- Specified by:
getMetadataEntry
in interfaceReference
- Overrides:
getMetadataEntry
in classReferenceFile
-
-