Tabnine Logo
TupleDomainOrcPredicate$ColumnReference
Code IndexAdd Tabnine to your IDE (free)

How to use
TupleDomainOrcPredicate$ColumnReference
in
io.prestosql.orc

Best Java code snippets using io.prestosql.orc.TupleDomainOrcPredicate$ColumnReference (Showing top 8 results out of 315)

origin: prestosql/presto

private static OrcPredicate getPredicate(TupleDomain<RaptorColumnHandle> effectivePredicate, Map<Long, Integer> indexMap)
{
  ImmutableList.Builder<ColumnReference<RaptorColumnHandle>> columns = ImmutableList.builder();
  for (RaptorColumnHandle column : effectivePredicate.getDomains().get().keySet()) {
    Integer index = indexMap.get(column.getColumnId());
    if (index != null) {
      columns.add(new ColumnReference<>(column, index, column.getColumnType()));
    }
  }
  return new TupleDomainOrcPredicate<>(effectivePredicate, columns.build(), false);
}
origin: prestosql/presto

@Override
public boolean matches(long numberOfRows, Map<Integer, ColumnStatistics> statisticsByColumnIndex)
{
  Optional<Map<C, Domain>> optionalEffectivePredicateDomains = effectivePredicate.getDomains();
  if (!optionalEffectivePredicateDomains.isPresent()) {
    // effective predicate is none, so skip this section
    return false;
  }
  Map<C, Domain> effectivePredicateDomains = optionalEffectivePredicateDomains.get();
  for (ColumnReference<C> columnReference : columnReferences) {
    Domain predicateDomain = effectivePredicateDomains.get(columnReference.getColumn());
    if (predicateDomain == null) {
      // no predicate on this column, so we can't exclude this section
      continue;
    }
    ColumnStatistics columnStatistics = statisticsByColumnIndex.get(columnReference.getOrdinal());
    if (columnStatistics == null) {
      // no statistics for this column, so we can't exclude this section
      continue;
    }
    if (!columnOverlaps(columnReference, predicateDomain, numberOfRows, columnStatistics)) {
      return false;
    }
  }
  // this section was not excluded
  return true;
}
origin: prestosql/presto

Type type = typeManager.getType(column.getTypeSignature());
includedColumns.put(column.getHiveColumnIndex(), type);
columnReferences.add(new ColumnReference<>(column, column.getHiveColumnIndex(), type));
origin: prestosql/presto

.add(new ColumnReference<>(COLUMN_0, 0, BIGINT))
.add(new ColumnReference<>(COLUMN_1, 1, BIGINT))
.build();
origin: io.prestosql/presto-orc

.add(new ColumnReference<>(COLUMN_0, 0, BIGINT))
.add(new ColumnReference<>(COLUMN_1, 1, BIGINT))
.build();
origin: prestosql/presto

private boolean columnOverlaps(ColumnReference<C> columnReference, Domain predicateDomain, long numberOfRows, ColumnStatistics columnStatistics)
  Domain stripeDomain = getDomain(columnReference.getType(), numberOfRows, columnStatistics);
  if (!stripeDomain.overlaps(predicateDomain)) {
origin: io.prestosql/presto-orc

private boolean columnOverlaps(ColumnReference<C> columnReference, Domain predicateDomain, long numberOfRows, ColumnStatistics columnStatistics)
  Domain stripeDomain = getDomain(columnReference.getType(), numberOfRows, columnStatistics);
  if (!stripeDomain.overlaps(predicateDomain)) {
origin: io.prestosql/presto-orc

@Override
public boolean matches(long numberOfRows, Map<Integer, ColumnStatistics> statisticsByColumnIndex)
{
  Optional<Map<C, Domain>> optionalEffectivePredicateDomains = effectivePredicate.getDomains();
  if (!optionalEffectivePredicateDomains.isPresent()) {
    // effective predicate is none, so skip this section
    return false;
  }
  Map<C, Domain> effectivePredicateDomains = optionalEffectivePredicateDomains.get();
  for (ColumnReference<C> columnReference : columnReferences) {
    Domain predicateDomain = effectivePredicateDomains.get(columnReference.getColumn());
    if (predicateDomain == null) {
      // no predicate on this column, so we can't exclude this section
      continue;
    }
    ColumnStatistics columnStatistics = statisticsByColumnIndex.get(columnReference.getOrdinal());
    if (columnStatistics == null) {
      // no statistics for this column, so we can't exclude this section
      continue;
    }
    if (!columnOverlaps(columnReference, predicateDomain, numberOfRows, columnStatistics)) {
      return false;
    }
  }
  // this section was not excluded
  return true;
}
io.prestosql.orcTupleDomainOrcPredicate$ColumnReference

Most used methods

  • <init>
  • getColumn
  • getOrdinal
  • getType

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • BoxLayout (javax.swing)
  • JList (javax.swing)
  • Best IntelliJ 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