public class Sink extends Object implements Iterable<FireHydrant>
| Constructor and Description |
|---|
Sink(org.joda.time.Interval interval,
DataSchema schema,
org.apache.druid.timeline.partition.ShardSpec shardSpec,
String version,
int maxRowsInMemory,
long maxBytesInMemory,
boolean reportParseExceptions,
String dedupColumn) |
Sink(org.joda.time.Interval interval,
DataSchema schema,
org.apache.druid.timeline.partition.ShardSpec shardSpec,
String version,
int maxRowsInMemory,
long maxBytesInMemory,
boolean reportParseExceptions,
String dedupColumn,
List<FireHydrant> hydrants) |
| Modifier and Type | Method and Description |
|---|---|
IncrementalIndexAddResult |
add(org.apache.druid.data.input.InputRow row,
boolean skipMaxRowsInMemoryCheck) |
boolean |
canAppendRow() |
void |
clearDedupCache() |
boolean |
finished() |
boolean |
finishWriting()
Marks sink as 'finished', preventing further writes.
|
long |
getBytesInMemory() |
FireHydrant |
getCurrHydrant() |
org.joda.time.Interval |
getInterval() |
int |
getNumRows() |
int |
getNumRowsInMemory() |
org.apache.druid.timeline.DataSegment |
getSegment() |
String |
getVersion() |
boolean |
isEmpty() |
boolean |
isWritable() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Sink(org.joda.time.Interval interval,
DataSchema schema,
org.apache.druid.timeline.partition.ShardSpec shardSpec,
String version,
int maxRowsInMemory,
long maxBytesInMemory,
boolean reportParseExceptions,
String dedupColumn)
public Sink(org.joda.time.Interval interval,
DataSchema schema,
org.apache.druid.timeline.partition.ShardSpec shardSpec,
String version,
int maxRowsInMemory,
long maxBytesInMemory,
boolean reportParseExceptions,
String dedupColumn,
List<FireHydrant> hydrants)
public void clearDedupCache()
public String getVersion()
public org.joda.time.Interval getInterval()
public FireHydrant getCurrHydrant()
public IncrementalIndexAddResult add(org.apache.druid.data.input.InputRow row, boolean skipMaxRowsInMemoryCheck) throws IndexSizeExceededException
IndexSizeExceededExceptionpublic boolean canAppendRow()
public boolean isEmpty()
public boolean isWritable()
public FireHydrant swap()
public boolean swappable()
public boolean finished()
public boolean finishWriting()
public org.apache.druid.timeline.DataSegment getSegment()
public int getNumRows()
public int getNumRowsInMemory()
public long getBytesInMemory()
public Iterator<FireHydrant> iterator()
iterator in interface Iterable<FireHydrant>Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.