Package org.apache.accumulo.core.gc
Class ReferenceFile
- java.lang.Object
-
- org.apache.accumulo.core.gc.ReferenceFile
-
- All Implemented Interfaces:
Comparable<ReferenceFile>
,Reference
- Direct Known Subclasses:
ReferenceDirectory
public class ReferenceFile extends Object implements Reference, Comparable<ReferenceFile>
A GC reference used for streaming and delete markers. This type is a file. Subclass is a directory.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
metadataEntry
TableId
tableId
-
Constructor Summary
Constructors Constructor Description ReferenceFile(TableId tableId, String metadataEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ReferenceFile that)
boolean
equals(Object obj)
String
getMetadataEntry()
Get the exact string stored in the metadata table for this file or directory.TableId
getTableId()
Get theTableId
of the reference.int
hashCode()
boolean
isDirectory()
Only return true if the reference is a directory.String
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
-
getTableId
public TableId getTableId()
Description copied from interface:Reference
Get theTableId
of the reference.- Specified by:
getTableId
in interfaceReference
-
getMetadataEntry
public String getMetadataEntry()
Description copied from interface:Reference
Get the exact string stored in the metadata table for this file or directory. A file will be read from the Tablet "file" column family:MetadataSchema.TabletsSection.DataFileColumnFamily
A directory will be read from the "srv:dir" column family:MetadataSchema.TabletsSection.ServerColumnFamily
- Specified by:
getMetadataEntry
in interfaceReference
-
compareTo
public int compareTo(ReferenceFile that)
- Specified by:
compareTo
in interfaceComparable<ReferenceFile>
-
-