Examples of reverseLookup()


Examples of org.apache.hadoop.hive.ql.parse.RowResolver.reverseLookup()

        ReduceSinkDesc desc = rop.getConf();
        List<ExprNodeDesc> keyCols = desc.getKeyCols();
        ArrayList<String> keyColNames = desc.getOutputKeyColumnNames();
        for (int i = 0; i < keyCols.size(); i++) {
          // order-bys, joins
          String[] nm = resolver.reverseLookup(Utilities.ReduceField.KEY + "." + keyColNames.get(i));
          if (nm == null) {
            continue;   // key in values
          }
          ColumnInfo column = resolver.get(nm[0], nm[1]);
          lCtx.getIndex().putDependency(rop, column,
View Full Code Here

Examples of org.apache.hadoop.hive.ql.parse.RowResolver.reverseLookup()

        }
        List<ExprNodeDesc> valCols = desc.getValueCols();
        ArrayList<String> valColNames = desc.getOutputValueColumnNames();
        for (int i = 0; i < valCols.size(); i++) {
          // todo: currently, bucketing,etc. makes RS differently with those for order-bys or joins
          String[] nm = resolver.reverseLookup(valColNames.get(i));
          if (nm == null) {
            // order-bys, joins
            nm = resolver.reverseLookup(Utilities.ReduceField.VALUE + "." + valColNames.get(i));
          }
          ColumnInfo column = resolver.get(nm[0], nm[1]);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.parse.RowResolver.reverseLookup()

        for (int i = 0; i < valCols.size(); i++) {
          // todo: currently, bucketing,etc. makes RS differently with those for order-bys or joins
          String[] nm = resolver.reverseLookup(valColNames.get(i));
          if (nm == null) {
            // order-bys, joins
            nm = resolver.reverseLookup(Utilities.ReduceField.VALUE + "." + valColNames.get(i));
          }
          ColumnInfo column = resolver.get(nm[0], nm[1]);
          lCtx.getIndex().putDependency(rop, column,
              ExprProcFactory.getExprDependency(lCtx, inpOp, valCols.get(i)));
        }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.parse.RowResolver.reverseLookup()

      // exprs associated with table scans.
      Operator<? extends OperatorDesc> operator = epc.getInputOperator();
      assert (operator != null);

      RowResolver resolver = epc.getResolver();
      String[] nm = resolver.reverseLookup(cd.getColumn());
      if (nm == null && operator instanceof ReduceSinkOperator) {
        nm = resolver.reverseLookup(Utilities.removeValueTag(cd.getColumn()));
      }
      ColumnInfo ci = nm != null ? resolver.get(nm[0], nm[1]): null;
View Full Code Here

Examples of org.apache.hadoop.hive.ql.parse.RowResolver.reverseLookup()

      assert (operator != null);

      RowResolver resolver = epc.getResolver();
      String[] nm = resolver.reverseLookup(cd.getColumn());
      if (nm == null && operator instanceof ReduceSinkOperator) {
        nm = resolver.reverseLookup(Utilities.removeValueTag(cd.getColumn()));
      }
      ColumnInfo ci = nm != null ? resolver.get(nm[0], nm[1]): null;

      // Insert the dependencies of inp_ci to that of the current operator, ci
      LineageCtx lc = epc.getLineageCtx();
View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.Index.reverseLookup()

   
            /*
             * If no attribute values exist for this entryId in the index then
             * we remove the existance index entry for the removed attribute.
             */
            if ( null == idx.reverseLookup( id ) )
            {
                existanceIdx.drop( mods.getID(), id );
            }
        }

View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.Index.reverseLookup()

   
            /*
             * If no attribute values exist for this entryId in the index then
             * we remove the existance index entry for the removed attribute.
             */
            if ( null == idx.reverseLookup( id ) )
            {
                existanceIdx.drop( mods.getID(), id );
            }
        }

View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.Index.reverseLookup()

               
                /*
                 * If there is no value for id in this index due to our
                 * drop above we remove the oldRdnAttr from the existance idx
                 */
                if ( null == idx.reverseLookup( id ) )
                {
                    existanceIdx.drop( oldRdnAttr, id );
                }
            }
        }
View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.Index.reverseLookup()

   
            /*
             * If no attribute values exist for this entryId in the index then
             * we remove the existance index entry for the removed attribute.
             */
            if ( null == idx.reverseLookup( id ) )
            {
                existanceIdx.drop( mods.getID(), id );
            }
        }

View Full Code Here

Examples of org.apache.ldap.server.partition.impl.btree.Index.reverseLookup()

   
            /*
             * If no attribute values exist for this entryId in the index then
             * we remove the existance index entry for the removed attribute.
             */
            if ( null == idx.reverseLookup( id ) )
            {
                existanceIdx.drop( mods.getID(), id );
            }
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.