
public class OTableFormatter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OTableFormatter.ALIGNMENT |
static interface |
OTableFormatter.OTableOutput |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,OTableFormatter.ALIGNMENT> |
columnAlignment |
protected java.util.Set<java.lang.String> |
columnHidden |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
columnMetadata |
protected com.orientechnologies.common.util.OPair<java.lang.String,java.lang.Boolean> |
columnSorting |
protected static java.text.SimpleDateFormat |
DEF_DATEFORMAT |
protected int |
maxMultiValueEntries |
protected int |
maxWidthSize |
protected int |
minColumnSize |
protected static java.lang.String |
MORE |
protected java.lang.String |
nullValue |
protected OTableFormatter.OTableOutput |
out |
protected java.util.Set<java.lang.String> |
prefixedColumns |
| Constructor and Description |
|---|
OTableFormatter(OTableFormatter.OTableOutput iConsole) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpRecordInTable(int iIndex,
com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
java.util.Map<java.lang.String,java.lang.Integer> iColumns) |
protected java.lang.String |
formatCell(java.lang.String columnName,
int columnWidth,
java.lang.String valueAsString) |
int |
getMaxMultiValueEntries() |
int |
getMaxWidthSize() |
static java.lang.String |
getPrettyFieldMultiValue(java.util.Iterator<?> iterator,
int maxMultiValueEntries) |
static java.lang.Object |
getPrettyFieldValue(java.lang.Object value,
int multiValueMaxEntries) |
void |
setColumnAlignment(java.lang.String column,
OTableFormatter.ALIGNMENT alignment) |
void |
setColumnHidden(java.lang.String column) |
void |
setColumnMetadata(java.lang.String columnName,
java.lang.String metadataName,
java.lang.String metadataValue) |
void |
setColumnSorting(java.lang.String column,
boolean ascending) |
void |
setFooter(com.orientechnologies.orient.core.record.impl.ODocument footer) |
void |
setLeftBorder(boolean value) |
OTableFormatter |
setMaxMultiValueEntries(int maxMultiValueEntries) |
OTableFormatter |
setMaxWidthSize(int maxWidthSize) |
void |
setNullValue(java.lang.String s) |
void |
setRightBorder(boolean value) |
void |
writeRecords(java.util.List<? extends com.orientechnologies.orient.core.db.record.OIdentifiable> resultSet,
int limit) |
void |
writeRecords(java.util.List<? extends com.orientechnologies.orient.core.db.record.OIdentifiable> resultSet,
int limit,
com.orientechnologies.common.util.OCallable<java.lang.Object,com.orientechnologies.orient.core.db.record.OIdentifiable> iAfterDump) |
protected static final java.lang.String MORE
protected static final java.text.SimpleDateFormat DEF_DATEFORMAT
protected com.orientechnologies.common.util.OPair<java.lang.String,java.lang.Boolean> columnSorting
protected final java.util.Map<java.lang.String,OTableFormatter.ALIGNMENT> columnAlignment
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> columnMetadata
protected final java.util.Set<java.lang.String> columnHidden
protected final java.util.Set<java.lang.String> prefixedColumns
protected final OTableFormatter.OTableOutput out
protected int maxMultiValueEntries
protected int minColumnSize
protected int maxWidthSize
protected java.lang.String nullValue
public OTableFormatter(OTableFormatter.OTableOutput iConsole)
public void setColumnSorting(java.lang.String column,
boolean ascending)
public void setColumnHidden(java.lang.String column)
public void writeRecords(java.util.List<? extends com.orientechnologies.orient.core.db.record.OIdentifiable> resultSet, int limit)
public void writeRecords(java.util.List<? extends com.orientechnologies.orient.core.db.record.OIdentifiable> resultSet, int limit, com.orientechnologies.common.util.OCallable<java.lang.Object,com.orientechnologies.orient.core.db.record.OIdentifiable> iAfterDump)
public void setColumnAlignment(java.lang.String column,
OTableFormatter.ALIGNMENT alignment)
public void setColumnMetadata(java.lang.String columnName,
java.lang.String metadataName,
java.lang.String metadataValue)
public int getMaxWidthSize()
public OTableFormatter setMaxWidthSize(int maxWidthSize)
public int getMaxMultiValueEntries()
public OTableFormatter setMaxMultiValueEntries(int maxMultiValueEntries)
public void dumpRecordInTable(int iIndex,
com.orientechnologies.orient.core.db.record.OIdentifiable iRecord,
java.util.Map<java.lang.String,java.lang.Integer> iColumns)
protected java.lang.String formatCell(java.lang.String columnName,
int columnWidth,
java.lang.String valueAsString)
public void setNullValue(java.lang.String s)
public void setLeftBorder(boolean value)
public void setRightBorder(boolean value)
public static java.lang.String getPrettyFieldMultiValue(java.util.Iterator<?> iterator,
int maxMultiValueEntries)
public void setFooter(com.orientechnologies.orient.core.record.impl.ODocument footer)
public static java.lang.Object getPrettyFieldValue(java.lang.Object value,
int multiValueMaxEntries)
Copyright © 2009–2022 OrientDB. All rights reserved.