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 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.
-
-
-
Method Detail
-
getMsb
public long getMsb()
Description copied from interface:IndexEntry
Return the most significant bits of the identifier of this entry.- Specified by:
getMsb
in interfaceIndexEntry
- Specified by:
getMsb
in interfaceSegmentArchiveEntry
- Returns:
- the most significant bits of the identifier of this entry.
-
getLsb
public long getLsb()
Description copied from interface:IndexEntry
Return the least significant bits of the identifier of this entry.- Specified by:
getLsb
in interfaceIndexEntry
- Specified by:
getLsb
in interfaceSegmentArchiveEntry
- Returns:
- the least significant bits of the identifier of this entry.
-
getPosition
public int getPosition()
Description copied from interface:IndexEntry
Return the position of this entry in the TAR file.- Specified by:
getPosition
in interfaceIndexEntry
- Returns:
- the position of this entry in the TAR file.
-
getLength
public int getLength()
Description copied from interface:IndexEntry
Return the length of this entry in the TAR file.- Specified by:
getLength
in interfaceIndexEntry
- Specified by:
getLength
in interfaceSegmentArchiveEntry
- Returns:
- the length of this entry in the TAR file.
-
getGeneration
public int getGeneration()
Description copied from interface:IndexEntry
Return the generation of this entry.- Specified by:
getGeneration
in interfaceIndexEntry
- Specified by:
getGeneration
in interfaceSegmentArchiveEntry
- Returns:
- the generation of this entry.
-
getFullGeneration
public int getFullGeneration()
Description copied from interface:IndexEntry
Return the full generation of this entry.- Specified by:
getFullGeneration
in interfaceIndexEntry
- Specified by:
getFullGeneration
in interfaceSegmentArchiveEntry
- Returns:
- the full generation of this entry.
-
isCompacted
public boolean isCompacted()
Description copied from interface:IndexEntry
Returntrue
if this entry was generated by a compaction operation.- Specified by:
isCompacted
in interfaceIndexEntry
- Specified by:
isCompacted
in interfaceSegmentArchiveEntry
- Returns:
true
if this entry was generated by a compaction operation.
-
-