public static RowIndexEntry create(long position, DeletionTime deletionTime, ColumnIndex index) { assert index != null; assert deletionTime != null; // we only consider the columns summary when determining whether to create an IndexedEntry, // since if there are insufficient columns to be worth indexing we're going to seek to // the beginning of the row anyway, so we might as well read the tombstone there as well. if (index.columnsIndex.size() > 1) return new IndexedEntry(position, deletionTime, index.columnsIndex); else return new RowIndexEntry(position); }
indexedPartSize, idxInfoSerializer); return new RowIndexEntry<>(dataFilePosition);
public RowIndexEntry deserialize(DataInput in, Descriptor.Version version) throws IOException { long position = in.readLong(); int size = in.readInt(); if (size > 0) { DeletionTime deletionTime = DeletionTime.serializer.deserialize(in); int entries = in.readInt(); ISerializer<IndexHelper.IndexInfo> idxSerializer = type.indexSerializer(); List<IndexHelper.IndexInfo> columnsIndex = new ArrayList<IndexHelper.IndexInfo>(entries); for (int i = 0; i < entries; i++) columnsIndex.add(idxSerializer.deserialize(in)); return new IndexedEntry(position, deletionTime, columnsIndex); } else { return new RowIndexEntry(position); } }
indexedPartSize, idxInfoSerializer); return new RowIndexEntry<>(dataFilePosition);
indexedPartSize, idxInfoSerializer); return new RowIndexEntry<>(dataFilePosition);
indexedPartSize, idxInfoSerializer); return new RowIndexEntry<>(dataFilePosition);
public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException { assert version.storeRows(); long position = in.readUnsignedVInt(); switch (in.readByte()) { case CACHE_NOT_INDEXED: return new RowIndexEntry<>(position); case CACHE_INDEXED: return new IndexedEntry(position, in, idxInfoSerializer, version); case CACHE_INDEXED_SHALLOW: return new ShallowIndexedEntry(position, in, idxInfoSerializer); default: throw new AssertionError(); } }
public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException { assert version.storeRows(); long position = in.readUnsignedVInt(); switch (in.readByte()) { case CACHE_NOT_INDEXED: return new RowIndexEntry<>(position); case CACHE_INDEXED: return new IndexedEntry(position, in, idxInfoSerializer, version); case CACHE_INDEXED_SHALLOW: return new ShallowIndexedEntry(position, in, idxInfoSerializer); default: throw new AssertionError(); } }
public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException { assert version.storeRows(); long position = in.readUnsignedVInt(); switch (in.readByte()) { case CACHE_NOT_INDEXED: return new RowIndexEntry<>(position); case CACHE_INDEXED: return new IndexedEntry(position, in, idxInfoSerializer, version); case CACHE_INDEXED_SHALLOW: return new ShallowIndexedEntry(position, in, idxInfoSerializer); default: throw new AssertionError(); } }
public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws IOException { assert version.storeRows(); long position = in.readUnsignedVInt(); switch (in.readByte()) { case CACHE_NOT_INDEXED: return new RowIndexEntry<>(position); case CACHE_INDEXED: return new IndexedEntry(position, in, idxInfoSerializer, version); case CACHE_INDEXED_SHALLOW: return new ShallowIndexedEntry(position, in, idxInfoSerializer); default: throw new AssertionError(); } }
if (size == 0) return new RowIndexEntry<>(position);
if (size == 0) return new RowIndexEntry<>(position);
if (size == 0) return new RowIndexEntry<>(position);
if (size == 0) return new RowIndexEntry<>(position);
if (size == 0) return new RowIndexEntry<>(dataFilePosition);
if (size == 0) return new RowIndexEntry<>(dataFilePosition);
if (size == 0) return new RowIndexEntry<>(dataFilePosition);
if (size == 0) return new RowIndexEntry<>(dataFilePosition);