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