com.emc.mongoose.api.model.data.SeedDataInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-api-model Show documentation
Show all versions of mongoose-api-model Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.api.model.data;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import static com.emc.mongoose.api.model.data.DataInput.generateData;
/**
Created by kurila on 23.07.14.
A uniform data input for producing uniform data items.
Implemented as finite buffer of pseudo random bytes.
*/
public final class SeedDataInput
extends CachedDataInput {
public SeedDataInput() {
super();
}
public SeedDataInput(final long seed, final long size, final int cacheLimit) {
super((MappedByteBuffer) ByteBuffer.allocateDirect((int) size), cacheLimit);
generateData(inputBuff, seed);
}
public SeedDataInput(final SeedDataInput anotherContentSource) {
super(anotherContentSource);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy