void set(Location other) { set(other.blockIndex, other.recordIndex); }
Location(Location other) { set(other); }
void set(Location other) { set(other.blockIndex, other.recordIndex); }
Location(Location other) { set(other); }
Location(int blockIndex, long recordIndex) { set(blockIndex, recordIndex); }
Location(int blockIndex, long recordIndex) { set(blockIndex, recordIndex); }
Location(int blockIndex, long recordIndex) { set(blockIndex, recordIndex); }
void set(Location other) { set(other.blockIndex, other.recordIndex); }
Location(Location other) { set(other); }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }
/** * Constructor * * @param reader * The TFile reader object. * @param beginKey * Begin key of the scan. If null, scan from the first <K,V> * entry of the TFile. * @param endKey * End key of the scan. If null, scan up to the last <K, V> entry * of the TFile. * @throws IOException */ protected Scanner(Reader reader, RawComparable beginKey, RawComparable endKey) throws IOException { this(reader, (beginKey == null) ? reader.begin() : reader .getBlockContainsKey(beginKey, false), reader.end()); if (beginKey != null) { inBlockAdvance(beginKey, false); beginLocation.set(currentLocation); } if (endKey != null) { seekTo(endKey, false); endLocation.set(currentLocation); seekTo(beginLocation); } }
/** * Load a compressed block for reading. Expecting blockIndex is valid. * * @throws IOException */ private void initBlock(int blockIndex) throws IOException { klen = -1; if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } blkReader = reader.getBlockReader(blockIndex); currentLocation.set(blockIndex, 0); }
Location(Location other) { set(other); }
Location(int blockIndex, long recordIndex) { set(blockIndex, recordIndex); }
void set(Location other) { set(other.blockIndex, other.recordIndex); }
private void parkCursorAtEnd() throws IOException { klen = -1; currentLocation.set(endLocation); if (blkReader != null) { try { blkReader.close(); } finally { blkReader = null; } } }