Dataset API change: dataset will support ensuring capacity
fixed pom
implemented Dataset API change