builder.addRegularColumn(ident, entry.getValue()); }); builder.addPartitionKey("PartitionKey", header.getKeyType()); for (int i = 0; i < header.getClusteringTypes().size(); i++)
builder.addRegularColumn(ident, entry.getValue()); }); builder.addPartitionKey("PartitionKey", header.getKeyType()); for (int i = 0; i < header.getClusteringTypes().size(); i++)
builder.addRegularColumn(ident, entry.getValue()); }); builder.addPartitionKey("PartitionKey", header.getKeyType()); for (int i = 0; i < header.getClusteringTypes().size(); i++)
.addPartitionKey(indexedColumn.name, indexedColumn.type) .addClusteringColumn("partition_key", baseCfsMetadata.partitioner.partitionOrdering());
.addPartitionKey(indexedColumn.name, indexedColumn.type) .addClusteringColumn("partition_key", baseCfsMetadata.partitioner.partitionOrdering());
builder.withId(id); for (int i = 0; i < keyAliases.size(); i++) builder.addPartitionKey(keyAliases.get(i), keyTypes.get(i)); for (int i = 0; i < columnAliases.size(); i++) builder.addClusteringColumn(columnAliases.get(i), clusteringTypes.get(i));
builder.withId(id); for (int i = 0; i < keyAliases.size(); i++) builder.addPartitionKey(keyAliases.get(i), keyTypes.get(i)); for (int i = 0; i < columnAliases.size(); i++) builder.addClusteringColumn(columnAliases.get(i), clusteringTypes.get(i));
builder.withId(id); for (int i = 0; i < keyAliases.size(); i++) builder.addPartitionKey(keyAliases.get(i), keyTypes.get(i)); for (int i = 0; i < columnAliases.size(); i++) builder.addClusteringColumn(columnAliases.get(i), clusteringTypes.get(i));
.addPartitionKey(indexedColumn.name, indexedColumn.type) .addClusteringColumn("partition_key", baseCfsMetadata.partitioner.partitionOrdering());
public Builder addPartitionKey(String name, AbstractType type) { return addPartitionKey(ColumnIdentifier.getInterned(name, false), type); }
public Builder addPartitionKey(String name, AbstractType type) { return addPartitionKey(ColumnIdentifier.getInterned(name, false), type); }
public Builder addPartitionKey(String name, AbstractType type) { return addPartitionKey(ColumnIdentifier.getInterned(name, false), type); }
/** * There is a couple of places in the code where we need a CFMetaData object and don't have one readily available * and know that only the keyspace and name matter. This creates such "fake" metadata. Use only if you know what * you're doing. */ public static CFMetaData createFake(String keyspace, String name) { return CFMetaData.Builder.create(keyspace, name).addPartitionKey("key", BytesType.instance).build(); }
/** * There is a couple of places in the code where we need a CFMetaData object and don't have one readily available * and know that only the keyspace and name matter. This creates such "fake" metadata. Use only if you know what * you're doing. */ public static CFMetaData createFake(String keyspace, String name) { return CFMetaData.Builder.create(keyspace, name).addPartitionKey("key", BytesType.instance).build(); }
public Builder addPartitionKey(String name, AbstractType type) { return addPartitionKey(ColumnIdentifier.getInterned(name, false), type); }
/** * There is a couple of places in the code where we need a CFMetaData object and don't have one readily available * and know that only the keyspace and name matter. This creates such "fake" metadata. Use only if you know what * you're doing. */ public static CFMetaData createFake(String keyspace, String name) { return CFMetaData.Builder.create(keyspace, name).addPartitionKey("key", BytesType.instance).build(); }
/** * There is a couple of places in the code where we need a CFMetaData object and don't have one readily available * and know that only the keyspace and name matter. This creates such "fake" metadata. Use only if you know what * you're doing. */ public static CFMetaData createFake(String keyspace, String name) { return CFMetaData.Builder.create(keyspace, name).addPartitionKey("key", BytesType.instance).build(); }