public StreamInitMessage deserialize(DataInputPlus in, int version) throws IOException { InetAddress from = CompactEndpointSerializationHelper.deserialize(in); int sessionIndex = in.readInt(); UUID planId = UUIDSerializer.serializer.deserialize(in, MessagingService.current_version); String description = in.readUTF(); boolean sentByInitiator = in.readBoolean(); boolean keepSSTableLevel = in.readBoolean(); boolean isIncremental = in.readBoolean(); return new StreamInitMessage(from, sessionIndex, planId, description, sentByInitiator, keepSSTableLevel, isIncremental); }
public StreamInitMessage deserialize(DataInputPlus in, int version) throws IOException { InetAddress from = CompactEndpointSerializationHelper.deserialize(in); int sessionIndex = in.readInt(); UUID planId = UUIDSerializer.serializer.deserialize(in, MessagingService.current_version); String description = in.readUTF(); boolean sentByInitiator = in.readBoolean(); boolean keepSSTableLevel = in.readBoolean(); boolean isIncremental = in.readBoolean(); return new StreamInitMessage(from, sessionIndex, planId, description, sentByInitiator, keepSSTableLevel, isIncremental); }
public StreamInitMessage deserialize(DataInputPlus in, int version) throws IOException { InetAddress from = CompactEndpointSerializationHelper.deserialize(in); int sessionIndex = in.readInt(); UUID planId = UUIDSerializer.serializer.deserialize(in, MessagingService.current_version); String description = in.readUTF(); boolean sentByInitiator = in.readBoolean(); boolean keepSSTableLevel = in.readBoolean(); boolean isIncremental = in.readBoolean(); return new StreamInitMessage(from, sessionIndex, planId, description, sentByInitiator, keepSSTableLevel, isIncremental); }
public GroupingState deserialize(DataInputPlus in, int version, ClusteringComparator comparator) throws IOException { if (!in.readBoolean()) return GroupingState.EMPTY_STATE; ByteBuffer partitionKey = ByteBufferUtil.readWithVIntLength(in); Clustering clustering = null; if (in.readBoolean()) clustering = Clustering.serializer.deserialize(in, version, comparator.subtypes()); return new GroupingState(partitionKey, clustering); }
public GroupingState deserialize(DataInputPlus in, int version, ClusteringComparator comparator) throws IOException { if (!in.readBoolean()) return GroupingState.EMPTY_STATE; ByteBuffer partitionKey = ByteBufferUtil.readWithVIntLength(in); Clustering clustering = null; if (in.readBoolean()) clustering = Clustering.serializer.deserialize(in, version, comparator.subtypes()); return new GroupingState(partitionKey, clustering); }
public RowFilter deserialize(DataInputPlus in, int version, CFMetaData metadata) throws IOException { boolean forThrift = in.readBoolean(); int size = (int)in.readUnsignedVInt(); List<Expression> expressions = new ArrayList<>(size); for (int i = 0; i < size; i++) expressions.add(Expression.serializer.deserialize(in, version, metadata)); return forThrift ? new ThriftFilter(expressions) : new CQLFilter(expressions); }
public RowFilter deserialize(DataInputPlus in, int version, CFMetaData metadata) throws IOException { boolean forThrift = in.readBoolean(); int size = (int)in.readUnsignedVInt(); List<Expression> expressions = new ArrayList<>(size); for (int i = 0; i < size; i++) expressions.add(Expression.serializer.deserialize(in, version, metadata)); return forThrift ? new ThriftFilter(expressions) : new CQLFilter(expressions); }
public SyncComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); NodePair nodes = NodePair.serializer.deserialize(in, version); return new SyncComplete(desc, nodes, in.readBoolean()); }
public TruncateResponse deserialize(DataInputPlus in, int version) throws IOException { String keyspace = in.readUTF(); String columnFamily = in.readUTF(); boolean success = in.readBoolean(); return new TruncateResponse(keyspace, columnFamily, success); }
public IRowCacheEntry deserialize(DataInputPlus in) throws IOException { boolean isSentinel = in.readBoolean(); if (isSentinel) return new RowCacheSentinel(in.readLong()); return CachedPartition.cacheSerializer.deserialize(in); }
public IRowCacheEntry deserialize(DataInputPlus in) throws IOException { boolean isSentinel = in.readBoolean(); if (isSentinel) return new RowCacheSentinel(in.readLong()); return CachedPartition.cacheSerializer.deserialize(in); }
public ClusteringIndexFilter deserialize(DataInputPlus in, int version, CFMetaData metadata) throws IOException { Kind kind = Kind.values()[in.readUnsignedByte()]; boolean reversed = in.readBoolean(); return kind.deserializer.deserialize(in, version, metadata, reversed); }
public SyncComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); NodePair nodes = NodePair.serializer.deserialize(in, version); return new SyncComplete(desc, nodes, in.readBoolean()); }
public TruncateResponse deserialize(DataInputPlus in, int version) throws IOException { String keyspace = in.readUTF(); String columnFamily = in.readUTF(); boolean success = in.readBoolean(); return new TruncateResponse(keyspace, columnFamily, success); }
public SyncComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); NodePair nodes = NodePair.serializer.deserialize(in, version); return new SyncComplete(desc, nodes, in.readBoolean()); }
public ClusteringIndexFilter deserialize(DataInputPlus in, int version, CFMetaData metadata) throws IOException { Kind kind = Kind.values()[in.readUnsignedByte()]; boolean reversed = in.readBoolean(); return kind.deserializer.deserialize(in, version, metadata, reversed); }
public SnapshotCommand deserialize(DataInputPlus in, int version) throws IOException { String keyspace = in.readUTF(); String column_family = in.readUTF(); String snapshot_name = in.readUTF(); boolean clear_snapshot = in.readBoolean(); return new SnapshotCommand(keyspace, column_family, snapshot_name, clear_snapshot); }
public ValidationComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); boolean success = in.readBoolean(); if (success) { MerkleTrees trees = MerkleTrees.serializer.deserialize(in, version); return new ValidationComplete(desc, trees); } return new ValidationComplete(desc); }
public SnapshotCommand deserialize(DataInputPlus in, int version) throws IOException { String keyspace = in.readUTF(); String column_family = in.readUTF(); String snapshot_name = in.readUTF(); boolean clear_snapshot = in.readBoolean(); return new SnapshotCommand(keyspace, column_family, snapshot_name, clear_snapshot); }
public ValidationComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); boolean success = in.readBoolean(); if (success) { MerkleTrees trees = MerkleTrees.serializer.deserialize(in, version); return new ValidationComplete(desc, trees); } return new ValidationComplete(desc); }