public final class RowWriter extends Object implements Appendable
Instances of this class are designed to format one single row; they keep internal counters such as the current number of printed bound values, and for this reason, they should not be reused to format more than one row.
This class is NOT thread-safe.
| Modifier and Type | Method and Description |
|---|---|
RowWriter |
append(char c) |
RowWriter |
append(CharSequence csq) |
RowWriter |
append(CharSequence csq,
int start,
int end) |
RowWriter |
append(Object obj) |
RowWriter |
append(String str) |
RowWriter |
appendClassNameAndHashCode(Row row)
Appends the row's class name and hash code, as done by
Object.toString(). |
void |
appendValue(String name,
Object value,
DataType type) |
CodecRegistry |
getCodecRegistry() |
ProtocolVersion |
getProtocolVersion() |
void |
indent() |
boolean |
maxAppendedValuesExceeded() |
void |
newLine() |
String |
toString() |
public ProtocolVersion getProtocolVersion()
public CodecRegistry getCodecRegistry()
public boolean maxAppendedValuesExceeded()
true if the maximum number of bound values per row is exceeded, false
otherwise.public void newLine()
public void indent()
public RowWriter append(CharSequence csq)
append in interface Appendablepublic RowWriter append(CharSequence csq, int start, int end)
append in interface Appendablepublic RowWriter append(char c)
append in interface Appendablepublic RowWriter appendClassNameAndHashCode(Row row)
Object.toString().row - The row to format.Copyright © 2017–2021 DataStax. All rights reserved.