@Override public String toString() { return column.name.toCQLString(); } }
@Override public String toString() { return column.name.toCQLString(); } }
@Override public String toString() { return column.name.toCQLString(); } }
@Override public String toString() { return column.name.toCQLString(); } }
/** * Builds the string text for a materialized view's SELECT statement. */ public static String buildSelectStatement(String cfName, Collection<ColumnDefinition> includedColumns, String whereClause) { StringBuilder rawSelect = new StringBuilder("SELECT "); if (includedColumns == null || includedColumns.isEmpty()) rawSelect.append("*"); else rawSelect.append(includedColumns.stream().map(id -> id.name.toCQLString()).collect(Collectors.joining(", "))); rawSelect.append(" FROM \"").append(cfName).append("\" WHERE ") .append(whereClause).append(" ALLOW FILTERING"); return rawSelect.toString(); }
/** * Builds the string text for a materialized view's SELECT statement. */ public static String buildSelectStatement(String cfName, Collection<ColumnDefinition> includedColumns, String whereClause) { StringBuilder rawSelect = new StringBuilder("SELECT "); if (includedColumns == null || includedColumns.isEmpty()) rawSelect.append("*"); else rawSelect.append(includedColumns.stream().map(id -> id.name.toCQLString()).collect(Collectors.joining(", "))); rawSelect.append(" FROM \"").append(cfName).append("\" WHERE ") .append(whereClause).append(" ALLOW FILTERING"); return rawSelect.toString(); }
/** * Builds the string text for a materialized view's SELECT statement. */ public static String buildSelectStatement(String cfName, Collection<ColumnDefinition> includedColumns, String whereClause) { StringBuilder rawSelect = new StringBuilder("SELECT "); if (includedColumns == null || includedColumns.isEmpty()) rawSelect.append("*"); else rawSelect.append(includedColumns.stream().map(id -> id.name.toCQLString()).collect(Collectors.joining(", "))); rawSelect.append(" FROM \"").append(cfName).append("\" WHERE ") .append(whereClause).append(" ALLOW FILTERING"); return rawSelect.toString(); }
public String asCqlString(CFMetaData cfm) { if (!cfm.getColumnDefinition(column).type.isCollection()) return column.toCQLString(); return String.format("%s(%s)", type.toString(), column.toCQLString()); }
public String asCqlString(CFMetaData cfm) { if (!cfm.getColumnDefinition(column).type.isCollection()) return column.toCQLString(); return String.format("%s(%s)", type.toString(), column.toCQLString()); }
public String asCqlString(CFMetaData cfm) { if (!cfm.getColumnDefinition(column).type.isCollection()) return column.toCQLString(); return String.format("%s(%s)", type.toString(), column.toCQLString()); }
json.writeStartObject(); json.writeFieldName("name"); json.writeString(cd.column().name.toCQLString()); serializeDeletion(complexData.complexDeletion()); objectIndenter.setCompact(true);
json.writeStartObject(); json.writeFieldName("name"); json.writeString(cd.column().name.toCQLString()); serializeDeletion(complexData.complexDeletion()); objectIndenter.setCompact(true);
json.writeStartObject(); json.writeFieldName("name"); json.writeString(cd.column().name.toCQLString()); serializeDeletion(complexData.complexDeletion()); objectIndenter.setCompact(true);
AbstractType<?> type = cell.column().type; AbstractType<?> cellType = null; json.writeString(cell.column().name.toCQLString());
AbstractType<?> type = cell.column().type; AbstractType<?> cellType = null; json.writeString(cell.column().name.toCQLString());
AbstractType<?> type = cell.column().type; AbstractType<?> cellType = null; json.writeString(cell.column().name.toCQLString());