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 intgetFullGeneration()Return the full generation of this entry.intgetGeneration()Return the generation of this entry.intgetLength()Return the length of this entry in the TAR file.longgetLsb()Return the least significant bits of the identifier of this entry.longgetMsb()Return the most significant bits of the identifier of this entry.intgetPosition()Return the position of this entry in the TAR file.booleanisCompacted()Returntrueif 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:
getMsbin 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:
getLsbin 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:
getLengthin interfaceSegmentArchiveEntry- Returns:
- the length of this entry in the TAR file.
-
getGeneration
int getGeneration()
Return the generation of this entry.- Specified by:
getGenerationin interfaceSegmentArchiveEntry- Returns:
- the generation of this entry.
-
getFullGeneration
int getFullGeneration()
Return the full generation of this entry.- Specified by:
getFullGenerationin interfaceSegmentArchiveEntry- Returns:
- the full generation of this entry.
-
isCompacted
boolean isCompacted()
Returntrueif this entry was generated by a compaction operation.- Specified by:
isCompactedin interfaceSegmentArchiveEntry- Returns:
trueif this entry was generated by a compaction operation.
-
-