Class PcapngBatchReader
java.lang.Object
org.apache.drill.exec.store.pcapng.PcapngBatchReader
- All Implemented Interfaces:
ManagedReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.impl.scan.v3.ManagedReader
ManagedReader.EarlyEofException
-
Constructor Summary
ConstructorDescriptionPcapngBatchReader
(PcapFormatConfig config, EasySubScan scan, FileSchemaNegotiator negotiator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Release resources.boolean
next()
The default of the `stat` parameter is false, which means that the packet data is parsed and returned, but if true, will return the statistics data about the each pcapng file only (consist of the information about collect devices and the summary of the packet data above).
-
Constructor Details
-
PcapngBatchReader
public PcapngBatchReader(PcapFormatConfig config, EasySubScan scan, FileSchemaNegotiator negotiator)
-
-
Method Details
-
next
public boolean next()The default of the `stat` parameter is false, which means that the packet data is parsed and returned, but if true, will return the statistics data about the each pcapng file only (consist of the information about collect devices and the summary of the packet data above). In addition, a pcapng file contains a single Section Header Block (SHB), a single Interface Description Block (IDB) and a few Enhanced Packet Blocks (EPB).+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SHB | IDB | EPB | EPB | ... | EPB | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
https://pcapng.github.io/pcapng/draft-tuexen-opsawg-pcapng.html#name-physical-file-layout- Specified by:
next
in interfaceManagedReader
- Returns:
- true if more data may be available (and so next() should be called again, false to indicate that EOF was reached
-
close
public void close()Description copied from interface:ManagedReader
Release resources. Called just after a failure, when the scanner is cancelled, or after next() returns EOF. Release all resources and close files. Guaranteed to be called if open() returns normally; will not be called if open() throws an exception.- Specified by:
close
in interfaceManagedReader
-