public class SplunkBatchReader extends Object implements ManagedReader<SchemaNegotiator>
Modifier and Type | Class and Description |
---|---|
static class |
SplunkBatchReader.IntColumnWriter |
static class |
SplunkBatchReader.SplunkColumnWriter |
static class |
SplunkBatchReader.StringColumnWriter |
static class |
SplunkBatchReader.TimestampColumnWriter
There are two known time columns in Splunk, the _time and _indextime.
|
Constructor and Description |
---|
SplunkBatchReader(SplunkPluginConfig config,
SplunkSubScan subScan) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release resources.
|
protected static boolean |
isMultiField(String fieldValue)
Determines whether a field is a Splunk multifield.
|
boolean |
next()
Read the next batch.
|
boolean |
open(SchemaNegotiator negotiator)
Setup the record reader.
|
public SplunkBatchReader(SplunkPluginConfig config, SplunkSubScan subScan)
public boolean open(SchemaNegotiator negotiator)
ManagedReader
open
in interface ManagedReader<SchemaNegotiator>
negotiator
- mechanism to negotiate select and table
schemas, then create the row set reader used to load data into
value vectorspublic boolean next()
ManagedReader
This somewhat complex protocol avoids the need to allocate a final batch just to find out that no more data is available; it allows EOF to be returned along with the final batch.
next
in interface ManagedReader<SchemaNegotiator>
public void close()
ManagedReader
close
in interface ManagedReader<SchemaNegotiator>
protected static boolean isMultiField(String fieldValue)
fieldValue
- The field to be testedCopyright © 1970 The Apache Software Foundation. All rights reserved.