private StructTypeImpl createStructTypeForNullProjection(List currentIterators,ExecutionContext context){
  int len=currentIterators.size();
  String fieldNames[]=new String[len];
  ObjectType fieldTypes[]=new ObjectType[len];
  String fldName=null;
  for (int i=0; i < len; i++) {
    RuntimeIterator iter=(RuntimeIterator)currentIterators.get(i);
    if ((fldName=iter.getName()) == null) {
      fldName=generateProjectionName(iter,context);
    }
    fieldNames[i]=fldName;
    fieldTypes[i]=iter.getElementType();
  }
  return new StructTypeImpl(fieldNames,fieldTypes);
}

private StructTypeImpl createStructTypeForNullProjection ( List currentIterators , ExecutionContext context ) { int len = currentIterators . size ( ) ; String fieldNames [ ] = new String [ len ] ; ObjectType fieldTypes [ ] = new ObjectType [ len ] ; String fldName = null ; for ( int i = 0 ; i < len ; i ++ ) { RuntimeIterator iter = ( RuntimeIterator ) currentIterators . get ( i ) ; if ( ( fldName = iter . getName ( ) ) == null ) { fldName = generateProjectionName ( iter , context ) ; } fieldNames [ i ] = fldName ; fieldTypes [ i ] = iter . getElementType ( ) ; } return new StructTypeImpl ( fieldNames , fieldTypes ) ; }
asif : this function should be used to create a structtype for those queries which have * as projection attribute ( implying null projection attribute ) & multiple from clauses
