public class Sink extends Object implements Iterable<FireHydrant>
Constructor and Description |
---|
Sink(org.joda.time.Interval interval,
DataSchema schema,
RealtimeTuningConfig config,
String version) |
Sink(org.joda.time.Interval interval,
DataSchema schema,
RealtimeTuningConfig config,
String version,
List<FireHydrant> hydrants) |
Modifier and Type | Method and Description |
---|---|
int |
add(io.druid.data.input.InputRow row) |
boolean |
canAppendRow() |
FireHydrant |
getCurrHydrant() |
org.joda.time.Interval |
getInterval() |
io.druid.timeline.DataSegment |
getSegment() |
String |
getVersion() |
boolean |
isEmpty() |
Iterator<FireHydrant> |
iterator() |
FireHydrant |
swap()
If currHydrant is A, creates a new index B, sets currHydrant to B and returns A.
|
boolean |
swappable() |
String |
toString() |
public Sink(org.joda.time.Interval interval, DataSchema schema, RealtimeTuningConfig config, String version)
public Sink(org.joda.time.Interval interval, DataSchema schema, RealtimeTuningConfig config, String version, List<FireHydrant> hydrants)
public String getVersion()
public org.joda.time.Interval getInterval()
public FireHydrant getCurrHydrant()
public int add(io.druid.data.input.InputRow row) throws IndexSizeExceededException
IndexSizeExceededException
public boolean canAppendRow()
public boolean isEmpty()
public FireHydrant swap()
public boolean swappable()
public io.druid.timeline.DataSegment getSegment()
public Iterator<FireHydrant> iterator()
iterator
in interface Iterable<FireHydrant>
Copyright © 2011–2015. All rights reserved.