This is an automated email from the ASF dual-hosted git repository.
wlo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git
The following commit(s) were added to refs/heads/master by this push:
new ed6694382 Add always false predicate (#3903)
ed6694382 is described below
commit ed66943824c96a591bf53c071f0be1f086e5ef62
Author: William Lo <[email protected]>
AuthorDate: Mon Mar 25 19:27:31 2024 -0400
Add always false predicate (#3903)
---
.../management/copy/predicates/AlwaysFalse.java | 34 ++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git
a/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/predicates/AlwaysFalse.java
b/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/predicates/AlwaysFalse.java
new file mode 100644
index 000000000..b24849f2f
--- /dev/null
+++
b/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy/predicates/AlwaysFalse.java
@@ -0,0 +1,34 @@
+/*
+ * 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.gobblin.data.management.copy.predicates;
+
+import com.google.common.base.Predicate;
+
+import javax.annotation.Nullable;
+
+
+/**
+ * Predicate that is always false.
+ */
+public class AlwaysFalse<T> implements Predicate<T> {
+
+ @Override
+ public boolean apply(@Nullable T input) {
+ return false;
+ }
+}