aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/java/org/apache/drill/exec/util
diff options
context:
space:
mode:
authorArina Ielchiieva <arina.yelchiyeva@gmail.com>2018-09-28 20:47:40 +0200
committerVolodymyr Vysotskyi <vvovyk@gmail.com>2018-10-08 12:56:42 +0300
commit2bd26ffe34108f876184c63188122f2d49db4c4a (patch)
tree4eec0be053925ac066ba6304742fb5dcbe20af02 /exec/java-exec/src/main/java/org/apache/drill/exec/util
parent0ca84ea40812527b481c5a052687021b43fdfc88 (diff)
DRILL-6762: Fix dynamic UDFs versioning issue
1. Added UndefinedVersionDelegatingStore to serve as versioned wrapper for those stores that do not support versioning. 2. Aligned remote and local function registries version type. Type will be represented as int since ZK version is returned as int. 3. Added NOT_AVAILABLE and UNDEFINED versions to DataChangeVersion holder to indicate proper registry state. 4. Added additional trace logging. 5. Minor refactoring and clean up. closes #1484
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/util')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/util/CheckedSupplier.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/util/CheckedSupplier.java b/exec/java-exec/src/main/java/org/apache/drill/exec/util/CheckedSupplier.java
deleted file mode 100644
index b744ac8c0..000000000
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/util/CheckedSupplier.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.drill.exec.util;
-
-/**
- * The java standard library does not provide a lambda function interface for funtions that take no arguments,
- * but that throw an exception. So, we have to define our own here.
- * @param <T> The return type of the lambda function.
- * @param <E> The type of exception thrown by the lambda function.
- */
-@FunctionalInterface
-public interface CheckedSupplier<T, E extends Exception> {
- T get() throws E;
-}