API Changes in 2316
This is a backwards incompatible change. As a result, the minimum supported client version has been bumped to 2316.
Summary
TypedValue
has been deprecated. UseValue
instead.All APIs previously available in
TypedValue
have also been made available inValue
.
Previously deprecated APIs have been removed.
APIs that expected a
Value
as a key, have now been changed to expect aKey instead
.Additionally, APIs that returned or used
TypedValue
have been changed to return or useValue
.Find you more information for this in the API level changes section.
Value.toString()
will now print out a human readable String.
Removed Deprecated APIs
GrainContext.mapGetRange(int mapId, Value startSubkey, Value endSubkey)
GrainContext.mapGetRange(String mapName, Value startSubkey, Value endSubkey)
GrainView.mapGetRange(int mapId, Value startSubkey, Value endSubkey)
GrainView.mapGetRange(String mapName, Value startSubkey, Value endSubkey)
Grain.mapGetRangeAsync(String mapName, Value startKey, Value endKey, Callback<Iterator<KeyValue>> callback)
Grain.mapGetRange(String mapName, Value startKey, Value endKey)
Grain.mapGetRangeAsync(String mapName, Cursor cursor)
Grain.mapGetRange(String mapName, Cursor cursor)
Gain.mapGetRangeAsync(int mapId, Value startKey, Value endKey, Callback<Iterator<KeyValue>> callback)
Grain.mapGetRangeAsync(int mapId, Value startKey, Value endKey)
Grain.mapGetRange(int mapId, Value startKey, Value endKey)
Grain.mapGetRangeAsync(int mapId, Cursor cursor)
Grain.mapGetRange(int mapId, Cursor cursor)
MapQuery.startsWith(Value key)
MapQuery.startsAfter(Value key)
MapQuery.endsWith(Value key)
MapQuery.endsBefore(Value key)
Here are a few examples showing how the mapGetRange
API calls (and other deprecated range queries) translate into mapQuery()
Deprecated Range Queries | mapQuery Equivalent |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
API level changes
The following APIs now use Key
instead of Value
. The Value
counterpart for these APIs have now been deprecated.
NOTE: The following table shows only the sync API deprecations, but the same applies to the async counterparts.
Cursor.java
Cursor.java
Deprecated APIs | New APIs |
---|---|
|
|
Event.java
Event.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
Grain.java
Grain.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value.java
Value.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
KeyValue.java
KeyValue.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
MapQuery.java
MapQuery.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
| |
| |
| |
|
QueryExpression.java
QueryExpression.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
|
|
Table.java
Table.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
Topic.java
Topic.java
Deprecated APIs | New APIs |
---|---|
|
|
GrainContext.java
GrainContext.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GrainOp.java
GrainOp.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
GrainView.java
GrainView.java
Deprecated APIs | New APIs |
---|---|
|
|
|
|
|
|
|
|
|
|
|
Last updated