test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/dml/InsertStatementHandlerTest.java
test_class.identifier: InsertStatementHandlerTest
test_case.body: @Test
      public void assertGetWithSegmentWithWithSegmentForSQLServer() {
          SQLServerInsertStatement insertStatement = new SQLServerInsertStatement();
          insertStatement.setWithSegment(new WithSegment(0, 0, Collections.emptyList()));
          Optional<WithSegment> withSegment = InsertStatementHandler.getWithSegment(insertStatement);
          assertTrue(withSegment.isPresent());
      }
test_case.class_method_signature: InsertStatementHandlerTest.assertGetWithSegmentWithWithSegmentForSQLServer()
test_case.full_signature: @Test public void assertGetWithSegmentWithWithSegmentForSQLServer()
test_case.identifier: assertGetWithSegmentWithWithSegmentForSQLServer
test_case.invocations: setWithSegment emptyList getWithSegment assertTrue isPresent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetWithSegmentWithWithSegmentForSQLServer()
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/dml/InsertStatementHandler.java
focal_class.identifier: InsertStatementHandler
focal_class.interfaces: implements SQLStatementHandler
focal_class.class_method_signature: InsertStatementHandler.getOnDuplicateKeyColumnsSegment(final InsertStatement insertStatement)
focal_class.full_signature: public static Optional<OnDuplicateKeyColumnsSegment> getOnDuplicateKeyColumnsSegment(final InsertStatement insertStatement)
focal_class.identifier: getOnDuplicateKeyColumnsSegment
focal_class.modifiers: public static
focal_class.parameters: (final InsertStatement insertStatement)
focal_class.return: Optional<OnDuplicateKeyColumnsSegment>
focal_class.signature: Optional<OnDuplicateKeyColumnsSegment> getOnDuplicateKeyColumnsSegment(final InsertStatement insertStatement)
focal_class.class_method_signature: InsertStatementHandler.getSetAssignmentSegment(final InsertStatement insertStatement)
focal_class.full_signature: public static Optional<SetAssignmentSegment> getSetAssignmentSegment(final InsertStatement insertStatement)
focal_class.identifier: getSetAssignmentSegment
focal_class.modifiers: public static
focal_class.parameters: (final InsertStatement insertStatement)
focal_class.return: Optional<SetAssignmentSegment>
focal_class.signature: Optional<SetAssignmentSegment> getSetAssignmentSegment(final InsertStatement insertStatement)
focal_class.class_method_signature: InsertStatementHandler.getWithSegment(final InsertStatement insertStatement)
focal_class.full_signature: public static Optional<WithSegment> getWithSegment(final InsertStatement insertStatement)
focal_class.identifier: getWithSegment
focal_class.modifiers: public static
focal_class.parameters: (final InsertStatement insertStatement)
focal_class.return: Optional<WithSegment>
focal_class.signature: Optional<WithSegment> getWithSegment(final InsertStatement insertStatement)
focal_class.class_method_signature: InsertStatementHandler.getOutputSegment(final InsertStatement insertStatement)
focal_class.full_signature: public static Optional<OutputSegment> getOutputSegment(final InsertStatement insertStatement)
focal_class.identifier: getOutputSegment
focal_class.modifiers: public static
focal_class.parameters: (final InsertStatement insertStatement)
focal_class.return: Optional<OutputSegment>
focal_class.signature: Optional<OutputSegment> getOutputSegment(final InsertStatement insertStatement)
focal_method.body: public static Optional<WithSegment> getWithSegment(final InsertStatement insertStatement) {
          if (insertStatement instanceof PostgreSQLStatement) {
              return ((PostgreSQLInsertStatement) insertStatement).getWithSegment();
          }
          if (insertStatement instanceof SQLServerStatement) {
              return ((SQLServerInsertStatement) insertStatement).getWithSegment();
          }
          return Optional.empty();
      }
focal_method.class_method_signature: InsertStatementHandler.getWithSegment(final InsertStatement insertStatement)
focal_method.full_signature: public static Optional<WithSegment> getWithSegment(final InsertStatement insertStatement)
focal_method.identifier: getWithSegment
focal_method.invocations: getWithSegment getWithSegment empty
focal_method.modifiers: public static
focal_method.parameters: (final InsertStatement insertStatement)
focal_method.return: Optional<WithSegment>
focal_method.signature: Optional<WithSegment> getWithSegment(final InsertStatement insertStatement)