HBASE-26792 Implement ScanInfo#toString (#4154)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Rushabh Shah 2022-03-05 04:45:45 -05:00 committed by GitHub
parent 01acd870b7
commit 0a7e49ca3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.hbase.regionserver;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.CellComparator;
import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor;
@ -184,4 +185,21 @@ public class ScanInfo {
comparator, tableMaxRowSize, usePread, cellsPerTimeoutCheck, parallelSeekEnabled,
preadMaxBytes, newVersionBehavior);
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("family", Bytes.toStringBinary(family))
.append("minVersions", minVersions)
.append("maxVersions", maxVersions)
.append("ttl", ttl)
.append("keepDeletedCells", keepDeletedCells)
.append("timeToPurgeDeletes", timeToPurgeDeletes)
.append("tableMaxRowSize", tableMaxRowSize)
.append("usePread", usePread)
.append("cellsPerTimeoutCheck", cellsPerTimeoutCheck)
.append("parallelSeekEnabled", parallelSeekEnabled)
.append("preadMaxBytes", preadMaxBytes)
.append("newVersionBehavior", newVersionBehavior).toString();
}
}