List of usage examples for org.apache.cassandra.exceptions SyntaxException getMessage
public String getMessage();
From source file:com.tuplejump.calliope.hadoop.cql3.CqlRecordWriter.java
License:Apache License
private AbstractType<?> parseType(String type) throws ConfigurationException { try {//from w w w.j a v a2 s. com // always treat counters like longs, specifically CCT.serialize is not what we need if (type != null && type.equals("org.apache.cassandra.db.marshal.CounterColumnType")) return LongType.instance; return TypeParser.parse(type); } catch (SyntaxException e) { throw new ConfigurationException(e.getMessage(), e); } }
From source file:kina.cql.CqlRecordWriter.java
License:Apache License
private AbstractType<?> parseType(String type) throws ConfigurationException { try {//from w w w. j a v a 2 s . c o m // always treat counters like longs, specifically CCT.serialize is not what we need if (type != null && "org.apache.cassandra.db.marshal.CounterColumnType".equals(type)) { return LongType.instance; } return TypeParser.parse(type); } catch (SyntaxException e) { throw new ConfigurationException(e.getMessage(), e); } }