public final class FolderIndexDeferredUpdate extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
m_Id
The id of the deferred update entry
|
protected long |
m_LeftId
The left id (parent folder)
|
protected int |
m_Level
The map level.
|
protected int |
m_OperationType
The operation type.
|
protected String |
m_PartitionTableName
The name of the partition table, or null if for the main FolderIndex.
|
protected long |
m_RightId
The right id (child folder)
|
protected long |
m_TargetId
The target id (folder that is destination of a Move)
|
static int |
OPERATION_TYPE_ADD_TO_FOLDER
The operation type for adding a folder to a folder,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_CREATE_AND_ADD_TO_FOLDER
The operation type for adding a folder to a folder after creating the Folder,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_FREE_FOLDER
The operation type for freeing a folder,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_MOVE_FOLDER
The operation type for moving a folder from one parent to another,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_NEW_FOLDER
The operation type for a new folder,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_NO_OPERATION
The operation type for a no-op.
|
static int |
OPERATION_TYPE_PROMOTE_FOLDER
The operation type for promoting a folder,
for creating a folder index deferred update entry.
|
static int |
OPERATION_TYPE_REMOVE_FROM_FOLDER
The operation type for removing a folder from a folder,
for creating a folder index deferred update entry.
|
Constructor and Description |
---|
FolderIndexDeferredUpdate(long id,
int opType,
long leftId,
long rightId,
int level)
Constructs a FolderIndexDeferredUpdate.
|
FolderIndexDeferredUpdate(String partTable,
int opType,
long leftId,
long rightId)
Constructs a FolderIndexDeferredUpdate.
|
FolderIndexDeferredUpdate(String partTable,
int opType,
long leftId,
long rightId,
long targetId)
Constructs a FolderIndexDeferredUpdate.
|
Modifier and Type | Method and Description |
---|---|
long |
getId()
Gets the id of the entry
|
long |
getLeftId()
Gets the left ID for the entry
|
int |
getLevel()
Gets the map level for the entry
|
int |
getOperationType()
Gets the operation type for the entry
|
String |
getPartitionTableName()
Gets the name of the partition table, or null if for the main FolderIndex.
|
long |
getRightId()
Gets the right ID for the entry
|
long |
getTargetId()
Gets the target ID for the entry
|
public static final int OPERATION_TYPE_NO_OPERATION
Current value is 0.
public static final int OPERATION_TYPE_NEW_FOLDER
Current value is 1.
public static final int OPERATION_TYPE_FREE_FOLDER
Current value is 2.
public static final int OPERATION_TYPE_ADD_TO_FOLDER
Current value is 3.
public static final int OPERATION_TYPE_REMOVE_FROM_FOLDER
Current value is 4.
public static final int OPERATION_TYPE_PROMOTE_FOLDER
Current value is 5.
public static final int OPERATION_TYPE_CREATE_AND_ADD_TO_FOLDER
Current value is 6.
public static final int OPERATION_TYPE_MOVE_FOLDER
Current value is 7.
protected String m_PartitionTableName
protected long m_Id
protected int m_OperationType
protected long m_LeftId
protected long m_RightId
protected long m_TargetId
protected int m_Level
public FolderIndexDeferredUpdate(long id, int opType, long leftId, long rightId, int level)
This variant is used when reading FolderIndexDeferredUpdate entries from the Database.
id
- the id of the entry inthe folder index update tableopType
- the operation typeleftId
- the ID of the parent folderrightId
- the ID of the child folderlevel
- the folder index map levelpublic FolderIndexDeferredUpdate(String partTable, int opType, long leftId, long rightId)
This variant is used in the partition handler, which uses this structure to equest the FolderIndexService to apply updates to a FolderIndex partition.
partTable
- the partition table nameopType
- the operation typeleftId
- the ID of the parent folderrightId
- the ID of the child folderpublic FolderIndexDeferredUpdate(String partTable, int opType, long leftId, long rightId, long targetId)
This variant is used in the partition handler, which uses this structure to equest the FolderIndexService to apply updates to a FolderIndex partition.
partTable
- the partition table nameopType
- the operation typeleftId
- the ID of the parent folderrightId
- the ID of the child foldertargetId
- the ID of the target folder (for Move only)public final String getPartitionTableName()
public final long getId()
public final int getOperationType()
public final long getLeftId()
public final long getRightId()
public final long getTargetId()
public final int getLevel()
Copyright © 2025. All rights reserved.