public abstract class MultiCBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
built
true if the clusterings have been build, false otherwise. |
protected ClusteringComparator |
comparator
The table comparator.
|
protected boolean |
containsNull
true if the clusterings contains some null elements. |
protected boolean |
containsUnset
true if the composites contains some unset elements. |
protected boolean |
hasMissingElements
true if some empty collection have been added. |
protected int |
size
The number of clustering elements that have been added.
|
Modifier | Constructor and Description |
---|---|
protected |
MultiCBuilder(ClusteringComparator comparator) |
Modifier and Type | Method and Description |
---|---|
abstract MultiCBuilder |
addAllElementsToAll(java.util.List<java.util.List<java.nio.ByteBuffer>> values)
Adds individually each of the specified list of elements to the end of all of the existing composites.
|
abstract MultiCBuilder |
addEachElementToAll(java.util.List<java.nio.ByteBuffer> values)
Adds individually each of the specified elements to the end of all of the existing clusterings.
|
abstract MultiCBuilder |
addElementToAll(java.nio.ByteBuffer value)
Adds the specified element to all the clusterings.
|
abstract java.util.NavigableSet<Clustering<?>> |
build()
Builds the
clusterings . |
abstract java.util.NavigableSet<ClusteringBound<?>> |
buildBound(boolean isStart,
boolean isInclusive)
Builds the
ClusteringBound s |
abstract java.util.NavigableSet<ClusteringBound<?>> |
buildBoundForSlice(boolean isStart,
boolean isInclusive,
boolean isOtherBoundInclusive,
java.util.List<ColumnMetadata> columnDefs)
Builds the
ClusteringBound s for slice restrictions. |
protected void |
checkUpdateable() |
boolean |
containsNull()
Checks if the clusterings contains null elements.
|
boolean |
containsUnset()
Checks if the clusterings contains unset elements.
|
static MultiCBuilder |
create(ClusteringComparator comparator,
boolean forMultipleValues)
Creates a new empty
MultiCBuilder . |
boolean |
hasMissingElements()
Checks if some empty list of values have been added
|
boolean |
hasRemaining()
Checks if some elements can still be added to the clusterings.
|
int |
remainingCount()
Returns the number of elements that can be added to the clusterings.
|
protected final ClusteringComparator comparator
protected int size
protected boolean built
true
if the clusterings have been build, false
otherwise.protected boolean containsNull
true
if the clusterings contains some null
elements.protected boolean containsUnset
true
if the composites contains some unset
elements.protected boolean hasMissingElements
true
if some empty collection have been added.protected MultiCBuilder(ClusteringComparator comparator)
public static MultiCBuilder create(ClusteringComparator comparator, boolean forMultipleValues)
MultiCBuilder
.public abstract MultiCBuilder addElementToAll(java.nio.ByteBuffer value)
If this builder contains 2 clustering: A-B and A-C a call to this method to add D will result in the clusterings: A-B-D and A-C-D.
value
- the value of the next elementMulitCBuilder
public abstract MultiCBuilder addEachElementToAll(java.util.List<java.nio.ByteBuffer> values)
If this builder contains 2 clusterings: A-B and A-C a call to this method to add D and E will result in the 4 clusterings: A-B-D, A-B-E, A-C-D and A-C-E.
values
- the elements to addCompositeBuilder
public abstract MultiCBuilder addAllElementsToAll(java.util.List<java.util.List<java.nio.ByteBuffer>> values)
If this builder contains 2 composites: A-B and A-C a call to this method to add [[D, E], [F, G]] will result in the 4 composites: A-B-D-E, A-B-F-G, A-C-D-E and A-C-F-G.
values
- the elements to addCompositeBuilder
protected void checkUpdateable()
public int remainingCount()
public boolean containsNull()
true
if the clusterings contains null
elements, false
otherwise.public boolean containsUnset()
true
if the clusterings contains unset
elements, false
otherwise.public boolean hasMissingElements()
true
if the clusterings have some missing elements, false
otherwise.public abstract java.util.NavigableSet<Clustering<?>> build()
clusterings
.public abstract java.util.NavigableSet<ClusteringBound<?>> buildBoundForSlice(boolean isStart, boolean isInclusive, boolean isOtherBoundInclusive, java.util.List<ColumnMetadata> columnDefs)
ClusteringBound
s for slice restrictions.isStart
- specify if the bound is a start oneisInclusive
- specify if the bound is inclusive or notisOtherBoundInclusive
- specify if the other bound is inclusive or notcolumnDefs
- the columns of the slice restrictionClusteringBound
spublic abstract java.util.NavigableSet<ClusteringBound<?>> buildBound(boolean isStart, boolean isInclusive)
ClusteringBound
sisStart
- specify if the bound is a start oneisInclusive
- specify if the bound is inclusive or notClusteringBound
spublic boolean hasRemaining()
true
if it is possible to add more elements to the clusterings, false
otherwise.Copyright © 2009-2021 The Apache Software Foundation