Skip to content

Commit

Permalink
[ISSUE-281] Add cstore module
Browse files Browse the repository at this point in the history
  • Loading branch information
Leomrlin authored Nov 28, 2023
1 parent 6b0ff84 commit 27c4421
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 17 deletions.
123 changes: 123 additions & 0 deletions geaflow-cstore/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,34 @@
<version>0.1.3.1</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
<description>TuGraph-analytics is a distributed streaming computing engine based on graph model.</description>
<url>https://github.com/TuGraph-family/tugraph-analytics</url>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>tugraph</id>
<name>tugraph</name>
<roles>
<role>Developer</role>
</roles>
</developer>
</developers>

<scm>
<connection>https://github.com/TuGraph-family/tugraph-analytics.git</connection>
<developerConnection>https://github.com/TuGraph-family/analytics.git</developerConnection>
<url>https://github.com/TuGraph-family/analytics</url>
</scm>

<properties>
<jmh.version>1.11.2</jmh.version>
<testng.version>6.14.2</testng.version>
Expand Down Expand Up @@ -101,6 +129,15 @@
</build>

<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>aliyun</id>
<url>https://maven.aliyun.com/repository/public</url>
Expand All @@ -125,4 +162,90 @@
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--Compiler -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
<verbose>true</verbose>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!--Release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>install</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion geaflow/geaflow-plugins/geaflow-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<module>geaflow-store-rocksdb</module>
<module>geaflow-store-redis</module>
<module>geaflow-store-jdbc</module>
<!-- <module>geaflow-store-cstore</module>-->
<module>geaflow-store-cstore</module>
</modules>

<dependencies>
Expand Down
8 changes: 4 additions & 4 deletions geaflow/geaflow-state/geaflow-state-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
<artifactId>geaflow-state-strategy</artifactId>
</dependency>

<!-- <dependency>-->
<!-- <groupId>com.antgroup.tugraph</groupId>-->
<!-- <artifactId>geaflow-store-cstore</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-store-cstore</artifactId>
</dependency>

<!-- test -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@
import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;

@Ignore
public class CStoreGraphStateTest {
private static final Logger LOGGER = LoggerFactory.getLogger(CStoreGraphStateTest.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Object[] factoryMethod() {
new StaticGraphStateTest(StoreType.MEMORY, new HashMap<>()),
new StaticGraphStateTest(StoreType.MEMORY, ImmutableMap.of(MemoryConfigKeys.CSR_MEMORY_ENABLE.getKey(), "true")),
new StaticGraphStateTest(StoreType.ROCKSDB, ImmutableMap.of(ExecutionConfigKeys.JOB_APP_NAME.getKey(), "StaticGraphStateTest")),
//new StaticGraphStateTest(StoreType.CSTORE, ImmutableMap.of(ExecutionConfigKeys.JOB_APP_NAME.getKey(), "StaticGraphStateTest")),
new StaticGraphStateTest(StoreType.CSTORE, ImmutableMap.of(ExecutionConfigKeys.JOB_APP_NAME.getKey(), "StaticGraphStateTest")),
};
}
}
Expand Down
8 changes: 4 additions & 4 deletions geaflow/geaflow-state/geaflow-state-strategy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-store-rocksdb</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.antgroup.tugraph</groupId>-->
<!-- <artifactId>geaflow-store-cstore</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-store-cstore</artifactId>
</dependency>
<dependency>
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-view-meta</artifactId>
Expand Down
10 changes: 5 additions & 5 deletions geaflow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,11 @@
<artifactId>geaflow-store-rocksdb</artifactId>
<version>${project.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.antgroup.tugraph</groupId>-->
<!-- <artifactId>geaflow-store-cstore</artifactId>-->
<!-- <version>${project.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-store-cstore</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.antgroup.tugraph</groupId>
<artifactId>geaflow-store-redis</artifactId>
Expand Down

0 comments on commit 27c4421

Please sign in to comment.