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())) ); }
/** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public Builder clearEscape() { bitField0_ = (bitField0_ & ~0x00000002); escape_ = getDefaultInstance().getEscape(); onChanged(); 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)
/** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public Builder clearEscape() { bitField0_ = (bitField0_ & ~0x00000002); escape_ = getDefaultInstance().getEscape(); onChanged(); 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)