T
- partitionpublic interface DataPartition<T>
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_REF |
Modifier and Type | Method and Description |
---|---|
default void |
clear() |
default T |
first()
Returns the first data frame of this partition
|
default T |
firstOrDefault(T defaultValue)
Returns the first data frame of this partition or defaultValue
if it doesn't exist
|
DataPartitionConsumer<T> |
getConsumer()
Get the data consumer
|
int |
getPartitionId()
Get the id of the partition
|
default java.lang.String |
getReference()
Reference can be used to load a persisted partition from disk of hdfs
|
void |
setId(int id) |
static final java.lang.String DEFAULT_REF
DataPartitionConsumer<T> getConsumer()
default T firstOrDefault(T defaultValue)
default T first()
void setId(int id)
int getPartitionId()
default void clear()
default java.lang.String getReference()