code: @Override
  	public <T> EntitySequence getSequence(TableDefinition tableDef, Iterable<T> collection, List<String> fields,
  			EntitySequenceOptions options) {
  	    if (fields == null || fields.contains(ALLSCALARMARK))
  	        fields = ALLSCALARFIELDS;
  		return new DBEntityRootCollection<T>(tableDef, fields, collection, this, tableDef.getTableName(), EntitySequenceOptions.getOptions(options, DBEntitySequenceOptions.defaultOptions));
  	}
docs: /* (non-Javadoc)
  @see com.dell.doradus.search.aggregate.EntitySequenceFactory#getSequence(com.dell.doradus.common.TableDefinition, java.lang.Iterable, java.util.List, com.dell.doradus.search.aggregate.EntitySequenceOptions[])