All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opensearch.index.store.RemoteBufferedOutputDirectory Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 */

package org.opensearch.index.store;

import org.apache.lucene.store.IOContext;
import org.apache.lucene.store.IndexOutput;
import org.opensearch.common.blobstore.BlobContainer;

/**
 * A {@code RemoteBufferedOutputDirectory} is an extension of RemoteDirectory which also provides an abstraction layer
 * for storing a list of files to a remote store.
 * Additionally, with this implementation, creation of new files is also allowed.
 * A remoteDirectory contains only files (no sub-folder hierarchy).
 *
 * @opensearch.internal
 */
public class RemoteBufferedOutputDirectory extends RemoteDirectory {
    public RemoteBufferedOutputDirectory(BlobContainer blobContainer) {
        super(blobContainer);
    }

    @Override
    public IndexOutput createOutput(String name, IOContext context) {
        return new RemoteBufferedIndexOutput(name, this.blobContainer);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy