Package org.apache.druid.sql.http
Interface ResultFormat.Writer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ArrayLinesWriter,ArrayWriter,CsvWriter,ObjectLinesWriter,ObjectWriter
- Enclosing class:
- ResultFormat
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteHeader(org.apache.calcite.rel.type.RelDataType rowType, boolean includeTypes, boolean includeSqlTypes) voidwriteHeaderFromRowSignature(RowSignature rowSignature, boolean includeTypes) voidEnd of the response.voidStart of the response, called once per writer.voidEnd of each result row.voidwriteRowField(String name, Object value) Field within a row.voidStart of each result row.
-
Method Details
-
writeResponseStart
Start of the response, called once per writer.- Throws:
IOException
-
writeHeader
void writeHeader(org.apache.calcite.rel.type.RelDataType rowType, boolean includeTypes, boolean includeSqlTypes) throws IOException - Throws:
IOException
-
writeHeaderFromRowSignature
void writeHeaderFromRowSignature(RowSignature rowSignature, boolean includeTypes) throws IOException - Throws:
IOException
-
writeRowStart
Start of each result row.- Throws:
IOException
-
writeRowField
Field within a row.- Throws:
IOException
-
writeRowEnd
End of each result row.- Throws:
IOException
-
writeResponseEnd
End of the response. Must allow the user to know that they have read all data successfully.- Throws:
IOException
-