mirror of https://github.com/apache/druid.git
fixup indentations.
This commit is contained in:
parent
e5e558c0d3
commit
a9d6b73e79
|
@ -86,8 +86,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2019-03-01/2019-04-01"),
|
Intervals.of("2019-03-01/2019-04-01"),
|
||||||
|
@ -197,8 +196,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2019-03-01/2019-04-01"),
|
Intervals.of("2019-03-01/2019-04-01"),
|
||||||
|
@ -234,8 +232,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testGetInputSourceResources()
|
public void testGetInputSourceResources()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2019-03-01/2019-04-01"),
|
Intervals.of("2019-03-01/2019-04-01"),
|
||||||
|
@ -270,8 +267,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -348,8 +344,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
||||||
|
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
umbrellaInterval,
|
umbrellaInterval,
|
||||||
|
@ -440,8 +435,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
|
|
||||||
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task1 =
|
final KillUnusedSegmentsTask task1 = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
umbrellaInterval,
|
umbrellaInterval,
|
||||||
|
@ -465,8 +459,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
Assert.assertEquals(ImmutableList.of(segment3), unusedSegments);
|
Assert.assertEquals(ImmutableList.of(segment3), unusedSegments);
|
||||||
Assert.assertEquals(new KillTaskReport.Stats(2, 3, 0), getReportedStats());
|
Assert.assertEquals(new KillTaskReport.Stats(2, 3, 0), getReportedStats());
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task2 =
|
final KillUnusedSegmentsTask task2 = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
umbrellaInterval,
|
umbrellaInterval,
|
||||||
|
@ -545,7 +538,6 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
|
|
||||||
final DateTime maxUsedStatusLastUpdatedTime2 = DateTimes.nowUtc();
|
final DateTime maxUsedStatusLastUpdatedTime2 = DateTimes.nowUtc();
|
||||||
|
|
||||||
|
|
||||||
final List<Interval> segmentIntervals = segments.stream()
|
final List<Interval> segmentIntervals = segments.stream()
|
||||||
.map(DataSegment::getInterval)
|
.map(DataSegment::getInterval)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
@ -553,8 +545,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
final Interval umbrellaInterval = JodaUtils.umbrellaInterval(segmentIntervals);
|
||||||
|
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task1 =
|
final KillUnusedSegmentsTask task1 = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
umbrellaInterval,
|
umbrellaInterval,
|
||||||
|
@ -578,8 +569,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
Assert.assertEquals(ImmutableList.of(segment2, segment3), unusedSegments);
|
Assert.assertEquals(ImmutableList.of(segment2, segment3), unusedSegments);
|
||||||
Assert.assertEquals(new KillTaskReport.Stats(2, 3, 0), getReportedStats());
|
Assert.assertEquals(new KillTaskReport.Stats(2, 3, 0), getReportedStats());
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task2 =
|
final KillUnusedSegmentsTask task2 = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
umbrellaInterval,
|
umbrellaInterval,
|
||||||
|
@ -617,8 +607,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
|
|
||||||
Assert.assertEquals(segments, announced);
|
Assert.assertEquals(segments, announced);
|
||||||
|
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -648,8 +637,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testComputeNextBatchSizeDefault()
|
public void testComputeNextBatchSizeDefault()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -665,8 +653,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testComputeNextBatchSizeWithBatchSizeLargerThanLimit()
|
public void testComputeNextBatchSizeWithBatchSizeLargerThanLimit()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -682,8 +669,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testComputeNextBatchSizeWithBatchSizeSmallerThanLimit()
|
public void testComputeNextBatchSizeWithBatchSizeSmallerThanLimit()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -699,8 +685,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testComputeNextBatchSizeWithRemainingLessThanLimit()
|
public void testComputeNextBatchSizeWithRemainingLessThanLimit()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -716,8 +701,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testGetNumTotalBatchesDefault()
|
public void testGetNumTotalBatchesDefault()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -733,8 +717,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testGetNumTotalBatchesWithBatchSizeLargerThanLimit()
|
public void testGetNumTotalBatchesWithBatchSizeLargerThanLimit()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
@ -819,8 +802,7 @@ public class KillUnusedSegmentsTaskTest extends IngestionTestBase
|
||||||
@Test
|
@Test
|
||||||
public void testGetNumTotalBatchesWithBatchSizeSmallerThanLimit()
|
public void testGetNumTotalBatchesWithBatchSizeSmallerThanLimit()
|
||||||
{
|
{
|
||||||
final KillUnusedSegmentsTask task =
|
final KillUnusedSegmentsTask task = new KillUnusedSegmentsTask(
|
||||||
new KillUnusedSegmentsTask(
|
|
||||||
null,
|
null,
|
||||||
DATA_SOURCE,
|
DATA_SOURCE,
|
||||||
Intervals.of("2018-01-01/2020-01-01"),
|
Intervals.of("2018-01-01/2020-01-01"),
|
||||||
|
|
Loading…
Reference in New Issue