|
|||||||||
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 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 long getUndefinedSize()
getUndefinedSize
in interface ImportIDSet
public void setUndefined()
setUndefined
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 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 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 int size()
size
in interface ImportIDSet
public byte[] toDatabase()
toDatabase
in interface ImportIDSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |