All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebeanservice.elastic.update.UpdateNested Maven / Gradle / Ivy

package com.avaje.ebeanservice.elastic.update;

import java.util.ArrayList;
import java.util.List;

/**
 * A group of nested updates for a given path.
 * 

* We group these together to process in batch/bulk. *

*/ public class UpdateNested { private final String path; private final List ids = new ArrayList(); /** * Construct given the path. */ public UpdateNested(String path) { this.path = path; } /** * Return the path. */ public String getPath() { return path; } /** * Return the Ids. */ public List getIds() { return ids; } /** * Add an Id to the list. */ public void addId(Object id) { ids.add(id); } }