(int column, OrcProto.Stream.Kind kind,
long offset, ByteBuffer bytes)
| 44 | } |
| 45 | |
| 46 | public MockStream addStream(int column, OrcProto.Stream.Kind kind, |
| 47 | long offset, ByteBuffer bytes) { |
| 48 | MockStream result = new MockStream(column, kind, offset, bytes); |
| 49 | streams.add(result); |
| 50 | int length = bytes.remaining(); |
| 51 | if (StreamName.getArea(kind) == StreamName.Area.INDEX) { |
| 52 | indexLength += length; |
| 53 | } else { |
| 54 | dataLength += length; |
| 55 | } |
| 56 | return result; |
| 57 | } |
| 58 | |
| 59 | public void addEncoding(OrcProto.ColumnEncoding.Kind kind) { |
| 60 | OrcProto.ColumnEncoding.Builder result = |
no test coverage detected