Interface IndexEntry
-
- All Superinterfaces:
SegmentArchiveEntry
- All Known Implementing Classes:
SimpleIndexEntry
public interface IndexEntry extends SegmentArchiveEntry
An entry in the index of entries of a TAR file.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<IndexEntry>
POSITION_ORDER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getFullGeneration()
Return the full generation of this entry.int
getGeneration()
Return the generation of this entry.int
getLength()
Return the length of this entry in the TAR file.long
getLsb()
Return the least significant bits of the identifier of this entry.long
getMsb()
Return the most significant bits of the identifier of this entry.int
getPosition()
Return the position of this entry in the TAR file.boolean
isCompacted()
Returntrue
if this entry was generated by a compaction operation.
-
-
-
Field Detail
-
POSITION_ORDER
static final Comparator<IndexEntry> POSITION_ORDER
-
-
Method Detail
-
getMsb
long getMsb()
Return the most significant bits of the identifier of this entry.- Specified by:
getMsb
in interfaceSegmentArchiveEntry
- Returns:
- the most significant bits of the identifier of this entry.
-
getLsb
long getLsb()
Return the least significant bits of the identifier of this entry.- Specified by:
getLsb
in interfaceSegmentArchiveEntry
- Returns:
- the least significant bits of the identifier of this entry.
-
getPosition
int getPosition()
Return the position of this entry in the TAR file.- Returns:
- the position of this entry in the TAR file.
-
getLength
int getLength()
Return the length of this entry in the TAR file.- Specified by:
getLength
in interfaceSegmentArchiveEntry
- Returns:
- the length of this entry in the TAR file.
-
getGeneration
int getGeneration()
Return the generation of this entry.- Specified by:
getGeneration
in interfaceSegmentArchiveEntry
- Returns:
- the generation of this entry.
-
getFullGeneration
int getFullGeneration()
Return the full generation of this entry.- Specified by:
getFullGeneration
in interfaceSegmentArchiveEntry
- Returns:
- the full generation of this entry.
-
isCompacted
boolean isCompacted()
Returntrue
if this entry was generated by a compaction operation.- Specified by:
isCompacted
in interfaceSegmentArchiveEntry
- Returns:
true
if this entry was generated by a compaction operation.
-
-