public void serialize(CellPath path, DataOutputPlus out) throws IOException { ByteBufferUtil.writeWithVIntLength(path.get(0), out); }
private void writeColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { ByteBufferUtil.writeWithVIntLength(entry.getKey(), out); writeType(entry.getValue(), out); } }
private void writeColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { ByteBufferUtil.writeWithVIntLength(entry.getKey(), out); writeType(entry.getValue(), out); } }
private void writeColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { ByteBufferUtil.writeWithVIntLength(entry.getKey(), out); writeType(entry.getValue(), out); } }
private void writeColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { ByteBufferUtil.writeWithVIntLength(entry.getKey(), out); writeType(entry.getValue(), out); } }
public void writeValue(ByteBuffer value, DataOutputPlus out) throws IOException { assert value.hasRemaining(); if (valueLengthIfFixed() >= 0) out.write(value); else ByteBufferUtil.writeWithVIntLength(value, out); }
public void writeValue(ByteBuffer value, DataOutputPlus out) throws IOException { assert value.hasRemaining(); if (valueLengthIfFixed() >= 0) out.write(value); else ByteBufferUtil.writeWithVIntLength(value, out); }
public void writeValue(ByteBuffer value, DataOutputPlus out) throws IOException { assert value.hasRemaining(); if (valueLengthIfFixed() >= 0) out.write(value); else ByteBufferUtil.writeWithVIntLength(value, out); }
public void writeValue(ByteBuffer value, DataOutputPlus out) throws IOException { assert value.hasRemaining(); if (valueLengthIfFixed() >= 0) out.write(value); else ByteBufferUtil.writeWithVIntLength(value, out); }
public void serialize(Columns columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) ByteBufferUtil.writeWithVIntLength(column.name.bytes, out); }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
public void serialize(Columns columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) ByteBufferUtil.writeWithVIntLength(column.name.bytes, out); }
public void serialize(Columns columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) ByteBufferUtil.writeWithVIntLength(column.name.bytes, out); }
public void serialize(Columns columns, DataOutputPlus out) throws IOException { out.writeUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) ByteBufferUtil.writeWithVIntLength(column.name.bytes, out); }
public void serialize(GroupingState state, DataOutputPlus out, int version, ClusteringComparator comparator) throws IOException { boolean hasPartitionKey = state.partitionKey != null; out.writeBoolean(hasPartitionKey); if (hasPartitionKey) { ByteBufferUtil.writeWithVIntLength(state.partitionKey, out); boolean hasClustering = state.hasClustering(); out.writeBoolean(hasClustering); if (hasClustering) Clustering.serializer.serialize(state.clustering, out, version, comparator.subtypes()); } }
public void serialize(GroupingState state, DataOutputPlus out, int version, ClusteringComparator comparator) throws IOException { boolean hasPartitionKey = state.partitionKey != null; out.writeBoolean(hasPartitionKey); if (hasPartitionKey) { ByteBufferUtil.writeWithVIntLength(state.partitionKey, out); boolean hasClustering = state.hasClustering(); out.writeBoolean(hasClustering); if (hasClustering) Clustering.serializer.serialize(state.clustering, out, version, comparator.subtypes()); } }
public void serialize(GroupingState state, DataOutputPlus out, int version, ClusteringComparator comparator) throws IOException { boolean hasPartitionKey = state.partitionKey != null; out.writeBoolean(hasPartitionKey); if (hasPartitionKey) { ByteBufferUtil.writeWithVIntLength(state.partitionKey, out); boolean hasClustering = state.hasClustering(); out.writeBoolean(hasClustering); if (hasClustering) Clustering.serializer.serialize(state.clustering, out, version, comparator.subtypes()); } }