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

Method getBuffer

java/core/src/java/org/apache/orc/impl/Lz4Codec.java:36–43  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

34 public Lz4Codec() {}
35
36 protected static byte[] getBuffer(int size) {
37 byte[] result = threadBuffer.get();
38 if (result == null || result.length < size || result.length > size * 2) {
39 result = new byte[size];
40 threadBuffer.set(result);
41 }
42 return result;
43 }
44
45 @Override
46 public Options getDefaultOptions() {

Callers 1

compressMethod · 0.95

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected