run apache-rat.
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/f4e689a1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/f4e689a1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/f4e689a1 Branch: refs/heads/master Commit: f4e689a1255957b24e2d5ce44bea429eba70d460 Parents: 4ea9a8e Author: DO YUNG YOON <[email protected]> Authored: Sun Nov 19 13:01:14 2017 +0900 Committer: DO YUNG YOON <[email protected]> Committed: Sun Nov 19 17:21:57 2017 +0900 ---------------------------------------------------------------------- s2core/build.sbt | 2 +- .../s2graph/core/storage/rocks/RocksHelper.scala | 19 +++++++++++++++++++ .../core/storage/rocks/RocksStorage.scala | 19 +++++++++++++++++++ .../storage/rocks/RocksStorageManagement.scala | 19 +++++++++++++++++++ .../storage/rocks/RocksStorageReadable.scala | 19 +++++++++++++++++++ .../core/storage/rocks/RocksStorageSerDe.scala | 19 +++++++++++++++++++ .../storage/rocks/RocksStorageWritable.scala | 19 +++++++++++++++++++ .../core/storage/rocks/RocksStorageTest.scala | 19 +++++++++++++++++++ 8 files changed, 134 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/build.sbt ---------------------------------------------------------------------- diff --git a/s2core/build.sbt b/s2core/build.sbt index 99cf61d..804c57c 100644 --- a/s2core/build.sbt +++ b/s2core/build.sbt @@ -49,7 +49,7 @@ libraryDependencies ++= Seq( "org.apache.hadoop" % "hadoop-hdfs" % hadoopVersion , "org.apache.lucene" % "lucene-core" % "6.6.0", "org.apache.lucene" % "lucene-queryparser" % "6.6.0", - "org.rocksdb" % "rocksdbjni" % "5.8.0" + "org.rocksdb" % "rocksdbjni" % "5.8.0", "org.scala-lang.modules" %% "scala-java8-compat" % "0.8.0" ) http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksHelper.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksHelper.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksHelper.scala index 1054683..49dda2a 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksHelper.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksHelper.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import java.nio.{ByteBuffer, ByteOrder} http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorage.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorage.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorage.scala index c9a0b26..11fae17 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorage.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorage.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import java.util.concurrent.TimeUnit http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageManagement.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageManagement.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageManagement.scala index 3b9d4f8..4e36690 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageManagement.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageManagement.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import com.typesafe.config.Config http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageReadable.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageReadable.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageReadable.scala index 194b3d2..2d6b542 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageReadable.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageReadable.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import java.util.Base64 http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageSerDe.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageSerDe.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageSerDe.scala index 833c857..f6bf62b 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageSerDe.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageSerDe.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import org.apache.s2graph.core._ http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageWritable.scala ---------------------------------------------------------------------- diff --git a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageWritable.scala b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageWritable.scala index 1057781..7ec147d 100644 --- a/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageWritable.scala +++ b/s2core/src/main/scala/org/apache/s2graph/core/storage/rocks/RocksStorageWritable.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import java.util.concurrent.locks.ReentrantLock http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f4e689a1/s2core/src/test/scala/org/apache/s2graph/core/storage/rocks/RocksStorageTest.scala ---------------------------------------------------------------------- diff --git a/s2core/src/test/scala/org/apache/s2graph/core/storage/rocks/RocksStorageTest.scala b/s2core/src/test/scala/org/apache/s2graph/core/storage/rocks/RocksStorageTest.scala index 0f36b9d..4aecb33 100644 --- a/s2core/src/test/scala/org/apache/s2graph/core/storage/rocks/RocksStorageTest.scala +++ b/s2core/src/test/scala/org/apache/s2graph/core/storage/rocks/RocksStorageTest.scala @@ -1,3 +1,22 @@ +/* + * 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.s2graph.core.storage.rocks import org.apache.s2graph.core.TestCommonWithModels
