blob: 11c0f27b369e9cbca52904da45ee13f570fd6e97 [file] [log] [blame]
/*
* 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.
*/
#pragma once
#include <jni.h>
#include "velox/common/file/File.h"
#include "velox/common/file/FileSystems.h"
namespace gluten {
// Register JNI-or-local (or JVM-over-local, as long as it describes what happens here) file system. maxFileSize is
// necessary (!= 0) because we use this size to decide whether a new file can fit in JVM heap, otherwise we write it via
// local fs directly.
void registerJolFileSystem(uint64_t maxFileSize);
void initVeloxJniFileSystem(JNIEnv* env);
void finalizeVeloxJniFileSystem(JNIEnv* env);
} // namespace gluten