public final class KeyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.cloud.datastore.Key |
getKeyWithoutAncestors(com.google.cloud.datastore.Key entityKey)
Returns a copy of the provided
entityKey with its ancestors removed. |
public static com.google.cloud.datastore.Key getKeyWithoutAncestors(com.google.cloud.datastore.Key entityKey)
entityKey with its ancestors removed.
This is useful for performing HAS_ANCESTOR queries in Datastore which do not expect a fully qualified ancestors key list in the provided key.
entityKey - The Datastore entity key to transform.entityKey with ancestors removed.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.