Skip to content

Commit

Permalink
HBASE-26792 Implement ScanInfo#toString (#4153)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
shahrs87 authored Mar 5, 2022
1 parent 905a6e0 commit 2b205d2
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -184,4 +185,21 @@ ScanInfo customize(int maxVersions, long ttl, KeepDeletedCells keepDeletedCells,
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();
}
}

0 comments on commit 2b205d2

Please sign in to comment.