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

Method isAvailable

java/core/src/java/org/apache/orc/impl/ZlibCodec.java:195–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 }
194
195 @Override
196 public boolean isAvailable() {
197 if (direct == null) {
198 // see nowrap option in new Inflater(boolean) which disables zlib headers
199 try {
200 ensureShim();
201 direct = (decompressShim != null);
202 } catch (UnsatisfiedLinkError ule) {
203 direct = false;
204 }
205 }
206 return direct;
207 }
208
209 private void ensureShim() {
210 if (decompressShim == null) {

Callers

nothing calls this directly

Calls 1

ensureShimMethod · 0.95

Tested by

no test coverage detected