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
FieldsModifier and TypeFieldDescriptionprivate Localeprivate PrintStreamprivate final List<HFilePrettyPrinter.KeyValueStats>private TimeZone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd the givenHFilePrettyPrinter.KeyValueStatsto be reportedbuild()Builds aConsoleReporterwith 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- aPrintStreaminstance.- Returns:
this
-
addStats
Add the givenHFilePrettyPrinter.KeyValueStatsto be reported- Parameters:
stat- the stat to be reported- Returns:
this
-
build
Builds aConsoleReporterwith the given properties.- Returns:
- a
ConsoleReporter
-