congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IncrementalIndexStorageAdapter.getMinTime
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinTime
method
in
org.apache.druid.segment.incremental.IncrementalIndexStorageAdapter

Best Java code snippets using org.apache.druid.segment.incremental.IncrementalIndexStorageAdapter.getMinTime (Showing top 2 results out of 315)

origin: apache/incubator-druid

@Override
public Sequence<Cursor> makeCursors(
  @Nullable final Filter filter,
  final Interval interval,
  final VirtualColumns virtualColumns,
  final Granularity gran,
  final boolean descending,
  @Nullable QueryMetrics<?> queryMetrics
)
{
 if (index.isEmpty()) {
  return Sequences.empty();
 }
 final Interval dataInterval = new Interval(getMinTime(), gran.bucketEnd(getMaxTime()));
 if (!interval.overlaps(dataInterval)) {
  return Sequences.empty();
 }
 final Interval actualInterval = interval.overlap(dataInterval);
 Iterable<Interval> intervals = gran.getIterable(actualInterval);
 if (descending) {
  intervals = Lists.reverse(ImmutableList.copyOf(intervals));
 }
 return Sequences
   .simple(intervals)
   .map(i -> new IncrementalIndexCursor(virtualColumns, descending, filter, i, actualInterval, gran));
}
origin: org.apache.druid/druid-processing

@Override
public Sequence<Cursor> makeCursors(
  @Nullable final Filter filter,
  final Interval interval,
  final VirtualColumns virtualColumns,
  final Granularity gran,
  final boolean descending,
  @Nullable QueryMetrics<?> queryMetrics
)
{
 if (index.isEmpty()) {
  return Sequences.empty();
 }
 final Interval dataInterval = new Interval(getMinTime(), gran.bucketEnd(getMaxTime()));
 if (!interval.overlaps(dataInterval)) {
  return Sequences.empty();
 }
 final Interval actualInterval = interval.overlap(dataInterval);
 Iterable<Interval> intervals = gran.getIterable(actualInterval);
 if (descending) {
  intervals = Lists.reverse(ImmutableList.copyOf(intervals));
 }
 return Sequences
   .simple(intervals)
   .map(i -> new IncrementalIndexCursor(virtualColumns, descending, filter, i, actualInterval, gran));
}
org.apache.druid.segment.incrementalIncrementalIndexStorageAdaptergetMinTime

Popular methods of IncrementalIndexStorageAdapter

  • <init>
  • makeCursors
  • getAvailableDimensions
  • getAvailableMetrics
  • getColumnCapabilities
  • getMaxTime

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFrame (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now