parquet-thrift/src/main/java/org/apache/parquet/thrift/ProtocolReadToWrite.java
@Override
  public void readOne(TProtocol in, TProtocol out) throws TException {
    readOneStruct(in, out);
  }
@Override
  public void readOne(TProtocol in, TProtocol out) throws TException {
    readOneStruct(in, out);
  }
reads one record from in and writes it to out
exceptions are not recoverable as record might be halfway written
@param in input protocol
@param out output protocol
@throws TException if there is an error while reading or writing