Class SimpleIndexEntry
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.tar.index.SimpleIndexEntry
-
- All Implemented Interfaces:
IndexEntry,SegmentArchiveEntry
public class SimpleIndexEntry extends Object implements IndexEntry
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.segment.file.tar.index.IndexEntry
POSITION_ORDER
-
-
Constructor Summary
Constructors Constructor Description SimpleIndexEntry(long msb, long lsb, int position, int length, int generation, int fullGeneration, boolean compacted)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Method Detail
-
getMsb
public long getMsb()
Description copied from interface:IndexEntryReturn the most significant bits of the identifier of this entry.- Specified by:
getMsbin interfaceIndexEntry- Specified by:
getMsbin interfaceSegmentArchiveEntry- Returns:
- the most significant bits of the identifier of this entry.
-
getLsb
public long getLsb()
Description copied from interface:IndexEntryReturn the least significant bits of the identifier of this entry.- Specified by:
getLsbin interfaceIndexEntry- Specified by:
getLsbin interfaceSegmentArchiveEntry- Returns:
- the least significant bits of the identifier of this entry.
-
getPosition
public int getPosition()
Description copied from interface:IndexEntryReturn the position of this entry in the TAR file.- Specified by:
getPositionin interfaceIndexEntry- Returns:
- the position of this entry in the TAR file.
-
getLength
public int getLength()
Description copied from interface:IndexEntryReturn the length of this entry in the TAR file.- Specified by:
getLengthin interfaceIndexEntry- Specified by:
getLengthin interfaceSegmentArchiveEntry- Returns:
- the length of this entry in the TAR file.
-
getGeneration
public int getGeneration()
Description copied from interface:IndexEntryReturn the generation of this entry.- Specified by:
getGenerationin interfaceIndexEntry- Specified by:
getGenerationin interfaceSegmentArchiveEntry- Returns:
- the generation of this entry.
-
getFullGeneration
public int getFullGeneration()
Description copied from interface:IndexEntryReturn the full generation of this entry.- Specified by:
getFullGenerationin interfaceIndexEntry- Specified by:
getFullGenerationin interfaceSegmentArchiveEntry- Returns:
- the full generation of this entry.
-
isCompacted
public boolean isCompacted()
Description copied from interface:IndexEntryReturntrueif this entry was generated by a compaction operation.- Specified by:
isCompactedin interfaceIndexEntry- Specified by:
isCompactedin interfaceSegmentArchiveEntry- Returns:
trueif this entry was generated by a compaction operation.
-
-