Package com.linkedin.data

Examples of com.linkedin.data.DataList


                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("integer", 99, "long", 999L, "float", 88.0f, "double", 888.0, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(BooleanMap.class, schema, input, adds);
    testMapBadInput(BooleanMap.class, schema, input, badInput, badOutput);
  }
View Full Code Here


                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(IntegerMap.class, schema, input, adds);
    testMapBadInput(IntegerMap.class, schema, input, badInput, badOutput);

    Map<String, ? extends Number> castFrom = asMap("one", 1L, "three", 3.0f, "five", 5.0, "seven", 7, "eleven", 11);
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(LongMap.class, schema, input, adds);
    testMapBadInput(LongMap.class, schema, input, badInput, badOutput);

    Map<String, ? extends Number> castFrom = asMap("one", 1, "three", 3.0f, "five", 5.0, "seven", 7, "eleven", 11);
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(FloatMap.class, schema, input, adds);
    testMapBadInput(FloatMap.class, schema, input, badInput, badOutput);

    Map<String, ? extends Number> castFrom = asMap("one", 1, "three", 3L, "five", 5.0, "seven", 7, "eleven", 11);
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(DoubleMap.class, schema, input, adds);
    testMapBadInput(DoubleMap.class, schema, input, badInput, badOutput);

    Map<String, ? extends Number> castFrom = asMap("one", 1, "three", 3L, "five", 5.0f, "seven", 7, "eleven", 11);
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "integer", 99, "long", 999L, "float", 88.0f, "double", 888.0,
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(StringMap.class, schema, input, adds);
    testMapBadInput(StringMap.class, schema, input, badInput, badOutput);
  }
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "integer", 99, "long", 999L, "float", 88.0f, "double", 888.0,
                                          "data", "\u0100",
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(BytesMap.class, schema, input, adds);
    testMapBadInput(BytesMap.class, schema, input, badInput, badOutput);
  }
View Full Code Here

                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "integer", 1, "long", 2L, "float", 3.0f, "double", 4.0, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "map", new DataMap(),
                                          "list", new DataList());

    testMap(EnumMapTemplate.class, EnumMapTemplate.SCHEMA, input, adds);
    testMapBadInput(EnumMapTemplate.class, EnumMapTemplate.SCHEMA, input, badInput, badOutput);
  }
View Full Code Here

                                         "null", null,
                                         "array", new StringArray(),
                                         "record", new FooRecord());
    Map<String, Object> badOutput = asMap("boolean", true, "integer", 1, "long", 2L, "float", 3.0f, "double", 4.0, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "list", new DataList());

    testMap(MapOfStringMapTemplate.class, MapOfStringMapTemplate.SCHEMA, input, adds);
    testMapBadInput(MapOfStringMapTemplate.class, MapOfStringMapTemplate.SCHEMA, input, badInput, badOutput);
  }
View Full Code Here

                                         "object", new Object(),
                                         "null", null,
                                         "array", new StringArray());
    Map<String, Object> badOutput = asMap("boolean", true, "integer", 1, "long", 2L, "float", 3.0f, "double", 4.0, "string", "hello",
                                          "bytes", ByteString.empty(),
                                          "list", new DataList());

    testMap(FooRecordMap.class, FooRecordMap.SCHEMA, input, adds);
    testMapBadInput(FooRecordMap.class, FooRecordMap.SCHEMA, input, badInput, badOutput);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.data.DataList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.