public class IngestSegmentFirehose extends Object implements Firehose
| Constructor and Description | 
|---|
IngestSegmentFirehose(List<WindowedStorageAdapter> adapters,
                     TransformSpec transformSpec,
                     List<String> dims,
                     List<String> metrics,
                     DimFilter dimFilter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
Runnable | 
commit()
Returns a runnable that will "commit" everything read up to the point at which commit() is called. 
 | 
boolean | 
hasMore()
Returns whether there are more rows to process. 
 | 
InputRow | 
nextRow()
The next row available. 
 | 
public IngestSegmentFirehose(List<WindowedStorageAdapter> adapters, TransformSpec transformSpec, List<String> dims, List<String> metrics, DimFilter dimFilter)
public boolean hasMore()
Firehose@Nullable public InputRow nextRow()
Firehosepublic Runnable commit()
FirehoseA simple implementation of this interface might do nothing when run() is called (in which case the same do-nothing instance can be returned every time), or a more complex implementation might clean up temporary resources that are no longer needed because of InputRows delivered by prior calls to ##nextRow().
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2018. All rights reserved.