public boolean isCompactTable() { return !isCQLTable(); }
public boolean isCompactTable() { return !isCQLTable(); }
public boolean isCompactTable() { return !isCQLTable(); }
public boolean isCompactTable() { return !isCQLTable(); }
private static List<ColumnDef> columnDefinitionsToThrift(CFMetaData metadata, Collection<ColumnDefinition> columns) { List<ColumnDef> thriftDefs = new ArrayList<>(columns.size()); for (ColumnDefinition def : columns) if (def.isPartOfCellName(metadata.isCQLTable(), metadata.isSuper())) thriftDefs.add(ThriftConversion.toThrift(metadata, def)); return thriftDefs; }
private static List<ColumnDef> columnDefinitionsToThrift(CFMetaData metadata, Collection<ColumnDefinition> columns) { List<ColumnDef> thriftDefs = new ArrayList<>(columns.size()); for (ColumnDefinition def : columns) if (def.isPartOfCellName(metadata.isCQLTable(), metadata.isSuper())) thriftDefs.add(ThriftConversion.toThrift(metadata, def)); return thriftDefs; }
public enum Flag { SUPER, COUNTER, DENSE, COMPOUND }
private void maybeInit() { // We're working around the fact that Row.Builder requires that addPrimaryKeyLivenessInfo() and // addRowDeletion() are called before any cell addition (which is done so the builder can more easily skip // shadowed cells). if (initiated) return; // If a CQL table, add the "row marker" if (metadata.isCQLTable() && !noPrimaryKeyLivenessInfo) builder.addPrimaryKeyLivenessInfo(LivenessInfo.create(timestamp, ttl, nowInSec)); initiated = true; }
private void maybeInit() { // We're working around the fact that Row.Builder requires that addPrimaryKeyLivenessInfo() and // addRowDeletion() are called before any cell addition (which is done so the builder can more easily skip // shadowed cells). if (initiated) return; // If a CQL table, add the "row marker" if (metadata.isCQLTable() && !noPrimaryKeyLivenessInfo) builder.addPrimaryKeyLivenessInfo(LivenessInfo.create(timestamp, ttl, nowInSec)); initiated = true; }
private void maybeInit() { // We're working around the fact that Row.Builder requires that addPrimaryKeyLivenessInfo() and // addRowDeletion() are called before any cell addition (which is done so the builder can more easily skip // shadowed cells). if (initiated) return; // If a CQL table, add the "row marker" if (metadata.isCQLTable() && !noPrimaryKeyLivenessInfo) builder.addPrimaryKeyLivenessInfo(LivenessInfo.create(timestamp, ttl, nowInSec)); initiated = true; }
public enum Flag { SUPER, COUNTER, DENSE, COMPOUND }
public enum Flag { SUPER, COUNTER, DENSE, COMPOUND }
public enum Flag { SUPER, COUNTER, DENSE, COMPOUND }
if (cfm.isCQLTable()) return Pair.create(cfm.getColumnDefinition(new ColumnIdentifier(columnName, true)), targetType); else
public void dropSecondaryIndices(final IndexMetaData indexMetaData) throws RequestExecutionException { String ksName = indexMetaData.keyspace(); for(CFMetaData cfMetaData : Schema.instance.getKSMetaData(ksName).tablesAndViews()) { if (cfMetaData.isCQLTable()) dropSecondaryIndex(cfMetaData); } }
throw new InvalidRequestException(String.format("Cannot rename column %s to %s in keyspace %s; another column of that name already exist", from, to, cfName)); if (def.isPartOfCellName(isCQLTable(), isSuper()) && !isDense())
throw new InvalidRequestException(String.format("Cannot rename column %s to %s in keyspace %s; another column of that name already exist", from, to, cfName)); if (def.isPartOfCellName(isCQLTable(), isSuper()) && !isDense())
if (type.isInsert() && cfm.isCQLTable()) params.addPrimaryKeyLivenessInfo();
if (type.isInsert() && cfm.isCQLTable()) params.addPrimaryKeyLivenessInfo();
if (type.isInsert() && cfm.isCQLTable()) params.addPrimaryKeyLivenessInfo();