Skip to content

feat: BOLT protocol first version#3250

Merged
lvca merged 11 commits into
mainfrom
bolt-driver
Jan 27, 2026
Merged

feat: BOLT protocol first version#3250
lvca merged 11 commits into
mainfrom
bolt-driver

fix: address all code review issues in BOLT protocol

8279746
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jan 27, 2026 in 0s

19 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 19
           

Complexity increasing per file
==============================
- engine/src/main/java/com/arcadedb/query/opencypher/executor/operators/NodeByLabelScan.java  1
- engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/MatchNodeStep.java  3
- bolt/src/main/java/com/arcadedb/bolt/message/GoodbyeMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/message/RollbackMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/structure/BoltPath.java  13
- bolt/src/main/java/com/arcadedb/bolt/BoltException.java  5
- bolt/src/main/java/com/arcadedb/bolt/message/IgnoredMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/message/LogonMessage.java  8
- bolt/src/main/java/com/arcadedb/bolt/message/FailureMessage.java  8
- bolt/src/main/java/com/arcadedb/bolt/message/SuccessMessage.java  5
- bolt/src/main/java/com/arcadedb/bolt/message/BoltMessage.java  57
- bolt/src/main/java/com/arcadedb/bolt/BoltChunkedOutput.java  6
- bolt/src/main/java/com/arcadedb/bolt/message/RouteMessage.java  9
- bolt/src/main/java/com/arcadedb/bolt/message/HelloMessage.java  14
- bolt/src/main/java/com/arcadedb/bolt/structure/BoltUnboundRelationship.java  11
- bolt/src/main/java/com/arcadedb/bolt/structure/BoltRelationship.java  17
- bolt/src/main/java/com/arcadedb/bolt/message/RecordMessage.java  5
- bolt/src/main/java/com/arcadedb/bolt/BoltNetworkListener.java  28
- bolt/src/main/java/com/arcadedb/bolt/structure/BoltNode.java  12
- bolt/src/main/java/com/arcadedb/bolt/message/CommitMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/packstream/PackStreamWriter.java  61
- bolt/src/main/java/com/arcadedb/bolt/message/ResetMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/BoltProtocolPlugin.java  4
- bolt/src/main/java/com/arcadedb/bolt/packstream/PackStreamReader.java  57
- bolt/src/main/java/com/arcadedb/bolt/message/LogoffMessage.java  3
- bolt/src/main/java/com/arcadedb/bolt/BoltChunkedInput.java  8
- bolt/src/main/java/com/arcadedb/bolt/structure/BoltStructureMapper.java  64
- bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java  86
- bolt/src/main/java/com/arcadedb/bolt/message/BeginMessage.java  7
- bolt/src/main/java/com/arcadedb/bolt/message/DiscardMessage.java  9
- bolt/src/main/java/com/arcadedb/bolt/message/PullMessage.java  9
- bolt/src/main/java/com/arcadedb/bolt/message/RunMessage.java  9
- bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java  1
- engine/src/main/java/com/arcadedb/query/opencypher/Labels.java  18
         

See the complete overview on Codacy

Annotations

Check notice on line 31 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L31

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 32 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L32

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 35 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L35

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 36 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L36

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 39 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L39

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 42 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L42

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 45 in bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltErrorCodes.java#L45

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 57 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L57

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 60 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L60

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 63 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L63

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 66 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L66

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 69 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L69

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 72 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L72

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check notice on line 75 in bolt/src/main/java/com/arcadedb/bolt/BoltException.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltException.java#L75

Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.

Check warning on line 76 in bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java#L76

Perhaps 'protocolVersion' could be replaced by a local variable.

Check warning on line 92 in bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java#L92

Avoid unused private fields such as 'recordsStreamed'.

Check warning on line 321 in bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java#L321

Avoid unused local variables such as 'scheme'.

Check warning on line 554 in bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java#L554

Avoid unused method parameters such as 'discardMessage'.

Check warning on line 68 in bolt/src/main/java/com/arcadedb/bolt/packstream/PackStreamReader.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

bolt/src/main/java/com/arcadedb/bolt/packstream/PackStreamReader.java#L68

Avoid unused private fields such as 'bytesRead'.