public class ArrayWriter extends Object implements ResultFormat.Writer
| Constructor and Description |
|---|
ArrayWriter(OutputStream outputStream,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
public ArrayWriter(OutputStream outputStream, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) throws IOException
IOExceptionpublic void writeResponseStart()
throws IOException
ResultFormat.WriterwriteResponseStart in interface ResultFormat.WriterIOExceptionpublic void writeResponseEnd()
throws IOException
ResultFormat.WriterwriteResponseEnd in interface ResultFormat.WriterIOExceptionpublic void writeHeader(org.apache.calcite.rel.type.RelDataType rowType,
boolean includeTypes,
boolean includeSqlTypes)
throws IOException
writeHeader in interface ResultFormat.WriterIOExceptionpublic void writeRowStart()
throws IOException
ResultFormat.WriterwriteRowStart in interface ResultFormat.WriterIOExceptionpublic void writeRowField(String name, @Nullable Object value) throws IOException
ResultFormat.WriterwriteRowField in interface ResultFormat.WriterIOExceptionpublic void writeRowEnd()
throws IOException
ResultFormat.WriterwriteRowEnd in interface ResultFormat.WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.