|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.tools.TableListing.Builder
public static class TableListing.Builder
Constructor Summary | |
---|---|
TableListing.Builder()
Create a new Builder. |
Method Summary | |
---|---|
TableListing.Builder |
addField(String title)
|
TableListing.Builder |
addField(String title,
boolean wrap)
|
TableListing.Builder |
addField(String title,
TableListing.Justification justification)
|
TableListing.Builder |
addField(String title,
TableListing.Justification justification,
boolean wrap)
Add a new field to the Table under construction. |
org.apache.hadoop.hdfs.tools.TableListing |
build()
Create a new TableListing. |
TableListing.Builder |
hideHeaders()
Whether to hide column headers in table output |
TableListing.Builder |
showHeaders()
Whether to show column headers in table output. |
TableListing.Builder |
wrapWidth(int width)
Set the maximum width of a row in the TableListing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableListing.Builder()
Method Detail |
---|
public TableListing.Builder addField(String title)
public TableListing.Builder addField(String title, TableListing.Justification justification)
public TableListing.Builder addField(String title, boolean wrap)
public TableListing.Builder addField(String title, TableListing.Justification justification, boolean wrap)
title
- Field title.justification
- Right or left justification. Defaults to left.wrap
- Width at which to auto-wrap the content of the cell.
Defaults to Integer.MAX_VALUE.
public TableListing.Builder hideHeaders()
public TableListing.Builder showHeaders()
public TableListing.Builder wrapWidth(int width)
public org.apache.hadoop.hdfs.tools.TableListing build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |