Package org.apache.hadoop.hbase.rest
Class ProtobufStreamingOutput
java.lang.Object
org.apache.hadoop.hbase.rest.ProtobufStreamingOutput
- All Implemented Interfaces:
org.apache.hbase.thirdparty.javax.ws.rs.core.StreamingOutput
@Private
public class ProtobufStreamingOutput
extends Object
implements org.apache.hbase.thirdparty.javax.ws.rs.core.StreamingOutput
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private int
private int
private static final org.slf4j.Logger
private ResultScanner
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProtobufStreamingOutput
(ResultScanner scanner, String type, int limit, int fetchSize) -
Method Summary
Modifier and TypeMethodDescriptionprivate CellSetModel
createModelFromResults
(Result[] results) void
write
(OutputStream outStream) private void
writeToStream
(CellSetModel model, String contentType, OutputStream outStream)
-
Field Details
-
LOG
-
contentType
-
resultScanner
-
limit
-
fetchSize
-
-
Constructor Details
-
ProtobufStreamingOutput
-
-
Method Details
-
write
public void write(OutputStream outStream) throws IOException, org.apache.hbase.thirdparty.javax.ws.rs.WebApplicationException - Specified by:
write
in interfaceorg.apache.hbase.thirdparty.javax.ws.rs.core.StreamingOutput
- Throws:
IOException
org.apache.hbase.thirdparty.javax.ws.rs.WebApplicationException
-
writeToStream
private void writeToStream(CellSetModel model, String contentType, OutputStream outStream) throws IOException - Throws:
IOException
-
createModelFromResults
-