Interface TabletCommitter
-
- All Known Implementing Classes:
Tablet
public interface TabletCommitter
A partial interface of Tablet to allow for testing of CommitSession without needing a real Tablet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
abortCommit(CommitSession commitSession, List<Mutation> value)
boolean
beginUpdatingLogsUsed(InMemoryMap memTable, DfsLogger copy, boolean mincFinish)
If this method returns true, the caller must callfinishUpdatingLogsUsed()
to clean upvoid
commit(CommitSession commitSession, List<Mutation> mutations)
void
finishUpdatingLogsUsed()
Durability
getDurability()
KeyExtent
getExtent()
Returns a KeyExtent object representing this tablet's key range.int
getLogId()
TableConfiguration
getTableConfiguration()
void
updateMemoryUsageStats(long estimatedSizeInBytes, long estimatedSizeInBytes2)
-
-
-
Method Detail
-
abortCommit
void abortCommit(CommitSession commitSession, List<Mutation> value)
-
commit
void commit(CommitSession commitSession, List<Mutation> mutations)
-
beginUpdatingLogsUsed
boolean beginUpdatingLogsUsed(InMemoryMap memTable, DfsLogger copy, boolean mincFinish)
If this method returns true, the caller must callfinishUpdatingLogsUsed()
to clean up
-
finishUpdatingLogsUsed
void finishUpdatingLogsUsed()
-
getTableConfiguration
TableConfiguration getTableConfiguration()
-
getExtent
KeyExtent getExtent()
Returns a KeyExtent object representing this tablet's key range.- Returns:
- extent
-
getLogId
int getLogId()
-
getDurability
Durability getDurability()
-
updateMemoryUsageStats
void updateMemoryUsageStats(long estimatedSizeInBytes, long estimatedSizeInBytes2)
-
-