Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ private BitSet markTypeRecordsToRemove(HollowReadStateEngine priorStateEngine, f
HollowSchema schema = priorReadState.getSchema();
int populatedOrdinals = priorReadState.getPopulatedOrdinals().length();
if(schema.getSchemaType() == HollowSchema.SchemaType.OBJECT) {
HollowObjectSchema objectSchema = (HollowObjectSchema) schema;
if (objectSchema.getPrimaryKey() == null) {
throw new IllegalArgumentException("Type " + type + " does not have a primary key defined");
}

final HollowPrimaryKeyIndex idx = new HollowPrimaryKeyIndex(priorStateEngine, ((HollowObjectSchema) schema).getPrimaryKey()); ///TODO: Should we scan instead? Can we create this once and do delta updates?

ThreadSafeBitSet typeRecordsToRemove = new ThreadSafeBitSet(ThreadSafeBitSet.DEFAULT_LOG2_SEGMENT_SIZE_IN_BITS, populatedOrdinals);
Expand Down