public class

ZNRecordDelta

extends Object
java.lang.Object
   ↳ org.apache.helix.ZNRecordDelta

Class Overview

A ZNRecord container that specifies how it should be merged with another ZNRecord

Summary

Nested Classes
enum ZNRecordDelta.MergeOperation Supported methods of updating a ZNRecord  
Fields
public ZNRecordDelta.MergeOperation _mergeOperation Selected update mode
public ZNRecord _record Backing ZNRecord containing updates
Public Constructors
ZNRecordDelta(ZNRecord record, ZNRecordDelta.MergeOperation mergeOperation)
Initialize the delta with a record and the update mode
ZNRecordDelta(ZNRecord record)
Initialize the delta with a record and a default update mode of add
ZNRecordDelta()
Initialize with an empty ZNRecord and a default update mode of add
Public Methods
ZNRecordDelta.MergeOperation getMergeOperation()
Get the selected update mode
ZNRecord getRecord()
Get the backing ZNRecord
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public ZNRecordDelta.MergeOperation _mergeOperation

Selected update mode

public ZNRecord _record

Backing ZNRecord containing updates

Public Constructors

public ZNRecordDelta (ZNRecord record, ZNRecordDelta.MergeOperation mergeOperation)

Initialize the delta with a record and the update mode

public ZNRecordDelta (ZNRecord record)

Initialize the delta with a record and a default update mode of add

public ZNRecordDelta ()

Initialize with an empty ZNRecord and a default update mode of add

Public Methods

public ZNRecordDelta.MergeOperation getMergeOperation ()

Get the selected update mode

Returns
  • MergeOperation currently in effect

public ZNRecord getRecord ()

Get the backing ZNRecord

Returns
  • the ZNRecord containing the changes