diff options
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/amazon/carbonado/spi/StorableIndexSet.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/StorableIndexSet.java b/src/main/java/com/amazon/carbonado/spi/StorableIndexSet.java index e9295bc..965880e 100644 --- a/src/main/java/com/amazon/carbonado/spi/StorableIndexSet.java +++ b/src/main/java/com/amazon/carbonado/spi/StorableIndexSet.java @@ -175,6 +175,15 @@ public class StorableIndexSet<S extends Storable> extends TreeSet<StorableIndex< // Now replace merged indexes.
replaceEntries(mergedReplacements);
+ setDefaultDirection(defaultDirection);
+ }
+
+ /**
+ * Set the default direction for all index properties.
+ *
+ * @param defaultDirection replace unspecified property directions with this
+ */
+ public void setDefaultDirection(Direction defaultDirection) {
// Apply default sort direction to those unspecified.
if (defaultDirection != Direction.UNSPECIFIED) {
Map<StorableIndex<S>, StorableIndex<S>> replacements = null;
|