public final class KeyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Key |
getKeyWithoutAncestors(Key entityKey)
Returns a copy of the provided
entityKey with its ancestors removed. |
public static Key getKeyWithoutAncestors(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 © 2022. All rights reserved.