Class OTableFormatter
java.lang.Object
com.orientechnologies.orient.console.OTableFormatter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,OTableFormatter.ALIGNMENT> protected static final SimpleDateFormatprotected intprotected intprotected intprotected static final Stringprotected Stringprotected final OTableFormatter.OTableOutput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpRecordInTable(int iIndex, OIdentifiable iRecord, Map<String, Integer> iColumns) protected StringformatCell(String columnName, int columnWidth, String valueAsString) intintstatic StringgetPrettyFieldMultiValue(Iterator<?> iterator, int maxMultiValueEntries) static ObjectgetPrettyFieldValue(Object value, int multiValueMaxEntries) voidsetColumnAlignment(String column, OTableFormatter.ALIGNMENT alignment) voidsetColumnHidden(String column) voidsetColumnMetadata(String columnName, String metadataName, String metadataValue) voidsetColumnSorting(String column, boolean ascending) voidvoidsetLeftBorder(boolean value) setMaxMultiValueEntries(int maxMultiValueEntries) setMaxWidthSize(int maxWidthSize) voidvoidsetRightBorder(boolean value) voidwriteRecords(List<? extends OIdentifiable> resultSet, int limit) voidwriteRecords(List<? extends OIdentifiable> resultSet, int limit, OCallable<Object, OIdentifiable> iAfterDump)
-
Field Details
-
MORE
- See Also:
-
DEF_DATEFORMAT
-
columnSorting
-
columnAlignment
-
columnMetadata
-
columnHidden
-
prefixedColumns
-
out
-
maxMultiValueEntries
protected int maxMultiValueEntries -
minColumnSize
protected int minColumnSize -
maxWidthSize
protected int maxWidthSize -
nullValue
-
-
Constructor Details
-
OTableFormatter
-
-
Method Details
-
setColumnSorting
-
setColumnHidden
-
writeRecords
-
writeRecords
public void writeRecords(List<? extends OIdentifiable> resultSet, int limit, OCallable<Object, OIdentifiable> iAfterDump) -
setColumnAlignment
-
setColumnMetadata
-
getMaxWidthSize
public int getMaxWidthSize() -
setMaxWidthSize
-
getMaxMultiValueEntries
public int getMaxMultiValueEntries() -
setMaxMultiValueEntries
-
dumpRecordInTable
-
formatCell
-
setNullValue
-
setLeftBorder
public void setLeftBorder(boolean value) -
setRightBorder
public void setRightBorder(boolean value) -
getPrettyFieldMultiValue
-
getPrettyFieldValue
-