public static interface ResultFormat.Writer extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
writeHeader(org.apache.calcite.rel.type.RelDataType rowType,
boolean includeTypes,
boolean includeSqlTypes) |
void |
writeResponseEnd()
End of the response.
|
void |
writeResponseStart()
Start of the response, called once per writer.
|
void |
writeRowEnd()
End of each result row.
|
void |
writeRowField(String name,
Object value)
Field within a row.
|
void |
writeRowStart()
Start of each result row.
|
void writeResponseStart()
throws IOException
IOExceptionvoid writeHeader(org.apache.calcite.rel.type.RelDataType rowType,
boolean includeTypes,
boolean includeSqlTypes)
throws IOException
IOExceptionvoid writeRowStart()
throws IOException
IOExceptionvoid writeRowField(String name, @Nullable Object value) throws IOException
IOExceptionvoid writeRowEnd()
throws IOException
IOExceptionvoid writeResponseEnd()
throws IOException
IOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.