public interface ValidWriteIdList
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValidWriteIdList.RangeResponse
The response to a range query.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
VALID_WRITEIDS_KEY
Key used to store valid write id list in a
Configuration object. |
| Modifier and Type | Method and Description |
|---|---|
long |
getHighWatermark()
Get the largest write id used.
|
long[] |
getInvalidWriteIds()
Get the list of write ids under the high water mark that are not valid.
|
Long |
getMinOpenWriteId()
The smallest open write id.
|
String |
getTableName()
Get the table for which the ValidWriteIdList is formed
|
boolean |
isValidBase(long writeId)
Returns
true if such base file can be used to materialize the snapshot represented by
this ValidWriteIdList. |
boolean |
isWriteIdAborted(long writeId)
Indicates whether a given write maps to aborted transaction.
|
ValidWriteIdList.RangeResponse |
isWriteIdRangeAborted(long minWriteId,
long maxWriteId)
Find out if a range of write ids are aborted.
|
ValidWriteIdList.RangeResponse |
isWriteIdRangeValid(long minWriteId,
long maxWriteId)
Find out if a range of write ids are valid.
|
boolean |
isWriteIdValid(long writeId)
Indicates whether a given write ID is valid.
|
void |
readFromString(String src)
Populate this ValidWriteIdList from the string.
|
String |
writeToString()
Write this ValidWriteIdList into a string.
|
static final String VALID_WRITEIDS_KEY
Configuration object.boolean isWriteIdValid(long writeId)
writeId - write ID of the tableboolean isValidBase(long writeId)
true if such base file can be used to materialize the snapshot represented by
this ValidWriteIdList.writeId - highest write ID in a given base_xxxx fileValidWriteIdList.RangeResponse isWriteIdRangeValid(long minWriteId, long maxWriteId)
minWriteId - minimum write ID to look for, inclusivemaxWriteId - maximum write ID to look for, inclusiveString writeToString()
readFromString(String) to populate a ValidWriteIdList.void readFromString(String src)
writeToString() and the exceptions list is sorted.src - source string.String getTableName()
long getHighWatermark()
long[] getInvalidWriteIds()
boolean isWriteIdAborted(long writeId)
writeId - write id to be validatedValidWriteIdList.RangeResponse isWriteIdRangeAborted(long minWriteId, long maxWriteId)
minWriteId - minimum write Id to look for, inclusivemaxWriteId - maximum write Id to look for, inclusiveLong getMinOpenWriteId()
null if there is none.Copyright © 2021 The Apache Software Foundation. All rights reserved.