@Override public int compare(String o1, String o2) { return originlSchema.getColumnId(o1) - originlSchema.getColumnId(o2); } }
@Override public EvalNode bind(EvalContext evalContext, Schema schema) { super.bind(evalContext, schema); // TODO - column namespace should be improved to simplify name handling and resolving. fieldId = schema.getColumnId(field.name().interned()); if (fieldId == -1) { // fallback fieldId = schema.getColumnIdByName(field.name().interned()); } if (fieldId == -1) { throw new IllegalStateException("No Such Column Reference: " + field + ", schema: " + schema); } return this; }
@Override public int compare(String o1, String o2) { return originlSchema.getColumnId(o1) - originlSchema.getColumnId(o2); } }
private void prepareProjection(Column [] targets) { projectionMap = new int[targets.length]; int tid; for (int i = 0; i < targets.length; i++) { tid = schema.getColumnId(targets[i].getQualifiedName()); projectionMap[i] = tid; } }
private void prepareProjection(Column[] targets) { projectionMap = new int[targets.length]; for (int i = 0; i < targets.length; ++i) { projectionMap[i] = schema.getColumnId(targets[i].getQualifiedName()); } }
private void prepareProjection(Column [] targets) { projectionMap = new int[targets.length]; int tid; for (int i = 0; i < targets.length; i++) { tid = schema.getColumnId(targets[i].getQualifiedName()); projectionMap[i] = tid; } }
private void prepareProjection(Column[] targets) { projectionMap = new int[targets.length]; for (int i = 0; i < targets.length; ++i) { projectionMap[i] = schema.getColumnId(targets[i].getQualifiedName()); } }
private void prepareProjection(Column [] targets) { projectionMap = new int[targets.length]; int tid; for (int i = 0; i < targets.length; i++) { tid = schema.getColumnId(targets[i].getQualifiedName()); projectionMap[i] = tid; } }
private void prepareProjection(Column [] targets) { projectionMap = new int[targets.length]; int tid; for (int i = 0; i < targets.length; i++) { tid = schema.getColumnId(targets[i].getQualifiedName()); projectionMap[i] = tid; } }
private void prepareProjection(Column[] targets) { projectionMap = new int[targets.length]; for (int i = 0; i < targets.length; ++i) { projectionMap[i] = schema.getColumnId(targets[i].getQualifiedName()); } }
@Override public int compare(SortSpec o1, SortSpec o2) { return targetRelationSchema.getColumnId(o1.getSortKey().getSimpleName()) - targetRelationSchema.getColumnId(o2.getSortKey().getSimpleName()); } });
private int[] getProjectionMap(Schema schema, Schema projection) { Column[] targets = projection.toArray(); int[] projectionMap = new int[targets.length]; for (int i = 0; i < targets.length; ++i) { int tid = schema.getColumnId(targets[i].getQualifiedName()); projectionMap[i] = tid; } return projectionMap; }
public KeyProjector(Schema inSchema, Column[] keyColumns) { keyTuple = new KeyTuple(keyColumns.length); projectIds = new int[keyColumns.length]; for (int i = 0; i < keyColumns.length; i++) { projectIds[i] = inSchema.getColumnId(keyColumns[i].getQualifiedName()); } }
@Override public int compare(SortSpec o1, SortSpec o2) { return targetRelationSchema.getColumnId(o1.getSortKey().getSimpleName()) - targetRelationSchema.getColumnId(o2.getSortKey().getSimpleName()); } });
public KeyProjector(Schema inSchema, Column[] keyColumns) { keyTuple = new KeyTuple(keyColumns.length); projectIds = new int[keyColumns.length]; for (int i = 0; i < keyColumns.length; i++) { projectIds[i] = inSchema.getColumnId(keyColumns[i].getQualifiedName()); } }
public static int[] getTargetIds(Schema inSchema, Schema outSchema) { int[] targetIds = new int[outSchema.size()]; int i = 0; for (Column target : outSchema.getRootColumns()) { targetIds[i] = inSchema.getColumnId(target.getQualifiedName()); i++; } return targetIds; }
public static int[] getTargetIds(Schema inSchema, Schema outSchema) { int[] targetIds = new int[outSchema.size()]; int i = 0; for (Column target : outSchema.getRootColumns()) { targetIds[i] = inSchema.getColumnId(target.getQualifiedName()); i++; } return targetIds; }
public static int[] getTargetIds(Schema inSchema, Schema outSchema) { int[] targetIds = new int[outSchema.size()]; int i = 0; for (Column target : outSchema.getRootColumns()) { targetIds[i] = inSchema.getColumnId(target.getQualifiedName()); i++; } return targetIds; }
public static int[] getTargetIds(Schema inSchema, Schema outSchema) { int[] targetIds = new int[outSchema.size()]; int i = 0; for (Column target : outSchema.getRootColumns()) { targetIds[i] = inSchema.getColumnId(target.getQualifiedName()); i++; } return targetIds; }
public static int[] getTargetIds(Schema inSchema, Schema outSchema) { int[] targetIds = new int[outSchema.size()]; int i = 0; for (Column target : outSchema.getColumns()) { targetIds[i] = inSchema.getColumnId(target.getQualifiedName()); i++; } return targetIds; }