Packages

c

com.nvidia.spark.rapids

AvroDataFileReader

class AvroDataFileReader extends AvroFileReader

AvroDataFileReader reads the Avro file data in the iterator pattern. You can use it as below. while(reader.hasNextBlock) { val b = reader.peekBlock estimateBufSize(b) // allocate the batch buffer reader.readNextRawBlock(buffer_as_out_stream) }

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AvroDataFileReader
  2. AvroFileReader
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AvroDataFileReader(si: SeekableInput)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close(): Unit
    Definition Classes
    AvroFileReader → AutoCloseable
  7. var curBlockStart: Long
    Attributes
    protected
    Definition Classes
    AvroFileReader
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hasNextBlock(): Boolean

    Test if there is a block.

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. val header: Header
    Definition Classes
    AvroFileReader
  15. val headerSize: Long
    Definition Classes
    AvroFileReader
  16. val headerSync: Array[Byte]
    Attributes
    protected
    Definition Classes
    AvroFileReader
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def pastSync(position: Long): Boolean

    Return true if current point is past the next sync point after a position.

    Return true if current point is past the next sync point after a position.

    Definition Classes
    AvroFileReader
  22. def peekBlock(reuse: MutableBlockInfo): MutableBlockInfo

    Get the current block metadata.

    Get the current block metadata. Call 'readNextRawBlock' to get the block raw data. Better to check its existence by calling 'hasNextBlock' first. This will not move the reader position forward.

  23. def readNextRawBlock(out: OutputStream): Unit

    Read the current block raw data to the given output stream.

  24. def seek(position: Long): Unit
    Attributes
    protected
    Definition Classes
    AvroFileReader
  25. val sin: AvroSeekableInputStream
    Attributes
    protected
    Definition Classes
    AvroFileReader
  26. def skip(length: Int): Unit

    Skip next length bytes

    Skip next length bytes

    Definition Classes
    AvroFileReader
  27. def skipCurrentBlock(): Unit

    Skip the current raw block

  28. def sync(position: Long): Unit

    Move to the next synchronization point after a position.

    Move to the next synchronization point after a position. To process a range of file entries, call this with the starting position, then check "pastSync(long)" with the end position before each call to "peekBlock()" or "readNextRawBlock". (Based off of the 'sync' in "DataFileReader" of apache/avro)

    Definition Classes
    AvroFileReader
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. var vin: BinaryDecoder
    Attributes
    protected
    Definition Classes
    AvroFileReader
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AvroFileReader

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped