Class CollectionFieldOperationHandler
java.lang.Object
com.linkedin.davinci.schema.merge.CollectionFieldOperationHandler
- Direct Known Subclasses:
SortBasedCollectionFieldOpHandler
This class handles all operations on a collection field with replication metadata.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCollectionFieldOperationHandler
(AvroCollectionElementComparator avroElementComparator) -
Method Summary
Modifier and TypeMethodDescriptionabstract UpdateResultStatus
handleDeleteList
(long deleteTimestamp, int coloID, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) abstract UpdateResultStatus
handleDeleteMap
(long deleteTimestamp, int coloID, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) abstract UpdateResultStatus
handleModifyList
(long modifyTimestamp, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, List<Object> newEntries, List<Object> toRemoveKeys) abstract UpdateResultStatus
handleModifyMap
(long modifyTimestamp, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, Map<String, Object> newEntries, List<String> toRemoveKeys) abstract UpdateResultStatus
handlePutList
(long putTimestamp, int coloID, List<Object> newFieldValue, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) abstract UpdateResultStatus
handlePutMap
(long putTimestamp, int coloID, IndexedHashMap<String, Object> newFieldValue, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField)
-
Field Details
-
avroElementComparator
-
-
Constructor Details
-
CollectionFieldOperationHandler
-
-
Method Details
-
handlePutList
public abstract UpdateResultStatus handlePutList(long putTimestamp, int coloID, List<Object> newFieldValue, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) -
handlePutMap
public abstract UpdateResultStatus handlePutMap(long putTimestamp, int coloID, IndexedHashMap<String, Object> newFieldValue, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) -
handleDeleteList
public abstract UpdateResultStatus handleDeleteList(long deleteTimestamp, int coloID, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) -
handleDeleteMap
public abstract UpdateResultStatus handleDeleteMap(long deleteTimestamp, int coloID, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) -
handleModifyList
public abstract UpdateResultStatus handleModifyList(long modifyTimestamp, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, List<Object> newEntries, List<Object> toRemoveKeys) -
handleModifyMap
public abstract UpdateResultStatus handleModifyMap(long modifyTimestamp, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, Map<String, Object> newEntries, List<String> toRemoveKeys)
-