This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,9 @@ | |
* An index partitioner to split the index in multiple partitions. | ||
* | ||
* Index partitioning is useful to speed up some searches to the detriment of others, depending on the implementation. | ||
* It is also useful to overcome the Lucene's hard limit of 2147483519 documents per index. | ||
* | ||
* It is also useful to overcome the Lucene's hard limit of 2147483519 documents per local index. | ||
* However, queries involving partitions with more than 2147483519 total documents will still fail. | ||
* | ||
* @author Andres de la Pena {@literal <[email protected]>} | ||
*/ | ||
|
@@ -41,10 +43,12 @@ public static class None extends Partitioner { | |
} | ||
|
||
/** | ||
* {@link Partitioner} based on the Cassandra's partitioning token. | ||
* A {@link Partitioner} based on the partition key token. Partitioning on token guarantees a good load balancing | ||
* between partitions while speeding up partition-directed searches to the detriment of token range searches | ||
* performance. It allows to efficiently run partition directed queries in nodes indexing more than 2147483519 rows. | ||
* However, token range searches in nodes with more than 2147483519 rows will fail. | ||
* | ||
* Partitioning on token guarantees a good load balancing between partitions while speeding up partition-directed | ||
* searches to the detriment of token range searches. | ||
* The number of partitions per node should be specified. | ||
*/ | ||
public static class OnToken extends Partitioner { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,8 @@ import org.apache.cassandra.db.{DecoratedKey, ReadCommand} | |
* Index partitioning is useful to speed up some searches to the detriment of others, depending on | ||
* the implementation. | ||
* | ||
* It is also useful to overcome the Lucene's hard limit of 2147483519 documents per index. | ||
* It is also useful to overcome the Lucene's hard limit of 2147483519 documents per local index. | ||
* However, queries involving partitions with more than 2147483519 total documents will still fail. | ||
* | ||
* @author Andres de la Pena `[email protected]` | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,12 @@ import com.stratio.cassandra.lucene.IndexException | |
import org.apache.cassandra.db._ | ||
import org.apache.cassandra.dht.Token | ||
|
||
/** [[Partitioner]] based on the partition key token. | ||
/** [[Partitioner]] partitioner based on the partition key token. | ||
* | ||
* Partitioning on token guarantees a good load balancing between partitions while speeding up | ||
* partition-directed searches to the detriment of token range searches. | ||
* partition-directed searches to the detriment of token range searches performance. It allows to | ||
* efficiently run partition directed queries in nodes indexing more than 2147483519 rows. However, | ||
* token range searches in nodes with more than 2147483519 rows will fail. | ||
* | ||
* @param partitions the number of partitions | ||
* @author Andres de la Pena `[email protected]` | ||
|