public class CollectionPartition<T> extends java.lang.Object implements DataPartition<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<T> |
dataList |
DEFAULT_REF
Constructor and Description |
---|
CollectionPartition() |
CollectionPartition(int id)
Deprecated.
use default constructor instead
|
Modifier and Type | Method and Description |
---|---|
void |
add(T val) |
void |
addAll(java.util.Collection<T> vals) |
void |
clear() |
DataPartitionConsumer<T> |
getConsumer()
Get the data consumer
|
int |
getPartitionId()
Get the id of the partition
|
void |
setId(int id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
first, firstOrDefault, getReference
protected java.util.List<T> dataList
@Deprecated public CollectionPartition(int id)
public CollectionPartition()
public void setId(int id)
setId
in interface DataPartition<T>
public void add(T val)
public void addAll(java.util.Collection<T> vals)
public DataPartitionConsumer<T> getConsumer()
DataPartition
getConsumer
in interface DataPartition<T>
public void clear()
clear
in interface DataPartition<T>
public int getPartitionId()
DataPartition
getPartitionId
in interface DataPartition<T>