热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.hibernate.search.exception.AssertionFailure类的使用及代码示例

本文整理了Java中org.hibernate.search.exception.AssertionFailure类的一些代码示例,展示了Assertion

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

AssertionFailure介绍

[英]Indicates failure of an assertion: a possible bug in Hibernate Search.
[中]表示断言失败:Hibernate搜索中可能存在错误。

代码示例

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure unknownEncodingType(final String encoding) {
final AssertionFailure result = new AssertionFailure(String.format(unknownEncodingType$str(), encoding));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidStringDateFieldInDocument = "HSEARCH000240: Unable to parse value '%2$s' of field '%1$s' into a Date";

代码示例来源:origin: hibernate/hibernate-search

public List getSealedQueue() {
if ( sealedQueue == null ) {
throw new AssertionFailure( "Access a WorkQueue which has not been sealed" );
}
this.sealedAndUnchanged = false;
return sealedQueue;
}

代码示例来源:origin: hibernate/hibernate-search

public T get() {
if ( !initialized ) {
throw new AssertionFailure( "A reference has been accessed before having been initialized." );
}
return value;
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure parametersShouldNotBeNull(final String arg0) {
final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), arg0));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
@Override

代码示例来源:origin: hibernate/hibernate-search

public static boolean cacheInstance(FilterCacheModeType type) {
switch ( type ) {
case NONE:
return false;
case INSTANCE_AND_DOCIDSETRESULTS:
return true;
case INSTANCE_ONLY:
return true;
default:
throw new AssertionFailure( "Unknown FilterCacheModeType:" + type );
}
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure unknownEncodingType(final String arg0) {
final AssertionFailure result = new AssertionFailure(String.format(unknownEncodingType$str(), arg0));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String invalidStringDateFieldInDocument = "HSEARCH000240: Unable to parse value '%2$s' of field '%1$s' into a Date";

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

@Override
public void checkSuccess(JsonObject bulkResponseItem) {
throw new AssertionFailure( "This method should never be called, because DeleteByQuery actions are not Bulkable" );
}
}

代码示例来源:origin: org.hibernate/hibernate-search-backend-elasticsearch

@Override
public final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException arg0) {
final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), arg0);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";

代码示例来源:origin: org.infinispan/infinispan-embedded-query

void initialize(T value) {
if ( this.value != null ) {
throw new AssertionFailure( "A reference has been initialized more than once." );
}
this.value = value;
this.initialized = true;
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure unknownResolution(final String resolution) {
final AssertionFailure result = new AssertionFailure(String.format(unknownResolution$str(), resolution));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String fieldBridgeNotAnInstanceof = "HSEARCH000144: FieldBridge passed in is not an instance of %1$s";

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

private JsonObject requireRoot(JsonObject root) {
if ( root == null ) {
throw new AssertionFailure( "A null root was encountered" );
}
else {
return root;
}
}
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException arg0) {
final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), arg0);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";

代码示例来源:origin: org.infinispan/infinispan-embedded-query

public List getSealedQueue() {
if ( sealedQueue == null ) {
throw new AssertionFailure( "Access a WorkQueue which has not been sealed" );
}
this.sealedAndUnchanged = false;
return sealedQueue;
}

代码示例来源:origin: org.hibernate/hibernate-search-backend-elasticsearch

@Override
public final AssertionFailure parametersShouldNotBeNull(final String arg0) {
final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), arg0));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
@Override

代码示例来源:origin: hibernate/hibernate-search

private JsonObject requireRoot(JsonObject root) {
if ( root == null ) {
throw new AssertionFailure( "A null root was encountered" );
}
else {
return root;
}
}
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure parametersShouldNotBeNull(final String parameterName) {
final AssertionFailure result = new AssertionFailure(String.format(parametersShouldNotBeNull$str(), parameterName));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
@Override

代码示例来源:origin: hibernate/hibernate-search

@Override
public boolean equals(Object obj) {
throw new AssertionFailure( "this type can not be compared reliably" );
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure assertionNotLoadingUTF8Charset(final UnsupportedEncodingException e) {
final AssertionFailure result = new AssertionFailure(String.format(assertionNotLoadingUTF8Charset$str()), e);
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String sourceDirectoryNotExisting = "HSEARCH000280: Source directory does not exist: '%1$s";

代码示例来源:origin: hibernate/hibernate-search

public static boolean cacheResults(FilterCacheModeType type) {
switch ( type ) {
case NONE:
return false;
case INSTANCE_AND_DOCIDSETRESULTS:
return true;
case INSTANCE_ONLY:
return false;
default:
throw new AssertionFailure( "Unknown FilterCacheModeType:" + type );
}
}
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

@Override
public final AssertionFailure unknownResolution(final String arg0) {
final AssertionFailure result = new AssertionFailure(String.format(unknownResolution$str(), arg0));
final StackTraceElement[] st = result.getStackTrace();
result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
return result;
}
private static final String fieldBridgeNotAnInstanceof = "HSEARCH000144: FieldBridge passed in is not an instance of %1$s";

推荐阅读
author-avatar
YOYO很快乐的傻瓜
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有