public class EventReceiverFirehoseFactory.EventReceiverFirehose extends Object implements ChatHandler, org.apache.druid.data.input.Firehose, EventReceiverFirehoseMetric
| Constructor and Description |
|---|
EventReceiverFirehose(org.apache.druid.data.input.impl.InputRowParser<Map<String,Object>> parser) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAll(InputStream in,
javax.servlet.http.HttpServletRequest req) |
void |
addRows(Iterable<org.apache.druid.data.input.InputRow> rows) |
void |
close() |
Runnable |
commit() |
long |
getBytesReceived()
Return the number of bytes received by the firehose.
|
int |
getCapacity()
Return the capacity of the buffer.
|
int |
getCurrentBufferSize()
Return the current number of
InputRow that are stored in the buffer. |
boolean |
hasMore() |
boolean |
isClosed() |
org.apache.druid.data.input.InputRow |
nextRow() |
javax.ws.rs.core.Response |
shutdown(String shutoffTime,
javax.servlet.http.HttpServletRequest req) |
public javax.ws.rs.core.Response addAll(InputStream in, @Context javax.servlet.http.HttpServletRequest req)
public boolean hasMore()
hasMore in interface org.apache.druid.data.input.Firehose@Nullable public org.apache.druid.data.input.InputRow nextRow()
nextRow in interface org.apache.druid.data.input.Firehosepublic Runnable commit()
commit in interface org.apache.druid.data.input.Firehosepublic int getCurrentBufferSize()
EventReceiverFirehoseMetricInputRow that are stored in the buffer.getCurrentBufferSize in interface EventReceiverFirehoseMetricpublic int getCapacity()
EventReceiverFirehoseMetricgetCapacity in interface EventReceiverFirehoseMetricpublic long getBytesReceived()
EventReceiverFirehoseMetricgetBytesReceived in interface EventReceiverFirehoseMetricpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void addRows(Iterable<org.apache.druid.data.input.InputRow> rows) throws InterruptedException
InterruptedExceptionpublic javax.ws.rs.core.Response shutdown(String shutoffTime, @Context javax.servlet.http.HttpServletRequest req)
public boolean isClosed()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.