Package org.apache.pinot.common.minion
Class MergeRollupTaskMetadata
- java.lang.Object
-
- org.apache.pinot.common.minion.BaseTaskMetadata
-
- org.apache.pinot.common.minion.MergeRollupTaskMetadata
-
public class MergeRollupTaskMetadata extends BaseTaskMetadata
Metadata for the minion task of typeMergeRollupTask. ThewatermarkMapdenotes the time (exclusive) upto which tasks have been executed for the bucket granularity. This gets serialized and stored in zookeeper under the path MINION_TASK_METADATA/${tableNameWithType}/MergeRollupTask
-
-
Constructor Summary
Constructors Constructor Description MergeRollupTaskMetadata(String tableNameWithType, Map<String,Long> watermarkMap)
-
Method Summary
Modifier and Type Method Description static MergeRollupTaskMetadatafromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)StringgetTableNameWithType()Map<String,Long>getWatermarkMap()Get the watermarkMap in millisorg.apache.helix.zookeeper.datamodel.ZNRecordtoZNRecord()-
Methods inherited from class org.apache.pinot.common.minion.BaseTaskMetadata
toJsonString, toString
-
-
-
-
Method Detail
-
getTableNameWithType
public String getTableNameWithType()
- Specified by:
getTableNameWithTypein classBaseTaskMetadata- Returns:
- table name appended with its type. E.g. MyTable_OFFLINE
-
fromZNRecord
public static MergeRollupTaskMetadata fromZNRecord(org.apache.helix.zookeeper.datamodel.ZNRecord znRecord)
-
toZNRecord
public org.apache.helix.zookeeper.datamodel.ZNRecord toZNRecord()
- Specified by:
toZNRecordin classBaseTaskMetadata- Returns:
ZNRecordcontaining the task metadata
-
-