Java Code Examples for org.apache.avro.io.DecoderFactory#directBinaryDecoder()

The following examples show how to use org.apache.avro.io.DecoderFactory#directBinaryDecoder() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Avro16Adapter.java    From avro-util with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public BinaryDecoder newBinaryDecoder(InputStream in, boolean buffered, BinaryDecoder reuse) {
  DecoderFactory factory = DecoderFactory.get();
  return buffered ? factory.binaryDecoder(in, reuse) : factory.directBinaryDecoder(in, reuse);
}
 
Example 2
Source File: Avro15Adapter.java    From avro-util with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public BinaryDecoder newBinaryDecoder(InputStream in, boolean buffered, BinaryDecoder reuse) {
  DecoderFactory factory = DecoderFactory.get();
  return buffered ? factory.binaryDecoder(in, reuse) : factory.directBinaryDecoder(in, reuse);
}
 
Example 3
Source File: Avro18Adapter.java    From avro-util with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public BinaryDecoder newBinaryDecoder(InputStream in, boolean buffered, BinaryDecoder reuse) {
  DecoderFactory factory = DecoderFactory.get();
  return buffered ? factory.binaryDecoder(in, reuse) : factory.directBinaryDecoder(in, reuse);
}
 
Example 4
Source File: Avro19Adapter.java    From avro-util with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public BinaryDecoder newBinaryDecoder(InputStream in, boolean buffered, BinaryDecoder reuse) {
  DecoderFactory factory = DecoderFactory.get();
  return buffered ? factory.binaryDecoder(in, reuse) : factory.directBinaryDecoder(in, reuse);
}
 
Example 5
Source File: Avro17Adapter.java    From avro-util with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public BinaryDecoder newBinaryDecoder(InputStream in, boolean buffered, BinaryDecoder reuse) {
  DecoderFactory factory = DecoderFactory.get();
  return buffered ? factory.binaryDecoder(in, reuse) : factory.directBinaryDecoder(in, reuse);
}