public boolean isPastCurrentBlock() throws IOException { assert reader.deserializer != null; long correction = reader.deserializer.bytesReadForUnconsumedData(); return reader.file.bytesPastMark(mark) - correction >= currentIndex().width; }
public boolean isPastCurrentBlock() throws IOException { assert reader.deserializer != null; long correction = reader.deserializer.bytesReadForUnconsumedData(); return reader.file.bytesPastMark(mark) - correction >= currentIndex().width; }
public boolean isPastCurrentBlock() throws IOException { assert reader.deserializer != null; long correction = reader.deserializer.bytesReadForUnconsumedData(); return reader.file.bytesPastMark(mark) - correction >= currentIndex().width; }
public boolean isPastCurrentBlock() throws IOException { assert reader.deserializer != null; long correction = reader.deserializer.bytesReadForUnconsumedData(); return reader.file.bytesPastMark(mark) - correction >= currentIndex().width; }
/** * Deserialize the index into a structure and return it * * @param in input source * @param type the comparator type for the column family * * @return ArrayList<IndexInfo> - list of de-serialized indexes * @throws IOException if an I/O error occurs. */ public static List<IndexInfo> deserializeIndex(FileDataInput in, CType type) throws IOException { int columnIndexSize = in.readInt(); if (columnIndexSize == 0) return Collections.<IndexInfo>emptyList(); ArrayList<IndexInfo> indexList = new ArrayList<IndexInfo>(); FileMark mark = in.mark(); ISerializer<IndexInfo> serializer = type.indexSerializer(); while (in.bytesPastMark(mark) < columnIndexSize) { indexList.add(serializer.deserialize(in)); } assert in.bytesPastMark(mark) == columnIndexSize; return indexList; }
file.seek(positionToSeek); FileMark mark = file.mark(); while (file.bytesPastMark(mark) < indexInfo.width && nextToFetch != null)
while (file.bytesPastMark(mark) < currentIndex.width || deserializer.hasUnprocessed())