/** * Creates a {@code FieldIdentifier} from a quoted identifier string. */ public static FieldIdentifier forQuoted(String text) { return new FieldIdentifier(convert(text)); }
/** * Creates a {@code FieldIdentifier} from an unquoted identifier string. */ public static FieldIdentifier forUnquoted(String text) { return new FieldIdentifier(convert(text.toLowerCase(Locale.US))); }
/** * Creates a {@code FieldIdentifier} from a quoted identifier string. */ public static FieldIdentifier forQuoted(String text) { return new FieldIdentifier(convert(text)); }
/** * Creates a {@code FieldIdentifier} from an unquoted identifier string. */ public static FieldIdentifier forUnquoted(String text) { return new FieldIdentifier(convert(text.toLowerCase(Locale.US))); }
/** * Creates a {@code FieldIdentifier} from a quoted identifier string. */ public static FieldIdentifier forQuoted(String text) { return new FieldIdentifier(convert(text)); }
/** * Creates a {@code FieldIdentifier} from an unquoted identifier string. */ public static FieldIdentifier forUnquoted(String text) { return new FieldIdentifier(convert(text.toLowerCase(Locale.US))); }
/** * Creates a {@code FieldIdentifier} from an unquoted identifier string. */ public static FieldIdentifier forUnquoted(String text) { return new FieldIdentifier(convert(text.toLowerCase(Locale.US))); }
/** * Creates a {@code FieldIdentifier} from a quoted identifier string. */ public static FieldIdentifier forQuoted(String text) { return new FieldIdentifier(convert(text)); }
public static UserType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { Pair<Pair<String, ByteBuffer>, List<Pair<ByteBuffer, AbstractType>>> params = parser.getUserTypeParameters(); String keyspace = params.left.left; ByteBuffer name = params.left.right; List<FieldIdentifier> columnNames = new ArrayList<>(params.right.size()); List<AbstractType<?>> columnTypes = new ArrayList<>(params.right.size()); for (Pair<ByteBuffer, AbstractType> p : params.right) { columnNames.add(new FieldIdentifier(p.left)); columnTypes.add(p.right); } return new UserType(keyspace, name, columnNames, columnTypes, true); }
public static UserType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { Pair<Pair<String, ByteBuffer>, List<Pair<ByteBuffer, AbstractType>>> params = parser.getUserTypeParameters(); String keyspace = params.left.left; ByteBuffer name = params.left.right; List<FieldIdentifier> columnNames = new ArrayList<>(params.right.size()); List<AbstractType<?>> columnTypes = new ArrayList<>(params.right.size()); for (Pair<ByteBuffer, AbstractType> p : params.right) { columnNames.add(new FieldIdentifier(p.left)); columnTypes.add(p.right); } return new UserType(keyspace, name, columnNames, columnTypes, true); }
public static UserType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { Pair<Pair<String, ByteBuffer>, List<Pair<ByteBuffer, AbstractType>>> params = parser.getUserTypeParameters(); String keyspace = params.left.left; ByteBuffer name = params.left.right; List<FieldIdentifier> columnNames = new ArrayList<>(params.right.size()); List<AbstractType<?>> columnTypes = new ArrayList<>(params.right.size()); for (Pair<ByteBuffer, AbstractType> p : params.right) { columnNames.add(new FieldIdentifier(p.left)); columnTypes.add(p.right); } return new UserType(keyspace, name, columnNames, columnTypes, true); }
public static UserType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { Pair<Pair<String, ByteBuffer>, List<Pair<ByteBuffer, AbstractType>>> params = parser.getUserTypeParameters(); String keyspace = params.left.left; ByteBuffer name = params.left.right; List<FieldIdentifier> columnNames = new ArrayList<>(params.right.size()); List<AbstractType<?>> columnTypes = new ArrayList<>(params.right.size()); for (Pair<ByteBuffer, AbstractType> p : params.right) { columnNames.add(new FieldIdentifier(p.left)); columnTypes.add(p.right); } return new UserType(keyspace, name, columnNames, columnTypes, true); }