Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#187 Add bits #188

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
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
24 changes: 12 additions & 12 deletions senzing/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
SzEntityIncludeRecordMatchingInfo // 15 Include the record matching info for the entity
SzEntityIncludeRecordJSONData // 16 Include the record json data for the entity
Bit18 // 17
SzEntityIncludeRecordFeatureIDs // 18 Include the features identifiers for the records
SzEntityIncludeRecordFeatures // 18 Include the features identifiers for the records
SzEntityIncludeRelatedEntityName // 19 Include the name of the related entities
SzEntityIncludeRelatedMatchingInfo // 20 Include the record matching info of the related entities
SzEntityIncludeRelatedRecordSummary // 21 Include the record summary of the related entities
Expand All @@ -62,20 +62,20 @@ const (

/* flags for including search result feature scores */

SzIncludeFeatureScores // 26 Include feature scores
SzSearchIncludeStats // 27 Include statistics from search results
SzEntityIncludeRecordTypes // 28 Include the record types of the entity
SzEntityIncludeRelatedRecordTypes // 29 Include the record types of the related entities
SzFindPathIncludeMatchingInfo // 30 Include matching info on entity paths
SzEntityIncludeRecordUnmappedData // 31 Include the record unmapped data for the entity
Bit33 // 32
SzFindNetworkIncludeMatchingInfo // 33 Include matching info on entity networks
SzIncludeMatchKeyDetails // 34 Include internal features
SzIncludeFeatureScores // 26 Include feature scores
SzSearchIncludeStats // 27 Include statistics from search results
SzEntityIncludeRecordTypes // 28 Include the record types of the entity
SzEntityIncludeRelatedRecordTypes // 29 Include the record types of the related entities
SzFindPathIncludeMatchingInfo // 30 Include matching info on entity paths
SzEntityIncludeRecordUnmappedData // 31 Include the record unmapped data for the entity
Bit33 // 32
SzFindNetworkIncludeMatchingInfo // 33 Include matching info on entity networks
SzIncludeMatchKeyDetails // 34 Include internal features
SzIncludeRecordFeatureDetails // 35 Include attributes section
SzIncludeRecordFeatureFeatureStats // 36

/* Reserved */

Bit36 // 35
Bit37 // 36
Bit38 // 37
Bit39 // 38
Bit40 // 39
Expand Down
12 changes: 6 additions & 6 deletions senzing/senzing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ var testCases = []struct {
expected: 0x0000000000020000,
},
{ // 19
name: "SZ_ENTITY_INCLUDE_RECORD_FEATURE_IDS",
actual: SzEntityIncludeRecordFeatureIDs,
name: "SZ_ENTITY_INCLUDE_RECORD_FEATURES",
actual: SzEntityIncludeRecordFeatures,
expected: 0x0000000000040000,
},
{ // 20
Expand Down Expand Up @@ -207,13 +207,13 @@ var testCases = []struct {
expected: 0x0000000400000000,
},
{ // 36
name: "Bit36",
actual: Bit36,
name: "SZ_ENTITY_INCLUDE_RECORD_FEATURE_DETAILS",
actual: SzIncludeRecordFeatureDetails,
expected: 0x0000000800000000,
},
{ // 37
name: "Bit37",
actual: Bit37,
name: "SZ_ENTITY_INCLUDE_RECORD_FEATURE_STATS",
actual: SzIncludeRecordFeatureFeatureStats,
expected: 0x0000001000000000,
},
{ // 38
Expand Down
Loading