@Test public void arrayValueInMultimap() { String json = "[ {'foo':[1, 2]} ]"; MultimapRecord record = JsonRecords.parseAsMultimap(json).get(0); Collection<RecordValue<?>> values = record.get(Column.create("foo")); Set<Integer> ints = Sets.newHashSet(); for (RecordValue<?> value : values) { ints.add(((IntegerRecordValue) value).value()); } Assert.assertEquals(ImmutableSet.of(1, 2), ints); }
public static List<MultimapRecord> parseAsMultimap(File jsonFile) throws FileNotFoundException, IOException, JsonSyntaxException { return parseAsMultimap(jsonFile, new CountingDocIdGenerator()); }
JsonRecords { public static List<MultimapRecord> parseAsMultimap(File jsonFile) throws FileNotFoundException, IOException, JsonSyntaxException { return parseAsMultimap(jsonFile, new CountingDocIdGenerator()); } }
JsonRecords { public static List<MultimapRecord> parseAsMultimap(File jsonFile) throws FileNotFoundException, IOException, JsonSyntaxException { return parseAsMultimap(jsonFile, new CountingDocIdGenerator()); }  }
JsonRecords { public static List<MultimapRecord> parseAsMultimap(File jsonFile) throws FileNotFoundException, IOException, JsonSyntaxException { return parseAsMultimap(jsonFile, new CountingDocIdGenerator()); }  static List<MapRecord> parseAsMap(File jsonFile); static List<MultimapRecord> parseAsMultimap(File jsonFile); static List<MapRecord> parseAsMap(File jsonFile, DocIdGenerator generator); static List<MultimapRecord> parseAsMultimap(File jsonFile, DocIdGenerator generator); static List<MapRecord> parseAsMap(String json); static List<MultimapRecord> parseAsMultimap(String json); static List<MapRecord> parseAsMap(String json, DocIdGenerator generator); static List<MultimapRecord> parseAsMultimap(String json, DocIdGenerator generator); }
JsonRecords { public static List<MultimapRecord> parseAsMultimap(File jsonFile) throws FileNotFoundException, IOException, JsonSyntaxException { return parseAsMultimap(jsonFile, new CountingDocIdGenerator()); }  static List<MapRecord> parseAsMap(File jsonFile); static List<MultimapRecord> parseAsMultimap(File jsonFile); static List<MapRecord> parseAsMap(File jsonFile, DocIdGenerator generator); static List<MultimapRecord> parseAsMultimap(File jsonFile, DocIdGenerator generator); static List<MapRecord> parseAsMap(String json); static List<MultimapRecord> parseAsMultimap(String json); static List<MapRecord> parseAsMap(String json, DocIdGenerator generator); static List<MultimapRecord> parseAsMultimap(String json, DocIdGenerator generator);  }