public interface IndexToKey
MapFileReader| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.WritableComparable |
getKeyForIndex(long index)
Get the key for the given index
|
long |
getNumRecords()
Getter infer the number of records in the given map file(s)
|
List<org.nd4j.linalg.primitives.Pair<Long,Long>> |
initialize(org.apache.hadoop.io.MapFile.Reader[] readers,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
Initialise the instance, and return the first and last record indexes (inclusive) for each reader
|
List<org.nd4j.linalg.primitives.Pair<Long,Long>> initialize(org.apache.hadoop.io.MapFile.Reader[] readers, Class<? extends org.apache.hadoop.io.Writable> valueClass) throws IOException
readers - The underlying map file readersIOExceptionorg.apache.hadoop.io.WritableComparable getKeyForIndex(long index)
index - 0 to getNumRecords(reader)long getNumRecords()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.