public void serialize(StreamInitMessage message, DataOutputPlus out, int version) throws IOException { CompactEndpointSerializationHelper.serialize(message.from, out); out.writeInt(message.sessionIndex); UUIDSerializer.serializer.serialize(message.planId, out, MessagingService.current_version); out.writeUTF(message.description); out.writeBoolean(message.isForOutgoing); out.writeBoolean(message.keepSSTableLevel); out.writeBoolean(message.isIncremental); }
public void serialize(StreamInitMessage message, DataOutputPlus out, int version) throws IOException { CompactEndpointSerializationHelper.serialize(message.from, out); out.writeInt(message.sessionIndex); UUIDSerializer.serializer.serialize(message.planId, out, MessagingService.current_version); out.writeUTF(message.description); out.writeBoolean(message.isForOutgoing); out.writeBoolean(message.keepSSTableLevel); out.writeBoolean(message.isIncremental); }
public void serialize(StreamInitMessage message, DataOutputPlus out, int version) throws IOException { CompactEndpointSerializationHelper.serialize(message.from, out); out.writeInt(message.sessionIndex); UUIDSerializer.serializer.serialize(message.planId, out, MessagingService.current_version); out.writeUTF(message.description); out.writeBoolean(message.isForOutgoing); out.writeBoolean(message.keepSSTableLevel); out.writeBoolean(message.isIncremental); }
public void serialize(RowFilter filter, DataOutputPlus out, int version) throws IOException { out.writeBoolean(filter instanceof ThriftFilter); out.writeUnsignedVInt(filter.expressions.size()); for (Expression expr : filter.expressions) Expression.serializer.serialize(expr, out, version); }
public void serialize(RowFilter filter, DataOutputPlus out, int version) throws IOException { out.writeBoolean(filter instanceof ThriftFilter); out.writeUnsignedVInt(filter.expressions.size()); for (Expression expr : filter.expressions) Expression.serializer.serialize(expr, out, version); }
public void serialize(IRowCacheEntry entry, DataOutputPlus out) throws IOException { assert entry != null; // unlike CFS we don't support nulls, since there is no need for that in the cache boolean isSentinel = entry instanceof RowCacheSentinel; out.writeBoolean(isSentinel); if (isSentinel) out.writeLong(((RowCacheSentinel) entry).sentinelId); else CachedPartition.cacheSerializer.serialize((CachedPartition)entry, out); }
public void serialize(TruncateResponse tr, DataOutputPlus out, int version) throws IOException { out.writeUTF(tr.keyspace); out.writeUTF(tr.columnFamily); out.writeBoolean(tr.success); }
public void serialize(IRowCacheEntry entry, DataOutputPlus out) throws IOException { assert entry != null; // unlike CFS we don't support nulls, since there is no need for that in the cache boolean isSentinel = entry instanceof RowCacheSentinel; out.writeBoolean(isSentinel); if (isSentinel) out.writeLong(((RowCacheSentinel) entry).sentinelId); else CachedPartition.cacheSerializer.serialize((CachedPartition)entry, out); }
public void serialize(DataRange range, DataOutputPlus out, int version, CFMetaData metadata) throws IOException { AbstractBounds.rowPositionSerializer.serialize(range.keyRange, out, version); ClusteringIndexFilter.serializer.serialize(range.clusteringIndexFilter, out, version); boolean isPaging = range instanceof Paging; out.writeBoolean(isPaging); if (isPaging) { Clustering.serializer.serialize(((Paging)range).lastReturned, out, version, metadata.comparator.subtypes()); out.writeBoolean(((Paging)range).inclusive); } }
public void serialize(TruncateResponse tr, DataOutputPlus out, int version) throws IOException { out.writeUTF(tr.keyspace); out.writeUTF(tr.columnFamily); out.writeBoolean(tr.success); }
public void serialize(DataRange range, DataOutputPlus out, int version, CFMetaData metadata) throws IOException { AbstractBounds.rowPositionSerializer.serialize(range.keyRange, out, version); ClusteringIndexFilter.serializer.serialize(range.clusteringIndexFilter, out, version); boolean isPaging = range instanceof Paging; out.writeBoolean(isPaging); if (isPaging) { Clustering.serializer.serialize(((Paging)range).lastReturned, out, version, metadata.comparator.subtypes()); out.writeBoolean(((Paging)range).inclusive); } }
public void serialize(SnapshotCommand snapshot_command, DataOutputPlus out, int version) throws IOException { out.writeUTF(snapshot_command.keyspace); out.writeUTF(snapshot_command.column_family); out.writeUTF(snapshot_command.snapshot_name); out.writeBoolean(snapshot_command.clear_snapshot); }
public void serialize(SnapshotCommand snapshot_command, DataOutputPlus out, int version) throws IOException { out.writeUTF(snapshot_command.keyspace); out.writeUTF(snapshot_command.column_family); out.writeUTF(snapshot_command.snapshot_name); out.writeBoolean(snapshot_command.clear_snapshot); }
public void serialize(ValidationComplete message, DataOutputPlus out, int version) throws IOException { RepairJobDesc.serializer.serialize(message.desc, out, version); out.writeBoolean(message.success()); if (message.trees != null) MerkleTrees.serializer.serialize(message.trees, out, version); }
public void serialize(SnapshotCommand snapshot_command, DataOutputPlus out, int version) throws IOException { out.writeUTF(snapshot_command.keyspace); out.writeUTF(snapshot_command.column_family); out.writeUTF(snapshot_command.snapshot_name); out.writeBoolean(snapshot_command.clear_snapshot); }
public void serialize(ValidationComplete message, DataOutputPlus out, int version) throws IOException { RepairJobDesc.serializer.serialize(message.desc, out, version); out.writeBoolean(message.success()); if (message.trees != null) MerkleTrees.serializer.serialize(message.trees, out, version); }
public void serialize(ClusteringIndexFilter pfilter, DataOutputPlus out, int version) throws IOException { AbstractClusteringIndexFilter filter = (AbstractClusteringIndexFilter)pfilter; out.writeByte(filter.kind().ordinal()); out.writeBoolean(filter.isReversed()); filter.serializeInternal(out, version); }
public void serialize(IndexInfo info, DataOutputPlus out) throws IOException { assert version.storeRows() : "We read old index files but we should never write them"; clusteringSerializer.serialize(info.firstName, out); clusteringSerializer.serialize(info.lastName, out); out.writeUnsignedVInt(info.offset); out.writeVInt(info.width - WIDTH_BASE); out.writeBoolean(info.endOpenMarker != null); if (info.endOpenMarker != null) DeletionTime.serializer.serialize(info.endOpenMarker, out); }
public void serialize(IndexInfo info, DataOutputPlus out) throws IOException { assert version.storeRows() : "We read old index files but we should never write them"; clusteringSerializer.serialize(info.firstName, out); clusteringSerializer.serialize(info.lastName, out); out.writeUnsignedVInt(info.offset); out.writeVInt(info.width - WIDTH_BASE); out.writeBoolean(info.endOpenMarker != null); if (info.endOpenMarker != null) DeletionTime.serializer.serialize(info.endOpenMarker, out); }
public void serialize(ReadCommand cmd, DataOutputPlus out, int version) throws IOException { SliceByNamesReadCommand command = (SliceByNamesReadCommand) cmd; out.writeBoolean(command.isDigestQuery()); out.writeUTF(command.ksName); ByteBufferUtil.writeWithShortLength(command.key, out); out.writeUTF(command.cfName); out.writeLong(cmd.timestamp); CFMetaData metadata = Schema.instance.getCFMetaData(cmd.ksName, cmd.cfName); metadata.comparator.namesQueryFilterSerializer().serialize(command.filter, out, version); }