public class Sink extends Object implements Iterable<FireHydrant>, Overshadowable<Sink>
| Constructor and Description |
|---|
Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
AppendableIndexSpec appendableIndexSpec,
int maxRowsInMemory,
long maxBytesInMemory,
boolean useMaxMemoryEstimates,
String dedupColumn) |
Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
AppendableIndexSpec appendableIndexSpec,
int maxRowsInMemory,
long maxBytesInMemory,
boolean useMaxMemoryEstimates,
String dedupColumn,
List<FireHydrant> hydrants) |
| Modifier and Type | Method and Description |
|---|---|
IncrementalIndexAddResult |
add(InputRow row,
boolean skipMaxRowsInMemoryCheck) |
boolean |
canAppendRow() |
void |
clearDedupCache() |
boolean |
finished() |
boolean |
finishWriting()
Marks sink as 'finished', preventing further writes.
|
short |
getAtomicUpdateGroupSize() |
long |
getBytesInMemory() |
FireHydrant |
getCurrHydrant() |
int |
getEndRootPartitionId() |
org.joda.time.Interval |
getInterval() |
short |
getMinorVersion() |
int |
getNumRows() |
int |
getNumRowsInMemory() |
DataSegment |
getSegment() |
int |
getStartRootPartitionId() |
String |
getVersion() |
boolean |
isEmpty() |
boolean |
isWritable() |
Iterator<FireHydrant> |
iterator() |
boolean |
overshadows(Sink other) |
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, spliteratorcontainsRootPartition, hasDatapublic Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
AppendableIndexSpec appendableIndexSpec,
int maxRowsInMemory,
long maxBytesInMemory,
boolean useMaxMemoryEstimates,
String dedupColumn)
public Sink(org.joda.time.Interval interval,
DataSchema schema,
ShardSpec shardSpec,
String version,
AppendableIndexSpec appendableIndexSpec,
int maxRowsInMemory,
long maxBytesInMemory,
boolean useMaxMemoryEstimates,
String dedupColumn,
List<FireHydrant> hydrants)
public void clearDedupCache()
public org.joda.time.Interval getInterval()
public FireHydrant getCurrHydrant()
public IncrementalIndexAddResult add(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 DataSegment getSegment()
public int getNumRows()
public int getNumRowsInMemory()
public long getBytesInMemory()
public Iterator<FireHydrant> iterator()
iterator in interface Iterable<FireHydrant>public boolean overshadows(Sink other)
overshadows in interface Overshadowable<Sink>public int getStartRootPartitionId()
getStartRootPartitionId in interface Overshadowable<Sink>public int getEndRootPartitionId()
getEndRootPartitionId in interface Overshadowable<Sink>public String getVersion()
getVersion in interface Overshadowable<Sink>public short getMinorVersion()
getMinorVersion in interface Overshadowable<Sink>public short getAtomicUpdateGroupSize()
getAtomicUpdateGroupSize in interface Overshadowable<Sink>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.