Package org.hibernate.search.exception

Examples of org.hibernate.search.exception.AssertionFailure


            maxEditDistance,
            termContext.getPrefixLength()
        );
        break;
      default:
        throw new AssertionFailure( "Unknown approximation: " + termContext.getApproximation() );
    }
    return query;
  }
View Full Code Here


    else {
      try {
        terms = Helper.getAllTermsFromText( fieldName, localText, analyzer );
      }
      catch (IOException e) {
        throw new AssertionFailure( "IO exception while reading String stream??", e );
      }
    }
    return terms;
  }
View Full Code Here

    }
  }

  private void checkType(final LuceneWork work) {
    if ( work.getEntityClass() != managedType ) {
      throw new AssertionFailure( "Unexpected type" );
    }
  }
View Full Code Here

        break;
      case MILLISECOND:
        resolution = DateTools.Resolution.MILLISECOND;
        break;
      default:
        throw new AssertionFailure( "Unknown Resolution: " + hibResolution );
    }
    return resolution;
  }
View Full Code Here

    return documentBuildersContainedEntities.get( entityType );
  }

  @Override
  public void addClasses(Class<?>... classes) {
    throw new AssertionFailure( "Cannot add classes to an " + ImmutableSearchFactory.class.getName() );
  }
View Full Code Here

      case WITH_POSITIONS:
        return Field.TermVector.WITH_POSITIONS;
      case WITH_POSITION_OFFSETS:
        return Field.TermVector.WITH_POSITIONS_OFFSETS;
      default:
        throw new AssertionFailure( "Unexpected TermVector: " + vector );
    }
  }
View Full Code Here

    }
    return fieldName;
  }

  private static String raiseAssertionOnIncorrectAnnotation(Annotation fieldAnn) {
    throw new AssertionFailure( "Cannot instances other than @Field and @Spatial. Found: " + fieldAnn.getClass() );
  }
View Full Code Here

      case INSTANCE_AND_DOCIDSETRESULTS:
        return true;
      case INSTANCE_ONLY:
        return true;
      default:
        throw new AssertionFailure("Unknown FilterCacheModeType:" + type);
    }
  }
View Full Code Here

      case INSTANCE_AND_DOCIDSETRESULTS:
        return true;
      case INSTANCE_ONLY:
        return false;
      default:
        throw new AssertionFailure("Unknown FilterCacheModeType:" + type);
    }
  }
View Full Code Here

                Work work = new Work(value, extractedId, WorkType.DELETE);
                entityWork = new PerEntityWork( work );
                entityById.put( extractedId, entityWork );
                break;
              default:
                throw new AssertionFailure( "Unknown action type: " + operation );
            }
            // recursion starts
            documentBuilder.appendContainedInWorkForInstance( value, WorkPlan.this, depth );
          }
          // else nothing to do as it's being processed already
View Full Code Here

TOP

Related Classes of org.hibernate.search.exception.AssertionFailure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.