@InterfaceAudience.Private @InterfaceStability.Evolving public class ProcedureStoreTracker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProcedureStoreTracker.BitSetNode |
static class |
ProcedureStoreTracker.DeleteState |
Modifier and Type | Field and Description |
---|---|
private boolean |
keepDeletes |
private TreeMap<Long,ProcedureStoreTracker.BitSetNode> |
map |
private long |
maxUpdatedProcId |
private long |
minUpdatedProcId |
private boolean |
partial |
Constructor and Description |
---|
ProcedureStoreTracker() |
Modifier and Type | Method and Description |
---|---|
void |
delete(long procId) |
void |
dump() |
long |
getMinProcId() |
private ProcedureStoreTracker.BitSetNode |
getOrCreateNode(long procId) |
long |
getUpdatedMaxProcId() |
long |
getUpdatedMinProcId() |
private ProcedureStoreTracker.BitSetNode |
growNode(ProcedureStoreTracker.BitSetNode node,
long procId) |
void |
insert(long procId) |
void |
insert(long procId,
long[] subProcIds) |
ProcedureStoreTracker.DeleteState |
isDeleted(long procId) |
boolean |
isEmpty() |
boolean |
isTracking(long minId,
long maxId) |
boolean |
isUpdated() |
private ProcedureStoreTracker.BitSetNode |
mergeNodes(ProcedureStoreTracker.BitSetNode leftNode,
ProcedureStoreTracker.BitSetNode rightNode) |
void |
readFrom(InputStream stream) |
void |
reset() |
void |
resetUpdates() |
void |
setDeleted(long procId,
boolean isDeleted) |
void |
setKeepDeletes(boolean keepDeletes) |
void |
setPartialFlag(boolean isPartial) |
private void |
trackProcIds(long procId) |
void |
undeleteAll() |
void |
update(long procId) |
void |
writeTo(OutputStream stream) |
private final TreeMap<Long,ProcedureStoreTracker.BitSetNode> map
private boolean keepDeletes
private boolean partial
private long minUpdatedProcId
private long maxUpdatedProcId
public void insert(long procId)
public void insert(long procId, long[] subProcIds)
public void update(long procId)
public void delete(long procId)
private void trackProcIds(long procId)
public long getUpdatedMinProcId()
public long getUpdatedMaxProcId()
@InterfaceAudience.Private public void setDeleted(long procId, boolean isDeleted)
public void reset()
public ProcedureStoreTracker.DeleteState isDeleted(long procId)
public long getMinProcId()
public void setKeepDeletes(boolean keepDeletes)
public void setPartialFlag(boolean isPartial)
public boolean isEmpty()
public boolean isUpdated()
public boolean isTracking(long minId, long maxId)
public void resetUpdates()
public void undeleteAll()
private ProcedureStoreTracker.BitSetNode getOrCreateNode(long procId)
private ProcedureStoreTracker.BitSetNode growNode(ProcedureStoreTracker.BitSetNode node, long procId)
private ProcedureStoreTracker.BitSetNode mergeNodes(ProcedureStoreTracker.BitSetNode leftNode, ProcedureStoreTracker.BitSetNode rightNode)
public void dump()
public void writeTo(OutputStream stream) throws IOException
IOException
public void readFrom(InputStream stream) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.