if (schemaNameFilter.hasEscape()) { builder.setEscape(schemaNameFilter.getEscape().toLowerCase());
/** * Helper method to create {@link FunctionExprNode} from {@link LikeFilter}. * @param fieldName Name of the filed on which the like expression is applied. * @param likeFilter * @return {@link FunctionExprNode} for given arguments. Null if the <code>likeFilter</code> is null. */ private static FunctionExprNode createLikeFunctionExprNode(String fieldName, LikeFilter likeFilter) { if (likeFilter == null) { return null; } return new FunctionExprNode(LIKE_FUNCTION, likeFilter.hasEscape() ? ImmutableList.of( new FieldExprNode(fieldName), new ConstantExprNode(likeFilter.getPattern()), new ConstantExprNode(likeFilter.getEscape())) : ImmutableList.of( new FieldExprNode(fieldName), new ConstantExprNode(likeFilter.getPattern())) ); }
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.LikeFilter other) { if (other == org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) return this; if (other.hasPattern()) { bitField0_ |= 0x00000001; pattern_ = other.pattern_; onChanged(); } if (other.hasEscape()) { bitField0_ |= 0x00000002; escape_ = other.escape_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.LikeFilter message) throws java.io.IOException { if(message.hasPattern()) output.writeString(1, message.getPattern(), false); if(message.hasEscape()) output.writeString(2, message.getEscape(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.LikeFilter message)
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.LikeFilter other) { if (other == org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) return this; if (other.hasPattern()) { bitField0_ |= 0x00000001; pattern_ = other.pattern_; onChanged(); } if (other.hasEscape()) { bitField0_ |= 0x00000002; escape_ = other.escape_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.LikeFilter message) throws java.io.IOException { if(message.hasPattern()) output.writeString(1, message.getPattern(), false); if(message.hasEscape()) output.writeString(2, message.getEscape(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.LikeFilter message)