public static final Set<SQLConvertSupport> toSQLConvertSupport(Iterable<ConvertSupport> convertSupportIterable) { ImmutableSet.Builder<SQLConvertSupport> sqlConvertSupportSet = ImmutableSet.builder(); for(ConvertSupport convertSupport: convertSupportIterable) { try { sqlConvertSupportSet.add(new SQLConvertSupport( toSQLType(convertSupport.getFrom()), toSQLType(convertSupport.getTo()))); } catch(IllegalArgumentException e) { // Ignore unknown types... } } return sqlConvertSupportSet.build(); }
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ConvertSupport other) { if (other == org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance()) return this; if (other.hasFrom()) { setFrom(other.getFrom()); } if (other.hasTo()) { setTo(other.getTo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.ConvertSupport message) throws java.io.IOException { if(message.hasFrom()) output.writeEnum(1, message.getFrom().getNumber(), false); if(message.hasTo()) output.writeEnum(2, message.getTo().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.ConvertSupport message)
public static final Set<SQLConvertSupport> toSQLConvertSupport(Iterable<ConvertSupport> convertSupportIterable) { ImmutableSet.Builder<SQLConvertSupport> sqlConvertSupportSet = ImmutableSet.builder(); for(ConvertSupport convertSupport: convertSupportIterable) { try { sqlConvertSupportSet.add(new SQLConvertSupport( toSQLType(convertSupport.getFrom()), toSQLType(convertSupport.getTo()))); } catch(IllegalArgumentException e) { // Ignore unknown types... } } return sqlConvertSupportSet.build(); }
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ConvertSupport other) { if (other == org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance()) return this; if (other.hasFrom()) { setFrom(other.getFrom()); } if (other.hasTo()) { setTo(other.getTo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.ConvertSupport message) throws java.io.IOException { if(message.hasFrom()) output.writeEnum(1, message.getFrom().getNumber(), false); if(message.hasTo()) output.writeEnum(2, message.getTo().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.ConvertSupport message)