public static LegacyCell readLegacyCell(CFMetaData metadata, DataInput in, SerializationHelper.Flag flag) throws IOException, UnknownColumnException { ByteBuffer cellname = ByteBufferUtil.readWithShortLength(in); int b = in.readUnsignedByte(); return readLegacyCellBody(metadata, in, cellname, b, flag, false); }
public static LegacyCell readLegacyCell(CFMetaData metadata, DataInput in, SerializationHelper.Flag flag) throws IOException, UnknownColumnException { ByteBuffer cellname = ByteBufferUtil.readWithShortLength(in); int b = in.readUnsignedByte(); return readLegacyCellBody(metadata, in, cellname, b, flag, false); }
public static LegacyCell readLegacyCell(CFMetaData metadata, DataInput in, SerializationHelper.Flag flag) throws IOException, UnknownColumnException { ByteBuffer cellname = ByteBufferUtil.readWithShortLength(in); int b = in.readUnsignedByte(); return readLegacyCellBody(metadata, in, cellname, b, flag, false); }
public Composite deserialize(DataInput in) throws IOException { return type.fromByteBuffer(ByteBufferUtil.readWithShortLength(in)); }
public static LegacyCell readLegacyCell(CFMetaData metadata, DataInput in, SerializationHelper.Flag flag) throws IOException, UnknownColumnException { ByteBuffer cellname = ByteBufferUtil.readWithShortLength(in); int b = in.readUnsignedByte(); return readLegacyCellBody(metadata, in, cellname, b, flag, false); }
public ReadResponse deserialize(DataInputPlus in, int version) throws IOException { assert version < MessagingService.VERSION_30; int partitionCount = in.readInt(); ArrayList<ImmutableBTreePartition> partitions = new ArrayList<>(partitionCount); for (int i = 0; i < partitionCount; i++) { ByteBuffer key = ByteBufferUtil.readWithShortLength(in); try (UnfilteredRowIterator partition = LegacyLayout.deserializeLegacyPartition(in, version, SerializationHelper.Flag.FROM_REMOTE, key)) { partitions.add(ImmutableBTreePartition.create(partition)); } } return new LegacyRemoteDataResponse(partitions); }
public DecoratedKey keyAt(long indexPosition) throws IOException { DecoratedKey key; try (FileDataInput in = ifile.createReader(indexPosition)) { if (in.isEOF()) return null; key = decorateKey(ByteBufferUtil.readWithShortLength(in)); } return key; }
public Commit deserialize(DataInputPlus in, int version) throws IOException { ByteBuffer key = null; if (version < MessagingService.VERSION_30) key = ByteBufferUtil.readWithShortLength(in); UUID ballot = UUIDSerializer.serializer.deserialize(in, version); PartitionUpdate update = PartitionUpdate.serializer.deserialize(in, version, SerializationHelper.Flag.LOCAL, key); return new Commit(ballot, update); }
public Commit deserialize(DataInputPlus in, int version) throws IOException { ByteBuffer key = null; if (version < MessagingService.VERSION_30) key = ByteBufferUtil.readWithShortLength(in); UUID ballot = UUIDSerializer.serializer.deserialize(in, version); PartitionUpdate update = PartitionUpdate.serializer.deserialize(in, version, SerializationHelper.Flag.LOCAL, key); return new Commit(ballot, update); }
public Commit deserialize(DataInput in, int version) throws IOException { return new Commit(ByteBufferUtil.readWithShortLength(in), UUIDSerializer.serializer.deserialize(in, version), ColumnFamily.serializer.deserialize(in, ArrayBackedSortedColumns.factory, ColumnSerializer.Flag.LOCAL, version)); }
public Commit deserialize(DataInputPlus in, int version) throws IOException { ByteBuffer key = null; if (version < MessagingService.VERSION_30) key = ByteBufferUtil.readWithShortLength(in); UUID ballot = UUIDSerializer.serializer.deserialize(in, version); PartitionUpdate update = PartitionUpdate.serializer.deserialize(in, version, SerializationHelper.Flag.LOCAL, key); return new Commit(ballot, update); }
public StreamDeserializer newPartition() throws IOException { key = metadata.decorateKey(ByteBufferUtil.readWithShortLength(in)); partitionLevelDeletion = DeletionTime.serializer.deserialize(in); iterator = SSTableSimpleIterator.create(metadata, in, header, helper, partitionLevelDeletion); staticRow = iterator.readStaticRow(); return this; }
public StreamDeserializer newPartition() throws IOException { key = metadata.decorateKey(ByteBufferUtil.readWithShortLength(in)); partitionLevelDeletion = DeletionTime.serializer.deserialize(in); iterator = SSTableSimpleIterator.create(metadata, in, header, helper, partitionLevelDeletion); staticRow = iterator.readStaticRow(); return this; }
public static LegacyRangeTombstone readLegacyRangeTombstoneBody(CFMetaData metadata, DataInputPlus in, ByteBuffer boundname) throws IOException { LegacyBound min = decodeBound(metadata, boundname, true); LegacyBound max = decodeBound(metadata, ByteBufferUtil.readWithShortLength(in), false); DeletionTime dt = DeletionTime.serializer.deserialize(in); return new LegacyRangeTombstone(min, max, dt); }
public PartitionPosition deserialize(DataInput in, IPartitioner p, int version) throws IOException { Kind kind = Kind.fromOrdinal(in.readByte()); if (kind == Kind.ROW_KEY) { ByteBuffer k = ByteBufferUtil.readWithShortLength(in); return p.decorateKey(k); } else { Token t = Token.serializer.deserialize(in, p, version); return kind == Kind.MIN_BOUND ? t.minKeyBound() : t.maxKeyBound(); } }
public static LegacyRangeTombstone readLegacyRangeTombstoneBody(CFMetaData metadata, DataInputPlus in, ByteBuffer boundname) throws IOException { LegacyBound min = decodeBound(metadata, boundname, true); LegacyBound max = decodeBound(metadata, ByteBufferUtil.readWithShortLength(in), false); DeletionTime dt = DeletionTime.serializer.deserialize(in); return new LegacyRangeTombstone(min, max, dt); }
public Row deserialize(DataInput in, int version, ColumnSerializer.Flag flag) throws IOException { return new Row(StorageService.getPartitioner().decorateKey(ByteBufferUtil.readWithShortLength(in)), ColumnFamily.serializer.deserialize(in, flag, version)); }
public static LegacyRangeTombstone readLegacyRangeTombstoneBody(CFMetaData metadata, DataInputPlus in, ByteBuffer boundname) throws IOException { LegacyBound min = decodeBound(metadata, boundname, true); LegacyBound max = decodeBound(metadata, ByteBufferUtil.readWithShortLength(in), false); DeletionTime dt = DeletionTime.serializer.deserialize(in); return new LegacyRangeTombstone(min, max, dt); }
public static LegacyRangeTombstone readLegacyRangeTombstoneBody(CFMetaData metadata, DataInputPlus in, ByteBuffer boundname) throws IOException { LegacyBound min = decodeBound(metadata, boundname, true); LegacyBound max = decodeBound(metadata, ByteBufferUtil.readWithShortLength(in), false); DeletionTime dt = DeletionTime.serializer.deserialize(in); return new LegacyRangeTombstone(min, max, dt); }
public StreamDeserializer newPartition() throws IOException { key = metadata.decorateKey(ByteBufferUtil.readWithShortLength(in)); partitionLevelDeletion = DeletionTime.serializer.deserialize(in); iterator = SSTableSimpleIterator.create(metadata, in, header, helper, partitionLevelDeletion); staticRow = iterator.readStaticRow(); return this; }