/** * @param ignoreFreezing if true, the type string will not be wrapped with FrozenType(...), even if this type is frozen. */ public String toString(boolean ignoreFreezing) { return this.toString(); }
/** * @param ignoreFreezing if true, the type string will not be wrapped with FrozenType(...), even if this type is frozen. */ public String toString(boolean ignoreFreezing) { return this.toString(); }
/** * @param ignoreFreezing if true, the type string will not be wrapped with FrozenType(...), even if this type is frozen. */ public String toString(boolean ignoreFreezing) { return this.toString(); }
/** * @param ignoreFreezing if true, the type string will not be wrapped with FrozenType(...), even if this type is frozen. */ public String toString(boolean ignoreFreezing) { return this.toString(); }
@Override public String toString() { return asAbstractType().toString(); }
public CqlPreparedResult toThriftPreparedResult() { List<String> namesString = new ArrayList<String>(metadata.names.size()); List<String> typesString = new ArrayList<String>(metadata.names.size()); for (ColumnSpecification name : metadata.names) { namesString.add(name.toString()); typesString.add(name.type.toString()); } return new CqlPreparedResult(thriftStatementId, metadata.names.size()).setVariable_types(typesString).setVariable_names(namesString); }
public CqlPreparedResult toThriftPreparedResult() { List<String> namesString = new ArrayList<String>(metadata.names.size()); List<String> typesString = new ArrayList<String>(metadata.names.size()); for (ColumnSpecification name : metadata.names) { namesString.add(name.toString()); typesString.add(name.type.toString()); } return new CqlPreparedResult(thriftStatementId, metadata.names.size()).setVariable_types(typesString).setVariable_names(namesString); }
public CqlPreparedResult toThriftPreparedResult() { List<String> namesString = new ArrayList<String>(metadata.names.size()); List<String> typesString = new ArrayList<String>(metadata.names.size()); for (ColumnSpecification name : metadata.names) { namesString.add(name.toString()); typesString.add(name.type.toString()); } return new CqlPreparedResult(thriftStatementId, metadata.names.size()).setVariable_types(typesString).setVariable_names(namesString); }
public CqlPreparedResult toThriftPreparedResult() { List<String> namesString = new ArrayList<String>(metadata.names.size()); List<String> typesString = new ArrayList<String>(metadata.names.size()); for (ColumnSpecification name : metadata.names) { namesString.add(name.toString()); typesString.add(name.type.toString()); } return new CqlPreparedResult(thriftStatementId, metadata.names.size()).setVariable_types(typesString).setVariable_names(namesString); }
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 int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
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 int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
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); }
/** * Returns the Java Driver {@link com.datastax.driver.core.DataType} for the C* internal type. */ public static DataType driverType(AbstractType abstractType) { CQL3Type cqlType = abstractType.asCQL3Type(); String abstractTypeDef = cqlType.getType().toString(); return driverTypeFromAbstractType(abstractTypeDef); }
/** * Returns the Java Driver {@link com.datastax.driver.core.DataType} for the C* internal type. */ public static DataType driverType(AbstractType abstractType) { CQL3Type cqlType = abstractType.asCQL3Type(); String abstractTypeDef = cqlType.getType().toString(); return driverTypeFromAbstractType(abstractTypeDef); }
/** * Returns the Java Driver {@link com.datastax.driver.core.DataType} for the C* internal type. */ public static DataType driverType(AbstractType abstractType) { CQL3Type cqlType = abstractType.asCQL3Type(); String abstractTypeDef = cqlType.getType().toString(); return driverTypeFromAbstractType(abstractTypeDef); }
public ColumnDef toThrift() { ColumnDef cd = new ColumnDef(); cd.setName(ByteBufferUtil.clone(name.bytes)); cd.setValidation_class(type.toString()); cd.setIndex_type(indexType == null ? null : org.apache.cassandra.thrift.IndexType.valueOf(indexType.name())); cd.setIndex_name(indexName == null ? null : indexName); cd.setIndex_options(indexOptions == null ? null : Maps.newHashMap(indexOptions)); return cd; }
public void toSchema(Mutation mutation, long timestamp) { ColumnFamily cf = mutation.addOrGet(CFMetaData.SchemaColumnsCf); Composite prefix = CFMetaData.SchemaColumnsCf.comparator.make(cfName, name.toString()); CFRowAdder adder = new CFRowAdder(cf, prefix, timestamp); adder.add(TYPE, type.toString()); adder.add(INDEX_TYPE, indexType == null ? null : indexType.toString()); adder.add(INDEX_OPTIONS, json(indexOptions)); adder.add(INDEX_NAME, indexName); adder.add(COMPONENT_INDEX, componentIndex); adder.add(KIND, kind.serialize()); }