Guest User

Untitled

a guest
Jan 18th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. FieldValueList c = qr.getValues().iterator().next();
  2. c.get("family").getRepeatedValue().get(0).getRecordValue().get("id");
  3.  
  4. Method threw 'java.lang.UnsupportedOperationException' exception.
  5. Retrieving field value by name is not supported when there is no fields schema provided
  6.  
  7. qr.getSchema().getFields().get("family").getSubFields().toString();
  8. -->
  9. [Field{name=id, type=INTEGER, mode=NULLABLE, description=null}, Field{name=name, type=STRING, mode=NULLABLE, description=null}]
  10.  
  11. c.get("family").getRepeatedValue().get(0).getRecordValue().get(0).getLongValue();
Add Comment
Please, Sign In to add comment