|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.importLDIF.LongImportIDSet
public class LongImportIDSet
A import ID set backed by an array of longs.
Constructor Summary | |
---|---|
LongImportIDSet()
Create an empty instance. |
|
LongImportIDSet(EntryID id)
Create instance and add specified entry ID to the set. |
Method Summary | |
---|---|
void |
addEntryID(EntryID entryID,
int limit,
boolean maintainCount)
Add an entry ID to the set. |
int |
getMemorySize()
Return the memory size of a set. |
long |
getUndefinedSize()
Return the undefined size. |
boolean |
isDefined()
Return if a set is defined or not. |
boolean |
merge(byte[] DBbytes,
ImportIDSet importIdSet,
int limit,
boolean maintainCount)
Merge a byte array read from DB with a ID set. |
void |
merge(ImportIDSet importIDSet,
int limit,
boolean maintainCount)
Merge the specified import ID set with the current import ID set using the specified entry limit an maintain count values. |
void |
reset()
Reset set. |
void |
setEntryID(EntryID id)
Set the first entry ID to the specified entry ID. |
void |
setUndefined()
Set the import ID set to the undefined state. |
int |
size()
Return the size of the set. |
byte[] |
toDatabase()
Convert a set to a byte array suitable for saving to DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongImportIDSet()
public LongImportIDSet(EntryID id)
id
- The entry ID.Method Detail |
---|
public void setEntryID(EntryID id)
setEntryID
in interface ImportIDSet
id
- The entry ID to use.public void reset()
reset
in interface ImportIDSet
public boolean isDefined()
isDefined
in interface ImportIDSet
True
if a set is defined.public void setUndefined()
setUndefined
in interface ImportIDSet
public long getUndefinedSize()
getUndefinedSize
in interface ImportIDSet
public int getMemorySize()
getMemorySize
in interface ImportIDSet
public void merge(ImportIDSet importIDSet, int limit, boolean maintainCount)
merge
in interface ImportIDSet
importIDSet
- The import ID set to merge.limit
- The entry limit to use.maintainCount
- True
if maintain count is being kept.public boolean merge(byte[] DBbytes, ImportIDSet importIdSet, int limit, boolean maintainCount)
merge
in interface ImportIDSet
DBbytes
- The byte array read from DB.importIdSet
- The import ID set to merge.limit
- The entry limit.maintainCount
- Maintain count of iDs if in undefined mode.
True
if the merged set is undefined.public void addEntryID(EntryID entryID, int limit, boolean maintainCount)
addEntryID
in interface ImportIDSet
entryID
- The entry ID to add.limit
- The entry limit.maintainCount
- Maintain count of IDs if in undefined mode.public byte[] toDatabase()
toDatabase
in interface ImportIDSet
public int size()
size
in interface ImportIDSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |