public interface DseRelationStructure<SelfT extends DseRelationStructure<SelfT>> extends DseRelationOptions<SelfT>
Modifier and Type | Method and Description |
---|---|
SelfT |
withClusteringOrder(CqlIdentifier columnName,
ClusteringOrder order)
Adds the provided clustering order.
|
default SelfT |
withClusteringOrder(Map<String,ClusteringOrder> orderings)
Shortcut for
withClusteringOrderByIds(Map) with the columns specified as
case-insensitive names. |
default SelfT |
withClusteringOrder(String columnName,
ClusteringOrder order)
|
SelfT |
withClusteringOrderByIds(Map<CqlIdentifier,ClusteringOrder> orderings)
Adds the provided CLUSTERING ORDER.
|
withBloomFilterFpChance, withCaching, withCDC, withComment, withCompaction, withCompression, withCompression, withDcLocalReadRepairChance, withDefaultTimeToLiveSeconds, withDeflateCompression, withDeflateCompression, withGcGraceSeconds, withLZ4Compression, withLZ4Compression, withMaxIndexInterval, withMemtableFlushPeriodInMs, withMinIndexInterval, withNoCompression, withReadRepairChance, withSnappyCompression, withSnappyCompression, withSpeculativeRetry
getOptions, withOption
@NonNull SelfT withClusteringOrderByIds(@NonNull Map<CqlIdentifier,ClusteringOrder> orderings)
They will be appended in the iteration order of the provided map. If an ordering was already defined for a given identifier, it will be removed and the new ordering will appear in its position in the provided map.
@NonNull default SelfT withClusteringOrder(@NonNull Map<String,ClusteringOrder> orderings)
withClusteringOrderByIds(Map)
with the columns specified as
case-insensitive names. They will be wrapped with CqlIdentifier.fromCql(String)
.
Note that it's possible for two different case-sensitive names to resolve to the same identifier, for example "foo" and "Foo"; if this happens, a runtime exception will be thrown.
@NonNull SelfT withClusteringOrder(@NonNull CqlIdentifier columnName, @NonNull ClusteringOrder order)
If clustering order was already defined for this identifier, it will be removed and the new clause will be appended at the end of the current clustering order.
@NonNull default SelfT withClusteringOrder(@NonNull String columnName, @NonNull ClusteringOrder order)
Copyright © 2017–2020. All rights reserved.