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
AvroFileReader, AutoCloseable, AnyRef, Any
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() @HotSpotIntrinsicCandidate()
  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. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hasNextBlock(): Boolean

    Test if there is a block.

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. val header: Header
    Definition Classes
    AvroFileReader
  14. val headerSize: Long
    Definition Classes
    AvroFileReader
  15. val headerSync: Array[Byte]
    Attributes
    protected
    Definition Classes
    AvroFileReader
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. 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
  21. 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.

  22. def readNextRawBlock(out: OutputStream): Unit

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

  23. def seek(position: Long): Unit
    Attributes
    protected
    Definition Classes
    AvroFileReader
  24. val sin: AvroSeekableInputStream
    Attributes
    protected
    Definition Classes
    AvroFileReader
  25. 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
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. var vin: BinaryDecoder
    Attributes
    protected
    Definition Classes
    AvroFileReader
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AvroFileReader

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped