Repository: cassandra Updated Branches: refs/heads/trunk 09c837f75 -> 74e3f1522
Change RowCacheSerializer access to public; add plugin page to web docs Patch by Amitkumar Ghatwal; Reviewed by Jeff Jirsa for CASSANDRA-13579 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/74e3f152 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/74e3f152 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/74e3f152 Branch: refs/heads/trunk Commit: 74e3f152229078f31591a15761d35d119733aa45 Parents: 09c837f Author: ghatwala <[email protected]> Authored: Mon Jun 5 10:39:30 2017 +0530 Committer: Jeff Jirsa <[email protected]> Committed: Tue Jun 13 11:53:32 2017 -0700 ---------------------------------------------------------------------- CHANGES.txt | 1 + doc/source/plugins/index.rst | 24 ++++++++++++++++++++ .../cache/SerializingCacheProvider.java | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/74e3f152/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index f8b8a77..649a79f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 4.0 + * Change the accessibility of RowCacheSerializer for third party row cache plugins (CASSANDRA-13579) * Allow sub-range repairs for a preview of repaired data (CASSANDRA-13570) * NPE in IR cleanup when columnfamily has no sstables (CASSANDRA-13585) * Fix Randomness of stress values (CASSANDRA-12744) http://git-wip-us.apache.org/repos/asf/cassandra/blob/74e3f152/doc/source/plugins/index.rst ---------------------------------------------------------------------- diff --git a/doc/source/plugins/index.rst b/doc/source/plugins/index.rst new file mode 100644 index 0000000..b9d90f8 --- /dev/null +++ b/doc/source/plugins/index.rst @@ -0,0 +1,24 @@ +.. 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. + +Cassandra's Plugins +===================== +The below lists out the different third-party plugins contributed for Apache Cassandra + +.. toctree:: + :maxdepth: 1 + + CAPI-Power http://git-wip-us.apache.org/repos/asf/cassandra/blob/74e3f152/src/java/org/apache/cassandra/cache/SerializingCacheProvider.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/cache/SerializingCacheProvider.java b/src/java/org/apache/cassandra/cache/SerializingCacheProvider.java index 1119295..813f6fe 100644 --- a/src/java/org/apache/cassandra/cache/SerializingCacheProvider.java +++ b/src/java/org/apache/cassandra/cache/SerializingCacheProvider.java @@ -33,8 +33,8 @@ public class SerializingCacheProvider implements CacheProvider<RowCacheKey, IRow return SerializingCache.create(DatabaseDescriptor.getRowCacheSizeInMB() * 1024 * 1024, new RowCacheSerializer()); } - // Package protected for tests - static class RowCacheSerializer implements ISerializer<IRowCacheEntry> + // Package Public: used by external Row Cache plugins + public static class RowCacheSerializer implements ISerializer<IRowCacheEntry> { public void serialize(IRowCacheEntry entry, DataOutputPlus out) throws IOException { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
