MCPcopy Create free account
hub / github.com/apache/orc / addStream

Method addStream

java/core/src/test/org/apache/orc/impl/MockStripe.java:46–57  ·  view source on GitHub ↗
(int column, OrcProto.Stream.Kind kind,
                              long offset, ByteBuffer bytes)

Source from the content-addressed store, hash-verified

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 =

Callers 7

testPartialPlanMethod · 0.45
testPartialPlanStringMethod · 0.45
createOldBloomsMethod · 0.45
createMixedBloomsMethod · 0.45
createNewBloomsMethod · 0.45
testTypeConversionMethod · 0.45

Calls 2

getAreaMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected