public static class ProcedureStoreTracker.BitSetNode extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
ADDRESS_BITS_PER_WORD |
private static int |
BITS_PER_WORD |
private long[] |
deleted |
private static int |
MAX_NODE_SIZE |
private boolean |
partial |
private long |
start |
private long[] |
updated |
private static long |
WORD_MASK |
Modifier | Constructor and Description |
---|---|
|
ProcedureStoreTracker.BitSetNode(long procId,
boolean partial) |
protected |
ProcedureStoreTracker.BitSetNode(long start,
long[] updated,
long[] deleted) |
Modifier and Type | Method and Description |
---|---|
private static long |
alignDown(long x) |
private static long |
alignUp(long x) |
boolean |
canGrow(long procId) |
boolean |
canMerge(ProcedureStoreTracker.BitSetNode rightNode) |
boolean |
contains(long procId) |
org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode |
convert() |
static ProcedureStoreTracker.BitSetNode |
convert(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode data) |
void |
delete(long procId) |
void |
dump() |
private int |
getBitmapIndex(long procId) |
Long |
getEnd() |
long |
getMaxProcId() |
long |
getMinProcId() |
Long |
getStart() |
void |
grow(long procId) |
ProcedureStoreTracker.DeleteState |
isDeleted(long procId) |
boolean |
isEmpty() |
boolean |
isUpdated() |
private boolean |
isUpdated(long procId) |
void |
merge(ProcedureStoreTracker.BitSetNode rightNode) |
void |
resetUpdates() |
String |
toString() |
void |
undeleteAll() |
void |
unsetPartialFlag() |
void |
update(long procId) |
private void |
updateState(long procId,
boolean isDeleted) |
private static final long WORD_MASK
private static final int ADDRESS_BITS_PER_WORD
private static final int BITS_PER_WORD
private static final int MAX_NODE_SIZE
private final boolean partial
private long[] updated
private long[] deleted
private long start
public ProcedureStoreTracker.BitSetNode(long procId, boolean partial)
protected ProcedureStoreTracker.BitSetNode(long start, long[] updated, long[] deleted)
public void dump()
public void update(long procId)
public void delete(long procId)
public Long getStart()
public Long getEnd()
public boolean contains(long procId)
public ProcedureStoreTracker.DeleteState isDeleted(long procId)
private boolean isUpdated(long procId)
public boolean isUpdated()
public boolean isEmpty()
public void resetUpdates()
public void undeleteAll()
public void unsetPartialFlag()
public org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode convert()
public static ProcedureStoreTracker.BitSetNode convert(org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureStoreTracker.TrackerNode data)
public boolean canGrow(long procId)
public boolean canMerge(ProcedureStoreTracker.BitSetNode rightNode)
public void grow(long procId)
public void merge(ProcedureStoreTracker.BitSetNode rightNode)
public long getMinProcId()
public long getMaxProcId()
private int getBitmapIndex(long procId)
private void updateState(long procId, boolean isDeleted)
private static long alignUp(long x)
private static long alignDown(long x)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.