Class SortBasedCollectionFieldOpHandler
java.lang.Object
com.linkedin.davinci.schema.merge.CollectionFieldOperationHandler
com.linkedin.davinci.schema.merge.SortBasedCollectionFieldOpHandler
-
Field Summary
Fields inherited from class com.linkedin.davinci.schema.merge.CollectionFieldOperationHandler
avroElementComparator
-
Constructor Summary
ConstructorDescriptionSortBasedCollectionFieldOpHandler
(AvroCollectionElementComparator elementComparator) -
Method Summary
Modifier and TypeMethodDescriptionhandleDeleteList
(long deleteTimestamp, int coloID, CollectionRmdTimestamp collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) handleDeleteMap
(long deleteTimestamp, int coloID, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) handleModifyList
(long modifyTimestamp, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, List<Object> toAddElements, List<Object> toRemoveElements) 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) handlePutList
(long putTimestamp, int coloID, List<Object> newFieldValue, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) handlePutMap
(long putTimestamp, int coloID, IndexedHashMap<String, Object> newFieldValue, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField)
-
Constructor Details
-
SortBasedCollectionFieldOpHandler
-
-
Method Details
-
handlePutList
public UpdateResultStatus handlePutList(long putTimestamp, int coloID, List<Object> newFieldValue, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) - Specified by:
handlePutList
in classCollectionFieldOperationHandler
-
handlePutMap
public 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) - Specified by:
handlePutMap
in classCollectionFieldOperationHandler
-
handleDeleteList
public UpdateResultStatus handleDeleteList(long deleteTimestamp, int coloID, CollectionRmdTimestamp collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) - Specified by:
handleDeleteList
in classCollectionFieldOperationHandler
-
handleDeleteMap
public UpdateResultStatus handleDeleteMap(long deleteTimestamp, int coloID, CollectionRmdTimestamp<String> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField) - Specified by:
handleDeleteMap
in classCollectionFieldOperationHandler
-
handleModifyList
public UpdateResultStatus handleModifyList(long modifyTimestamp, CollectionRmdTimestamp<Object> collectionFieldRmd, org.apache.avro.generic.GenericRecord currValueRecord, org.apache.avro.Schema.Field currValueRecordField, List<Object> toAddElements, List<Object> toRemoveElements) - Specified by:
handleModifyList
in classCollectionFieldOperationHandler
-
handleModifyMap
public 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) - Specified by:
handleModifyMap
in classCollectionFieldOperationHandler
-