public class MetadataResponse
extends java.lang.Object
implements javax.ws.rs.core.StreamingOutput
StreamingOutput
so the serialization will be done in a stream and not
in one bulk, this in order to avoid running out of memory when processing a
lot of items.Constructor and Description |
---|
MetadataResponse(java.util.List<Metadata> metadataList)
Constructs metadata response out of a metadata list
|
Modifier and Type | Method and Description |
---|---|
void |
write(java.io.OutputStream output)
Serializes the metadata list in JSON, To be used as the result string for HAWQ.
|
public MetadataResponse(java.util.List<Metadata> metadataList)
metadataList
- metadata listpublic void write(java.io.OutputStream output) throws java.io.IOException, javax.ws.rs.WebApplicationException
write
in interface javax.ws.rs.core.StreamingOutput
java.io.IOException
javax.ws.rs.WebApplicationException