public static class Tuple.DefaultTupleFormatter extends Object implements Tuple.TupleFormatter
Timestamp.toString()streambase.tuple-charset system property)Tuple.NULL_STRING
 A shared instance is available at Tuple.getTupleFormatter().
| Constructor and Description | 
|---|
DefaultTupleFormatter()
See the class documentation for  
Tuple.DefaultTupleFormatter for details | 
| Modifier and Type | Method and Description | 
|---|---|
CharSequence | 
formatBlob(ByteArrayView blob)
Return a string representation of the given StreamBase blob value 
 | 
CharSequence | 
formatBool(Boolean b)
Return a string representation of the given StreamBase boolean value 
 | 
CharSequence | 
formatDouble(Double d)
Return a string representation of the given StreamBase double value 
 | 
CharSequence | 
formatFunction(Function f)
Return a string representation of the given StreamBase function 
 | 
CharSequence | 
formatInt(Integer i)
Return a string representation of the given StreamBase integer value 
 | 
CharSequence | 
formatList(CompleteDataType elementType,
          List<?> l)
Return a string representation of the given StreamBase list 
 | 
CharSequence | 
formatLong(Long l)
Return a string representation of the given StreamBase long value 
 | 
CharSequence | 
formatString(String s)
Return a string representation of the given StreamBase string value 
 | 
CharSequence | 
formatTimestamp(Timestamp t)
Return a string representation of the given StreamBase timestamp value 
 | 
CharSequence | 
formatTuple(Tuple t)
Return a string representation of the given StreamBase Tuple value 
 | 
protected String | 
getNullString()
This value will be returned by this formatter when any null field value
 is asked to be formatted. 
 | 
public DefaultTupleFormatter()
Tuple.DefaultTupleFormatter for detailsprotected String getNullString()
Tuple.NULL_STRINGpublic CharSequence formatBlob(ByteArrayView blob)
Tuple.TupleFormatterformatBlob in interface Tuple.TupleFormatterblob - may be nullpublic CharSequence formatTimestamp(Timestamp t)
Tuple.TupleFormatterformatTimestamp in interface Tuple.TupleFormattert - may be nullpublic CharSequence formatString(String s)
Tuple.TupleFormatterformatString in interface Tuple.TupleFormatters - may be nullpublic CharSequence formatInt(Integer i)
Tuple.TupleFormatterformatInt in interface Tuple.TupleFormatteri - may be nullpublic CharSequence formatDouble(Double d)
Tuple.TupleFormatterformatDouble in interface Tuple.TupleFormatterd - may be nullpublic CharSequence formatLong(Long l)
Tuple.TupleFormatterformatLong in interface Tuple.TupleFormatterl - may be nullpublic CharSequence formatBool(Boolean b)
Tuple.TupleFormatterformatBool in interface Tuple.TupleFormatterb - may be nullpublic CharSequence formatTuple(Tuple t)
Tuple.TupleFormatterformatTuple in interface Tuple.TupleFormattert - may be nullpublic CharSequence formatList(CompleteDataType elementType, List<?> l)
Tuple.TupleFormatterformatList in interface Tuple.TupleFormatterelementType - the data type of all list elementsl - may be nullpublic CharSequence formatFunction(Function f)
Tuple.TupleFormatterformatFunction in interface Tuple.TupleFormatterf - may be nullCopyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.