mirror of https://github.com/apache/druid.git
fix incorrect nullable annotations
This commit is contained in:
parent
32e256a842
commit
cfa92e8217
|
@ -75,7 +75,7 @@ public class OrderedMergeIterator<T> implements Iterator<T>
|
||||||
new Predicate<Iterator<T>>()
|
new Predicate<Iterator<T>>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(@Nullable Iterator<T> input)
|
public boolean apply(Iterator<T> input)
|
||||||
{
|
{
|
||||||
return input.hasNext();
|
return input.hasNext();
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ public class OrderedMergeIterator<T> implements Iterator<T>
|
||||||
new Function<Iterator<T>, PeekingIterator<T>>()
|
new Function<Iterator<T>, PeekingIterator<T>>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public PeekingIterator<T> apply(@Nullable Iterator<T> input)
|
public PeekingIterator<T> apply(Iterator<T> input)
|
||||||
{
|
{
|
||||||
return Iterators.peekingIterator(input);
|
return Iterators.peekingIterator(input);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class OrderedMergeSequence<T> implements Sequence<T>
|
||||||
new Function<Yielder<T>, T>()
|
new Function<Yielder<T>, T>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public T apply(@Nullable Yielder<T> input)
|
public T apply(Yielder<T> input)
|
||||||
{
|
{
|
||||||
return input.get();
|
return input.get();
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ public class JodaUtils
|
||||||
intervals, new Predicate<Interval>()
|
intervals, new Predicate<Interval>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(@Nullable Interval input)
|
public boolean apply(Interval input)
|
||||||
{
|
{
|
||||||
return input.overlaps(i);
|
return input.overlaps(i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class AppendTask extends MergeTaskBase
|
||||||
new Predicate<Rowboat>()
|
new Predicate<Rowboat>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(@Nullable Rowboat input)
|
public boolean apply(Rowboat input)
|
||||||
{
|
{
|
||||||
return holder.getInterval().contains(input.getTimestamp());
|
return holder.getInterval().contains(input.getTimestamp());
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ public abstract class MergeTaskBase extends AbstractFixedIntervalTask
|
||||||
new Function<DataSegment, String>()
|
new Function<DataSegment, String>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public String apply(@Nullable DataSegment input)
|
public String apply(DataSegment input)
|
||||||
{
|
{
|
||||||
return input.getIdentifier();
|
return input.getIdentifier();
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@ public class IngestSegmentFirehoseFactory implements FirehoseFactory<InputRowPar
|
||||||
{
|
{
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public Sequence<InputRow> apply(@Nullable StorageAdapter adapter)
|
public Sequence<InputRow> apply(StorageAdapter adapter)
|
||||||
{
|
{
|
||||||
return Sequences.concat(
|
return Sequences.concat(
|
||||||
Sequences.map(
|
Sequences.map(
|
||||||
|
@ -248,7 +248,7 @@ public class IngestSegmentFirehoseFactory implements FirehoseFactory<InputRowPar
|
||||||
{
|
{
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public Sequence<InputRow> apply(@Nullable final Cursor cursor)
|
public Sequence<InputRow> apply(final Cursor cursor)
|
||||||
{
|
{
|
||||||
final TimestampColumnSelector timestampColumnSelector = cursor.makeTimestampColumnSelector();
|
final TimestampColumnSelector timestampColumnSelector = cursor.makeTimestampColumnSelector();
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class IntervalChunkingQueryRunner<T> implements QueryRunner<T>
|
||||||
new Function<Interval, Iterable<Interval>>()
|
new Function<Interval, Iterable<Interval>>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Iterable<Interval> apply(@Nullable Interval input)
|
public Iterable<Interval> apply(Interval input)
|
||||||
{
|
{
|
||||||
return splitInterval(input);
|
return splitInterval(input);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class Queries
|
||||||
new Function<AggregatorFactory, String>()
|
new Function<AggregatorFactory, String>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public String apply(@Nullable AggregatorFactory input)
|
public String apply(AggregatorFactory input)
|
||||||
{
|
{
|
||||||
return input.getName();
|
return input.getName();
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class QueryRunnerHelper
|
||||||
new Function<Cursor, Result<T>>()
|
new Function<Cursor, Result<T>>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Result<T> apply(@Nullable Cursor input)
|
public Result<T> apply(Cursor input)
|
||||||
{
|
{
|
||||||
log.debug("Running over cursor[%s]", adapter.getInterval(), input.getTime());
|
log.debug("Running over cursor[%s]", adapter.getInterval(), input.getTime());
|
||||||
return mapFn.apply(input);
|
return mapFn.apply(input);
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class DBResource
|
||||||
new Function<DruidDataSource, String>()
|
new Function<DruidDataSource, String>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public String apply(@Nullable DruidDataSource dataSource)
|
public String apply(DruidDataSource dataSource)
|
||||||
{
|
{
|
||||||
return dataSource.getName();
|
return dataSource.getName();
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ public class DBResource
|
||||||
new Function<DataSegment, Object>()
|
new Function<DataSegment, Object>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Object apply(@Nullable DataSegment segment)
|
public Object apply(DataSegment segment)
|
||||||
{
|
{
|
||||||
return segment.getIdentifier();
|
return segment.getIdentifier();
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,7 @@ public class ServersResource
|
||||||
new Function<DataSegment, String>()
|
new Function<DataSegment, String>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public String apply(@Nullable DataSegment segment)
|
public String apply(DataSegment segment)
|
||||||
{
|
{
|
||||||
return segment.getIdentifier();
|
return segment.getIdentifier();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue