public class CompactionInfo extends Object implements Comparable<CompactionInfo>
Modifier and Type | Field and Description |
---|---|
String |
dbname |
long |
highestWriteId
0 means it wasn't set (e.g. |
long |
id |
String |
partName |
String |
properties |
String |
runAs |
String |
tableName |
boolean |
tooManyAborts |
CompactionType |
type |
Constructor and Description |
---|
CompactionInfo(String dbname,
String tableName,
String partName,
CompactionType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CompactionInfo o) |
String |
getFullPartitionName() |
String |
getFullTableName() |
boolean |
isMajorCompaction() |
String |
toString() |
public long id
public String dbname
public String tableName
public String partName
public CompactionType type
public String runAs
public String properties
public boolean tooManyAborts
public long highestWriteId
0
means it wasn't set (e.g. in case of upgrades, since ResultSet.getLong() will return 0 if field is NULL)
See TxnStore.setCompactionHighestWriteId(CompactionInfo, long)
for precise definition.
See also TxnUtils.createValidCompactWriteIdList(TableValidWriteIds)
and
ValidReaderWriteIdList.highWatermark
.public CompactionInfo(String dbname, String tableName, String partName, CompactionType type)
public String getFullPartitionName()
public String getFullTableName()
public boolean isMajorCompaction()
public int compareTo(CompactionInfo o)
compareTo
in interface Comparable<CompactionInfo>
Copyright © 2022 The Apache Software Foundation. All rights reserved.