Package com.emc.mongoose.base.data
Interface DataInput
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
CachedDataInput,DataInputBase,ExternalDataInput,SeedDataInput
public interface DataInput extends java.io.CloseableCreated by kurila on 29.09.14. A finite data input for data generation purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDataInput.Type
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidgenerateData(java.nio.ByteBuffer byteLayer, long seed)java.nio.ByteBuffergetLayer(int layerIndex)intgetSize()static DataInputinstance(java.lang.String inputFilePath, java.lang.String seed, com.github.akurilov.commons.system.SizeInBytes layerSize, int layerCacheLimit, boolean isInHeapMem)
-
-
-
Method Detail
-
getSize
int getSize()
-
getLayer
java.nio.ByteBuffer getLayer(int layerIndex)
-
instance
static DataInput instance(java.lang.String inputFilePath, java.lang.String seed, com.github.akurilov.commons.system.SizeInBytes layerSize, int layerCacheLimit, boolean isInHeapMem) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Throws:
java.io.IOExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
generateData
static void generateData(java.nio.ByteBuffer byteLayer, long seed)
-
-