org.elasticsearch.hadoop.util.Assert.hasNoText()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.elasticsearch.hadoop.util.Assert.hasNoText()方法的一些代码示例,展示了Assert.hasNoText()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.hasNoText()方法的具体详情如下:
包路径:org.elasticsearch.hadoop.util.Assert
类名称:Assert
方法名:hasNoText

Assert.hasNoText介绍

暂无

代码示例

代码示例来源:origin: elastic/elasticsearch-hadoop

public static void hasNoText(CharSequence sequence) {
  hasNoText(sequence, "[Assertion failed] - this CharSequence argument must be empty");
}

代码示例来源:origin: elastic/elasticsearch-hadoop

public SearchRequestBuilder excludeSource(boolean value) {
  if (value) {
    Assert.hasNoText(this.fields, String.format("_source section can't be excluded if fields [%s] are requested", this.fields));
  }
  this.excludeSource = value;
  return this;
}

代码示例来源:origin: org.elasticsearch/elasticsearch-spark-13

public static void hasNoText(CharSequence sequence) {
  hasNoText(sequence, "[Assertion failed] - this CharSequence argument must be empty");
}

代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop

public static void hasNoText(CharSequence sequence) {
  hasNoText(sequence, "[Assertion failed] - this CharSequence argument must be empty");
}

代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop-mr

public static void hasNoText(CharSequence sequence) {
  hasNoText(sequence, "[Assertion failed] - this CharSequence argument must be empty");
}

代码示例来源:origin: org.elasticsearch/elasticsearch-spark-13

public SearchRequestBuilder excludeSource(boolean value) {
  if (value) {
    Assert.hasNoText(this.fields, String.format("_source section can't be excluded if fields [%s] are requested", this.fields));
  }
  this.excludeSource = value;
  return this;
}

代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop-mr

public SearchRequestBuilder excludeSource(boolean value) {
  if (value) {
    Assert.hasNoText(this.fields, String.format("_source section can't be excluded if fields [%s] are requested", this.fields));
  }
  this.excludeSource = value;
  return this;
}

代码示例来源:origin: org.elasticsearch/elasticsearch-hadoop

public SearchRequestBuilder excludeSource(boolean value) {
  if (value) {
    Assert.hasNoText(this.fields, String.format("_source section can't be excluded if fields [%s] are requested", this.fields));
  }
  this.excludeSource = value;
  return this;
}

相关文章