/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public int getSubqueriesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetSubqueries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSubqueries(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public int getSubqueriesOrDefault(java.lang.String key, int defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.Integer> map = internalGetSubqueries().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public boolean containsSubqueries(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSubqueries().getMap().containsKey(key); } /** Use {@link #getSubqueriesMap()} instead. */
/** * * * <pre> * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` * subquery contained in the expression subtree rooted at this node. The * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. * </pre> * * <code>map<string, int32> subqueries = 2;</code> */ public java.util.Map<java.lang.String, java.lang.Integer> getSubqueriesMap() { return internalGetSubqueries().getMap(); } /**
public int getSubqueriesCount() { return internalGetSubqueries().getMap().size(); } /**
@java.lang.Override public com.google.spanner.v1.PlanNode.ShortRepresentation buildPartial() { com.google.spanner.v1.PlanNode.ShortRepresentation result = new com.google.spanner.v1.PlanNode.ShortRepresentation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.description_ = description_; result.subqueries_ = internalGetSubqueries(); result.subqueries_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; }