public final class RowFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_VALUE_LENGTH |
static int |
DEFAULT_MAX_VALUES |
static int |
UNLIMITED
A special value that conveys the notion of "unlimited".
|
| Constructor and Description |
|---|
RowFormatter()
Creates a row formatter with default settings.
|
RowFormatter(int maxValueLength,
int maxValues)
Creates a row formatter with customized settings.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(Row row,
ProtocolVersion protocolVersion,
CodecRegistry codecRegistry)
Formats the given
row. |
protected void |
print(Row row,
RowWriter out) |
protected void |
printHeader(Row row,
RowWriter out) |
protected void |
printValues(Row row,
RowWriter out) |
public static final int UNLIMITED
public static final int DEFAULT_MAX_VALUE_LENGTH
public static final int DEFAULT_MAX_VALUES
public RowFormatter()
public RowFormatter(int maxValueLength,
int maxValues)
maxValueLength - the maximum length, in numbers of printed characters, allowed for a
single bound value.maxValues - the maximum number of printed bound values.IllegalArgumentException - if maxValueLength or maxValues is not > 0,
or -1 (unlimited).public String format(Row row, ProtocolVersion protocolVersion, CodecRegistry codecRegistry)
row.row - The row to format; must not be null.protocolVersion - The protocol version in use.codecRegistry - The codec registry in use.Copyright © 2017–2021 DataStax. All rights reserved.