From a14822348450fcf48815c70a2ccb86d8c723e084 Mon Sep 17 00:00:00 2001 From: Nuno Santos Date: Thu, 3 Oct 2024 17:23:57 +0100 Subject: [PATCH] Remove no longer used class. --- .../pipelined/NodeDocumentCodecProvider.java | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/NodeDocumentCodecProvider.java diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/NodeDocumentCodecProvider.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/NodeDocumentCodecProvider.java deleted file mode 100644 index e52a436bc73..00000000000 --- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/NodeDocumentCodecProvider.java +++ /dev/null @@ -1,47 +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.jackrabbit.oak.index.indexer.document.flatfile.pipelined; - -import org.apache.jackrabbit.oak.plugins.document.Collection; -import org.apache.jackrabbit.oak.plugins.document.NodeDocument; -import org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore; -import org.bson.codecs.Codec; -import org.bson.codecs.configuration.CodecProvider; -import org.bson.codecs.configuration.CodecRegistry; - -public class NodeDocumentCodecProvider implements CodecProvider { - private final MongoDocumentStore store; - private final Collection collection; - private final MongoDocumentFilter documentFilter; - - public NodeDocumentCodecProvider(MongoDocumentStore store, Collection collection, MongoDocumentFilter documentFilter) { - this.store = store; - this.collection = collection; - this.documentFilter = documentFilter; - } - - @Override - public Codec get(Class clazz, CodecRegistry registry) { - if (clazz == NodeDocument.class) { - NodeDocumentCodec nodeDocumentCodec = new NodeDocumentCodec(store, collection, documentFilter, registry); - return (Codec) nodeDocumentCodec; - } - return null; - } -}