|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.backends.jeb.importLDIF.IntegerImportIDSet
public class IntegerImportIDSet
An import ID set backed by an array of ints.
| Constructor Summary | |
|---|---|
IntegerImportIDSet()
Create an empty import set. |
|
IntegerImportIDSet(EntryID id)
Create an import set and add the specified entry ID to it. |
|
| 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 IntegerImportIDSet()
public IntegerImportIDSet(EntryID id)
id - The entry ID.| Method Detail |
|---|
public void setEntryID(EntryID id)
setEntryID in interface ImportIDSetid - The entry ID to use.public void reset()
reset in interface ImportIDSetpublic boolean isDefined()
isDefined in interface ImportIDSetTrue if a set is defined.public long getUndefinedSize()
getUndefinedSize in interface ImportIDSetpublic void setUndefined()
setUndefined in interface ImportIDSetpublic int getMemorySize()
getMemorySize in interface ImportIDSet
public void merge(ImportIDSet importIDSet,
int limit,
boolean maintainCount)
merge in interface ImportIDSetimportIDSet - The import ID set to merge.limit - The entry limit to use.maintainCount - True if maintain count is being kept.
public void addEntryID(EntryID entryID,
int limit,
boolean maintainCount)
addEntryID in interface ImportIDSetentryID - The entry ID to add.limit - The entry limit.maintainCount - Maintain count of IDs if in undefined mode.
public boolean merge(byte[] dBbytes,
ImportIDSet importIdSet,
int limit,
boolean maintainCount)
merge in interface ImportIDSetdBbytes - 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 int size()
size in interface ImportIDSetpublic byte[] toDatabase()
toDatabase in interface ImportIDSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||