Skip to content

Commit

Permalink
support cosn
Browse files Browse the repository at this point in the history
support cosn

support cosn

support cosn
  • Loading branch information
liujh committed Jan 7, 2025
1 parent 6cda28e commit 6d8a709
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paimon-filesystems/paimon-cosn-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>paimon-filesystems</artifactId>
<groupId>org.apache.paimon</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
</parent>
<artifactId>paimon-cosn-impl</artifactId>
<name>Paimon : FileSystems : COSN : Impl</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public int read(byte[] b, int off, int len) throws IOException {
public void close() throws IOException {
in.close();
}

/**
* Positions the stream to the given location. In contrast to {@link #seek(long)}, this
* method will always issue a "seek" command to the dfs and may not replace it by {@link
Expand All @@ -190,6 +191,7 @@ public void close() throws IOException {
public void forceSeek(long seekPos) throws IOException {
in.seek(seekPos);
}

/**
* Skips over a given amount of bytes in the stream.
*
Expand Down
19 changes: 18 additions & 1 deletion paimon-filesystems/paimon-cosn/pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>paimon-filesystems</artifactId>
<groupId>org.apache.paimon</groupId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
</parent>
<artifactId>paimon-cosn</artifactId>
<name>Paimon : FileSystems : COSN</name>
Expand Down

0 comments on commit 6d8a709

Please sign in to comment.