public class Sink extends Object implements Iterable<FireHydrant>
Constructor and Description |
---|
Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
int maxRowsInMemory,
boolean reportParseExceptions) |
Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
int maxRowsInMemory,
boolean reportParseExceptions,
List<FireHydrant> hydrants) |
Modifier and Type | Method and Description |
---|---|
int |
add(InputRow row) |
boolean |
canAppendRow() |
boolean |
finished() |
void |
finishWriting() |
FireHydrant |
getCurrHydrant() |
org.joda.time.Interval |
getInterval() |
int |
getNumRows() |
int |
getNumRowsInMemory() |
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, wait
forEach, spliterator
public Sink(org.joda.time.Interval interval, DataSchema schema, ShardSpec shardSpec, String version, int maxRowsInMemory, boolean reportParseExceptions)
public Sink(org.joda.time.Interval interval, DataSchema schema, ShardSpec shardSpec, String version, int maxRowsInMemory, boolean reportParseExceptions, List<FireHydrant> hydrants)
public String getVersion()
public org.joda.time.Interval getInterval()
public FireHydrant getCurrHydrant()
public int add(InputRow row) throws IndexSizeExceededException
IndexSizeExceededException
public boolean canAppendRow()
public boolean isEmpty()
public boolean isWritable()
public FireHydrant swap()
public boolean swappable()
public boolean finished()
public void finishWriting()
public DataSegment getSegment()
public int getNumRows()
public int getNumRowsInMemory()
public Iterator<FireHydrant> iterator()
iterator
in interface Iterable<FireHydrant>
Copyright © 2011–2017. All rights reserved.