public class ObjectWriter extends Object
| Constructor and Description |
|---|
ObjectWriter(OutputStream outputStream,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeHeader(List<String> columnNames) |
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 ObjectWriter(OutputStream outputStream, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) throws IOException
IOExceptionpublic void writeResponseStart()
throws IOException
IOExceptionpublic void writeResponseEnd()
throws IOException
IOExceptionpublic void writeHeader(List<String> columnNames) throws IOException
IOExceptionpublic void writeRowStart()
throws IOException
IOExceptionpublic void writeRowField(String name, @Nullable Object value) throws IOException
IOExceptionpublic void writeRowEnd()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.