Skip to content

Commit

Permalink
HBASE-26792 Implement ScanInfo#toString (#4154)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
shahrs87 authored and Apache9 committed Mar 5, 2022
1 parent 622c436 commit 6bd2cd6
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 6bd2cd6

Please sign in to comment.