Package com.linkedin.data

Examples of com.linkedin.data.DataList


  public static final String OP_NAME = PatchConstants.DELETE_COMMAND;

  @Override
  public void store(DataMap parentMap, String key)
  {
    DataList deleteList = (DataList)parentMap.get(OP_NAME);
    if (deleteList == null)
    {
      deleteList = new DataList();
      parentMap.put(OP_NAME, deleteList);
    }
    deleteList.add(key);
  }
View Full Code Here


  public static class EnumArrayTemplate extends com.linkedin.data.template.DirectArrayTemplate<Fruits>
  {
    public static final ArrayDataSchema SCHEMA = (ArrayDataSchema) DataTemplateUtil.parseSchema("{ \"type\" : \"array\", \"items\" : { \"type\" : \"enum\", \"name\" : \"Fruits\", \"symbols\" : [ \"APPLE\", \"ORANGE\", \"BANANA\", \"GRAPES\", \"PINEAPPLE\" ] } }");
    public EnumArrayTemplate()
    {
      this(new DataList());
    }
View Full Code Here

    {
      this(new DataList());
    }
    public EnumArrayTemplate(int capacity)
    {
      this(new DataList(capacity));
    }
View Full Code Here

    {
      this(new DataList(capacity));
    }
    public EnumArrayTemplate(Collection<Fruits> c)
    {
      this(new DataList(c.size()));
      addAll(c);
    }
View Full Code Here

  public static class ArrayOfStringArrayTemplate extends WrappingArrayTemplate<StringArray>
  {
    public static final ArrayDataSchema SCHEMA = (ArrayDataSchema) DataTemplateUtil.parseSchema("{ \"type\" : \"array\", \"items\" : { \"type\" : \"array\", \"items\" : \"string\" } }");
    public ArrayOfStringArrayTemplate()
    {
      this(new DataList());
    }
View Full Code Here

    {
      this(new DataList());
    }
    public ArrayOfStringArrayTemplate(int capacity)
    {
      this(new DataList(capacity));
    }
View Full Code Here

    {
      this(new DataList(capacity));
    }
    public ArrayOfStringArrayTemplate(Collection<StringArray> c)
    {
      this(new DataList(c.size()));
      addAll(c);
    }
View Full Code Here

  public static class FooRecordArray extends WrappingArrayTemplate<FooRecord>
  {
    public static final ArrayDataSchema SCHEMA = (ArrayDataSchema) DataTemplateUtil.parseSchema("{ \"type\" : \"array\", \"items\" : { \"type\" : \"record\", \"name\" : \"Foo\", \"fields\" : [ { \"name\" : \"bar\", \"type\" : \"string\" } ] } }");
    public FooRecordArray()
    {
      this(new DataList());
    }
View Full Code Here

    {
      this(new DataList());
    }
    public FooRecordArray(int capacity)
    {
      this(new DataList(capacity));
    }
View Full Code Here

    {
      this(new DataList(capacity));
    }
    public FooRecordArray(Collection<FooRecord> c)
    {
      this(new DataList(c.size()));
      addAll(c);
    }
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.