Package org.apache.hadoop.hbase.io.hfile
Class HFilePrettyPrinter.SimpleReporter.Builder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.SimpleReporter.Builder
- Enclosing class:
- HFilePrettyPrinter.SimpleReporter
A builder for
HFilePrettyPrinter.SimpleReporter
instances. Defaults to using the default locale and time
zone, writing to System.out
.-
Field Summary
Modifier and TypeFieldDescriptionprivate Locale
private PrintStream
private final List<HFilePrettyPrinter.KeyValueStats>
private TimeZone
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd the givenHFilePrettyPrinter.KeyValueStats
to be reportedbuild()
Builds aConsoleReporter
with the given properties.outputTo
(PrintStream output) Write to the givenPrintStream
.
-
Field Details
-
stats
-
output
-
locale
-
timeZone
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
outputTo
Write to the givenPrintStream
.- Parameters:
output
- aPrintStream
instance.- Returns:
this
-
addStats
Add the givenHFilePrettyPrinter.KeyValueStats
to be reported- Parameters:
stat
- the stat to be reported- Returns:
this
-
build
Builds aConsoleReporter
with the given properties.- Returns:
- a
ConsoleReporter
-