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
FieldsModifier and TypeFieldDescriptionprivate Stringprivate intprivate intprivate static final org.slf4j.Loggerprivate ResultScanner - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtobufStreamingOutput(ResultScanner scanner, String type, int limit, int fetchSize)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate CellSetModelcreateModelFromResults(Result[] results) voidwrite(OutputStream outStream) private voidwriteToStream(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:
 writein interfaceorg.apache.hbase.thirdparty.javax.ws.rs.core.StreamingOutput- Throws:
 IOExceptionorg.apache.hbase.thirdparty.javax.ws.rs.WebApplicationException
 - 
writeToStream
private void writeToStream(CellSetModel model, String contentType, OutputStream outStream) throws IOException - Throws:
 IOException
 - 
createModelFromResults
 
 -