hdfs-protolib/src/main/java/com/streamsets/pipeline/stage/destination/hdfs/writer/RecordWriter.java
public long getLength() throws IOException {
    long length = -1;
    if (generator != null) {
      length = textOutputStream.getByteCount();
    } else if (seqWriter != null) {
      length = seqWriter.getLength();
    }
    return length;
  }
public long getLength() throws IOException {
    long length = -1;
    if (generator != null) {
      length = textOutputStream.getByteCount();
    } else if (seqWriter != null) {
      length = seqWriter.getLength();
    }
    return length;
  }
public long getLength ( ) throws IOException { long length = - 1 ; if ( generator != null ) { length = textOutputStream . getByteCount ( ) ; } else if ( seqWriter != null ) { length = seqWriter . getLength ( ) ; } return length ; }
buffer size.
buffer size .