Class PcapngBatchReader

java.lang.Object
org.apache.drill.exec.store.pcapng.PcapngBatchReader
All Implemented Interfaces:
ManagedReader

public class PcapngBatchReader extends Object implements ManagedReader
  • Constructor Details

  • 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 interface ManagedReader
      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 interface ManagedReader