test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/dml/SelectStatementHandlerTest.java
test_class.identifier: SelectStatementHandlerTest
test_case.body: @Test
      public void assertGetLimitSegmentWithLimitSegmentForSQLServer() {
          SQLServerSelectStatement selectStatement = new SQLServerSelectStatement();
          selectStatement.setLimit(new LimitSegment(0, 0, null, null));
          Optional<LimitSegment> limitSegment = SelectStatementHandler.getLimitSegment(selectStatement);
          assertTrue(limitSegment.isPresent());
      }
test_case.class_method_signature: SelectStatementHandlerTest.assertGetLimitSegmentWithLimitSegmentForSQLServer()
test_case.full_signature: @Test public void assertGetLimitSegmentWithLimitSegmentForSQLServer()
test_case.identifier: assertGetLimitSegmentWithLimitSegmentForSQLServer
test_case.invocations: setLimit getLimitSegment assertTrue isPresent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetLimitSegmentWithLimitSegmentForSQLServer()
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/dml/SelectStatementHandler.java
focal_class.identifier: SelectStatementHandler
focal_class.interfaces: implements SQLStatementHandler
focal_class.class_method_signature: SelectStatementHandler.getLimitSegment(final SelectStatement selectStatement)
focal_class.full_signature: public static Optional<LimitSegment> getLimitSegment(final SelectStatement selectStatement)
focal_class.identifier: getLimitSegment
focal_class.modifiers: public static
focal_class.parameters: (final SelectStatement selectStatement)
focal_class.return: Optional<LimitSegment>
focal_class.signature: Optional<LimitSegment> getLimitSegment(final SelectStatement selectStatement)
focal_class.class_method_signature: SelectStatementHandler.getLockSegment(final SelectStatement selectStatement)
focal_class.full_signature: public static Optional<LockSegment> getLockSegment(final SelectStatement selectStatement)
focal_class.identifier: getLockSegment
focal_class.modifiers: public static
focal_class.parameters: (final SelectStatement selectStatement)
focal_class.return: Optional<LockSegment>
focal_class.signature: Optional<LockSegment> getLockSegment(final SelectStatement selectStatement)
focal_method.body: public static Optional<LimitSegment> getLimitSegment(final SelectStatement selectStatement) {
          if (selectStatement instanceof MySQLStatement) {
              return ((MySQLSelectStatement) selectStatement).getLimit();
          }
          if (selectStatement instanceof PostgreSQLStatement) {
              return ((PostgreSQLSelectStatement) selectStatement).getLimit();
          }
          if (selectStatement instanceof SQL92Statement) {
              return ((SQL92SelectStatement) selectStatement).getLimit();
          }
          if (selectStatement instanceof SQLServerStatement) {
              return ((SQLServerSelectStatement) selectStatement).getLimit();
          }
          return Optional.empty();
      }
focal_method.class_method_signature: SelectStatementHandler.getLimitSegment(final SelectStatement selectStatement)
focal_method.full_signature: public static Optional<LimitSegment> getLimitSegment(final SelectStatement selectStatement)
focal_method.identifier: getLimitSegment
focal_method.invocations: getLimit getLimit getLimit getLimit empty
focal_method.modifiers: public static
focal_method.parameters: (final SelectStatement selectStatement)
focal_method.return: Optional<LimitSegment>
focal_method.signature: Optional<LimitSegment> getLimitSegment(final SelectStatement selectStatement)