public static class HFilePrettyPrinter.SimpleReporter.Builder extends Object
HFilePrettyPrinter.SimpleReporter
instances. Defaults to using the default locale and time
zone, writing to System.out
.Modifier and Type | Field and Description |
---|---|
private Locale |
locale |
private PrintStream |
output |
private List<HFilePrettyPrinter.KeyValueStats> |
stats |
private TimeZone |
timeZone |
Modifier | Constructor and Description |
---|---|
private |
Builder() |
Modifier and Type | Method and Description |
---|---|
HFilePrettyPrinter.SimpleReporter.Builder |
addStats(HFilePrettyPrinter.KeyValueStats stat)
Add the given
HFilePrettyPrinter.KeyValueStats to be reported |
HFilePrettyPrinter.SimpleReporter |
build()
Builds a
ConsoleReporter with the given properties. |
HFilePrettyPrinter.SimpleReporter.Builder |
outputTo(PrintStream output)
Write to the given
PrintStream . |
private final List<HFilePrettyPrinter.KeyValueStats> stats
private PrintStream output
private Builder()
public HFilePrettyPrinter.SimpleReporter.Builder outputTo(PrintStream output)
PrintStream
.output
- a PrintStream
instance.this
public HFilePrettyPrinter.SimpleReporter.Builder addStats(HFilePrettyPrinter.KeyValueStats stat)
HFilePrettyPrinter.KeyValueStats
to be reportedstat
- the stat to be reportedthis
public HFilePrettyPrinter.SimpleReporter build()
ConsoleReporter
with the given properties.ConsoleReporter
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.