-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify the NamedValueContainers structure (#1414)
Co-authored-by: Tatu Saloranta <tatu.saloranta@datastax.com>
- Loading branch information
1 parent
e207846
commit 115d4d6
Showing
15 changed files
with
118 additions
and
228 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
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
28 changes: 22 additions & 6 deletions
28
src/main/java/io/stargate/sgv2/jsonapi/service/shredding/CqlNamedValueContainer.java
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 |
---|---|---|
@@ -1,10 +1,26 @@ | ||
package io.stargate.sgv2.jsonapi.service.shredding; | ||
|
||
import com.datastax.oss.driver.api.core.metadata.schema.ColumnMetadata; | ||
import java.util.Collection; | ||
|
||
/** | ||
* Base interface for {@link CqlNamedValue} containers, so they can be used in a generic way, | ||
* regardless of order. | ||
*/ | ||
public interface CqlNamedValueContainer | ||
extends NamedValueContainer<ColumnMetadata, Object, CqlNamedValue> {} | ||
/** A container for {@link CqlNamedValue}'s that maintains the order the named values were added. */ | ||
public class CqlNamedValueContainer | ||
extends NamedValueContainer<ColumnMetadata, Object, CqlNamedValue> { | ||
|
||
public CqlNamedValueContainer() { | ||
super(); | ||
} | ||
|
||
public CqlNamedValueContainer(int initialCapacity) { | ||
super(initialCapacity); | ||
} | ||
|
||
public CqlNamedValueContainer(CqlNamedValueContainer container) { | ||
super(container); | ||
} | ||
|
||
public CqlNamedValueContainer(Collection<CqlNamedValue> values) { | ||
super(); | ||
putAll(values); | ||
} | ||
} |
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
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
29 changes: 0 additions & 29 deletions
29
src/main/java/io/stargate/sgv2/jsonapi/service/shredding/OrderedCqlNamedValueContainer.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/java/io/stargate/sgv2/jsonapi/service/shredding/OrderedJsonNamedValueContainer.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
src/main/java/io/stargate/sgv2/jsonapi/service/shredding/OrderedNamedValueContainer.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...main/java/io/stargate/sgv2/jsonapi/service/shredding/UnorderedCqlNamedValueContainer.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...ain/java/io/stargate/sgv2/jsonapi/service/shredding/UnorderedJsonNamedValueContainer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.