AvroParserState Class

Definition

Represents the current state of the AvroParser This class internally holds state to keep track of

the data available to the schemas.

a stack of schemas that need to be parsed.

the current size of the cached buffers.

public class AvroParserState
Inheritance
java.lang.Object
AvroParserState

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Methods

getSourceOffset()

Gets the source offset.

pushToStack(AvroSchema schema)

Pushes to the state's stack of schemas to process.

read()

Consumes a single byte from the state's internal cache of buffers. Meant for use by AvroSchema objects (specifically ones that represent primitive types, since complex types are just a combination of primitive types)

read(long size)

Consumes bytes from the state's internal cache of buffers. Meant for use by AvroSchema objects (specifically ones that represent primitive types, since complex types are just a combination of primitive types)

sizeGreaterThan(long sizeRequired)

Whether or not the state is ready to emit sizeRequired bytes.

Applies to