From 33c635aff291504b83a8503d19ded026deee460c Mon Sep 17 00:00:00 2001 From: Parag Jain Date: Thu, 9 Feb 2017 20:24:47 -0600 Subject: [PATCH] use as() method of base segment in reference counting segment (#3921) --- .../main/java/io/druid/segment/ReferenceCountingSegment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java b/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java index c30a7b95e98..8a4505da333 100644 --- a/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java +++ b/processing/src/main/java/io/druid/segment/ReferenceCountingSegment.java @@ -180,4 +180,9 @@ public class ReferenceCountingSegment extends AbstractSegment baseSegment.close(); } } + + public T as(Class clazz) + { + return getBaseSegment().as(clazz); + } }