test_class.file: src/server/src/test/java/io/cassandrareaper/service/SegmentGeneratorTest.java
test_class.identifier: SegmentGeneratorTest
test_case.body: @Test
    public void testMin() throws Exception {
      BigInteger one = BigInteger.ONE;
      BigInteger ten = BigInteger.TEN;
      assertEquals(one, SegmentGenerator.min(one, ten));
      assertEquals(one, SegmentGenerator.min(ten, one));
      assertEquals(one, SegmentGenerator.min(one, one));
      BigInteger minusTen = BigInteger.TEN.negate();
      assertEquals(minusTen, SegmentGenerator.min(one, minusTen));
    }
test_case.class_method_signature: SegmentGeneratorTest.testMin()
test_case.full_signature: @Test public void testMin()
test_case.identifier: testMin
test_case.invocations: assertEquals min assertEquals min assertEquals min negate assertEquals min
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMin()
focal_class.declarator: LOG = LoggerFactory.getLogger(SegmentGenerator.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(SegmentGenerator.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: COALESCING_DISABLED
        = Boolean.getBoolean(SegmentGenerator.class.getName() + ".disable.tokenrange.coalescing")
focal_class.modifier: private static final
focal_class.original_string: private static final boolean COALESCING_DISABLED
        = Boolean.getBoolean(SegmentGenerator.class.getName() + ".disable.tokenrange.coalescing");
focal_class.type: boolean
focal_class.var_name: COALESCING_DISABLED
focal_class.declarator: partitioner
focal_class.modifier: private final
focal_class.original_string: private final String partitioner;
focal_class.type: String
focal_class.var_name: partitioner
focal_class.declarator: rangeMin
focal_class.modifier: private final
focal_class.original_string: private final BigInteger rangeMin;
focal_class.type: BigInteger
focal_class.var_name: rangeMin
focal_class.declarator: rangeMax
focal_class.modifier: private final
focal_class.original_string: private final BigInteger rangeMax;
focal_class.type: BigInteger
focal_class.var_name: rangeMax
focal_class.declarator: rangeSize
focal_class.modifier: private final
focal_class.original_string: private final BigInteger rangeSize;
focal_class.type: BigInteger
focal_class.var_name: rangeSize
focal_class.file: src/server/src/main/java/io/cassandrareaper/service/SegmentGenerator.java
focal_class.identifier: SegmentGenerator
focal_class.class_method_signature: SegmentGenerator.SegmentGenerator(String partitioner)
focal_class.full_signature:   SegmentGenerator(String partitioner)
focal_class.identifier: SegmentGenerator
focal_class.parameters: (String partitioner)
focal_class.signature:  SegmentGenerator(String partitioner)
focal_class.class_method_signature: SegmentGenerator.SegmentGenerator(BigInteger rangeMin, BigInteger rangeMax)
focal_class.full_signature:   SegmentGenerator(BigInteger rangeMin, BigInteger rangeMax)
focal_class.identifier: SegmentGenerator
focal_class.parameters: (BigInteger rangeMin, BigInteger rangeMax)
focal_class.signature:  SegmentGenerator(BigInteger rangeMin, BigInteger rangeMax)
focal_class.class_method_signature: SegmentGenerator.max(BigInteger big0, BigInteger big1)
focal_class.full_signature: static BigInteger max(BigInteger big0, BigInteger big1)
focal_class.identifier: max
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: BigInteger
focal_class.signature: BigInteger max(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.min(BigInteger big0, BigInteger big1)
focal_class.full_signature: static BigInteger min(BigInteger big0, BigInteger big1)
focal_class.identifier: min
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: BigInteger
focal_class.signature: BigInteger min(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.lowerThan(BigInteger big0, BigInteger big1)
focal_class.full_signature: static boolean lowerThan(BigInteger big0, BigInteger big1)
focal_class.identifier: lowerThan
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: boolean
focal_class.signature: boolean lowerThan(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.lowerThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.full_signature: static boolean lowerThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.identifier: lowerThanOrEqual
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: boolean
focal_class.signature: boolean lowerThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.greaterThan(BigInteger big0, BigInteger big1)
focal_class.full_signature: static boolean greaterThan(BigInteger big0, BigInteger big1)
focal_class.identifier: greaterThan
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: boolean
focal_class.signature: boolean greaterThan(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.greaterThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.full_signature: static boolean greaterThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.identifier: greaterThanOrEqual
focal_class.modifiers: static
focal_class.parameters: (BigInteger big0, BigInteger big1)
focal_class.return: boolean
focal_class.signature: boolean greaterThanOrEqual(BigInteger big0, BigInteger big1)
focal_class.class_method_signature: SegmentGenerator.generateSegments(
        int totalSegmentCount,
        List<BigInteger> ringTokens,
        Boolean incrementalRepair,
        Map<List<String>, List<RingRange>> replicasToRange,
        String cassandraVersion)
focal_class.full_signature:  List<Segment> generateSegments(
        int totalSegmentCount,
        List<BigInteger> ringTokens,
        Boolean incrementalRepair,
        Map<List<String>, List<RingRange>> replicasToRange,
        String cassandraVersion)
focal_class.identifier: generateSegments
focal_class.parameters: (
        int totalSegmentCount,
        List<BigInteger> ringTokens,
        Boolean incrementalRepair,
        Map<List<String>, List<RingRange>> replicasToRange,
        String cassandraVersion)
focal_class.return: List<Segment>
focal_class.signature: List<Segment> generateSegments(
        int totalSegmentCount,
        List<BigInteger> ringTokens,
        Boolean incrementalRepair,
        Map<List<String>, List<RingRange>> replicasToRange,
        String cassandraVersion)
focal_class.class_method_signature: SegmentGenerator.coalesceTokenRanges(
        BigInteger targetSegmentSize, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.full_signature: @VisibleForTesting List<Segment> coalesceTokenRanges(
        BigInteger targetSegmentSize, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.identifier: coalesceTokenRanges
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: (
        BigInteger targetSegmentSize, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.return: List<Segment>
focal_class.signature: List<Segment> coalesceTokenRanges(
        BigInteger targetSegmentSize, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.class_method_signature: SegmentGenerator.allTokensHaveBeenCoalesced(
        List<Segment> coalescedRepairSegments, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.full_signature: private static boolean allTokensHaveBeenCoalesced(
        List<Segment> coalescedRepairSegments, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.identifier: allTokensHaveBeenCoalesced
focal_class.modifiers: private static
focal_class.parameters: (
        List<Segment> coalescedRepairSegments, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.return: boolean
focal_class.signature: boolean allTokensHaveBeenCoalesced(
        List<Segment> coalescedRepairSegments, Map<List<String>, List<RingRange>> replicasToRange)
focal_class.class_method_signature: SegmentGenerator.getTargetSegmentSize(int segmentCount)
focal_class.full_signature: private BigInteger getTargetSegmentSize(int segmentCount)
focal_class.identifier: getTargetSegmentSize
focal_class.modifiers: private
focal_class.parameters: (int segmentCount)
focal_class.return: BigInteger
focal_class.signature: BigInteger getTargetSegmentSize(int segmentCount)
focal_class.class_method_signature: SegmentGenerator.inRange(BigInteger token)
focal_class.full_signature: protected boolean inRange(BigInteger token)
focal_class.identifier: inRange
focal_class.modifiers: protected
focal_class.parameters: (BigInteger token)
focal_class.return: boolean
focal_class.signature: boolean inRange(BigInteger token)
focal_class.class_method_signature: SegmentGenerator.supportsSegmentCoalescing(String cassandraVersion)
focal_class.full_signature: private boolean supportsSegmentCoalescing(String cassandraVersion)
focal_class.identifier: supportsSegmentCoalescing
focal_class.modifiers: private
focal_class.parameters: (String cassandraVersion)
focal_class.return: boolean
focal_class.signature: boolean supportsSegmentCoalescing(String cassandraVersion)
focal_method.body: static BigInteger min(BigInteger big0, BigInteger big1) {
      return lowerThan(big0, big1) ? big0 : big1;
    }
focal_method.class_method_signature: SegmentGenerator.min(BigInteger big0, BigInteger big1)
focal_method.full_signature: static BigInteger min(BigInteger big0, BigInteger big1)
focal_method.identifier: min
focal_method.invocations: lowerThan
focal_method.modifiers: static
focal_method.parameters: (BigInteger big0, BigInteger big1)
focal_method.return: BigInteger
focal_method.signature: BigInteger min(BigInteger big0, BigInteger big1)