Class RecordIdSet
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.RecordIdSet
-
public class RecordIdSet extends java.lang.Object
A memory optimised set ofRecordId
s. The set doesn't keep references to the actual record ids it contains.
-
-
Constructor Summary
Constructors Constructor Description RecordIdSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addIfNotPresent(RecordId id)
Addid
to this set if not already presentboolean
contains(RecordId id)
Check whetherid
is present is this set.
-
-
-
Method Detail
-
addIfNotPresent
public boolean addIfNotPresent(RecordId id)
Addid
to this set if not already present- Parameters:
id
- the record id to add- Returns:
true
if added,false
if already present
-
contains
public boolean contains(RecordId id)
Check whetherid
is present is this set.- Parameters:
id
- the record id to check for- Returns:
true
iffid
is present.
-
-