public static interface Tuple.TupleFormatter
Tuple.getTupleFormatter() or
customize your formatter by subclassing Tuple.DefaultTupleFormatter instead.
Used to format tuple fields, by converting a StreamBase field's value to a string. TupleFormatters must handle the case for when the given value is null, but should never return null.
| 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
|
CharSequence formatBlob(ByteArrayView blob)
blob - may be nullCharSequence formatTimestamp(Timestamp t)
t - may be nullCharSequence formatString(String s)
s - may be nullCharSequence formatInt(Integer i)
i - may be nullCharSequence formatDouble(Double d)
d - may be nullCharSequence formatLong(Long l)
l - may be nullCharSequence formatBool(Boolean b)
b - may be nullCharSequence formatTuple(Tuple t)
t - may be nullCharSequence formatList(CompleteDataType elementType, List<?> l)
elementType - the data type of all list elementsl - may be nullCharSequence formatFunction(Function f)
f - may be nullCopyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.