Examples of fieldType()


Examples of cc.plural.jsonij.reflect.ClassProperty.ClassPropertyAccessor.fieldType()

            ClassPropertyAccessor accessor = property.getAccessor();
            if (accessor == null || !accessor.canAccess()) {
                continue;
            }

            if (accessor.fieldType()) {
                try {
                    Field field = property.getAccessor().getField();
                    value = marshalObjectFieldValue(field, o, cycleDetector);
                    if (value == null) {
                        continue;
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fieldType()

      // SEARCH FOR A CONFIGURED PROPERTY
      prop = record.getSchemaClass() != null ? record.getSchemaClass().getProperty(fieldName) : null;
      fieldClassName = getClassName(fieldValue);

      type = record.fieldType(fieldName);
      linkedClass = null;
      linkedType = null;

      if (prop != null) {
        // RECOGNIZED PROPERTY
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fieldType()

            linkedClass = prop.getLinkedClass();
            linkedType = prop.getLinkedType();

          } else {
            // SCHEMA PROPERTY NOT FOUND FOR THIS FIELD: TRY TO AUTODETERMINE THE BEST TYPE
            type = record.fieldType(fieldName);
            linkedClass = null;
            linkedType = null;

            // NOT FOUND: TRY TO DETERMINE THE TYPE FROM ITS CONTENT
            if (fieldValue != null && type == null) {
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fieldType()

      // SEARCH FOR A CONFIGURED PROPERTY
      prop = record.getSchemaClass() != null ? record.getSchemaClass().getProperty(f.getKey()) : null;
      fieldValue = f.getValue();
      fieldClassName = getClassName(fieldValue);

      type = record.fieldType(f.getKey());
      linkedClass = null;
      linkedType = null;

      if (prop != null) {
        // RECOGNIZED PROPERTY
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.fieldType()

      // SEARCH FOR A CONFIGURED PROPERTY
      prop = record.getSchemaClass() != null ? record.getSchemaClass().getProperty(fieldName) : null;
      fieldClassName = getClassName(fieldValue);

      type = record.fieldType(fieldName);
      linkedClass = null;
      linkedType = null;

      if (prop != null) {
        // RECOGNIZED PROPERTY
View Full Code Here

Examples of com.sematext.searchschemer.index.FieldAttributes.fieldType()

        .getResource("senseidb/test_senseidb_schema_small.xml").getFile()));
    assertEquals(1, reader.readFields().size());
    FieldAttributes field = reader.readFields().get(0);
    assertNotNull(field);
    assertEquals("contents", field.name());
    assertEquals(FieldType.TEXT, field.fieldType());
    assertTrue(field.store());
    assertTrue(field.analyzed());
    assertTrue(field.multiValued());
    assertTrue(field.indexed());
  }
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.fieldType()

        }catch(Exception ex) {
          // Failure to ignore
          log.info(ex.toString());
          val = "";
        }
        this.addCell(row, colunm++, val, ef.align(), ef.fieldType());
        sb.append(val + ", ");
      }
      log.debug("Write success: ["+row.getRowNum()+"] "+sb.toString());
    }
    return this;
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.DocumentFactory.fieldType()

    final int numberOfIndexedFields = indexedField.length;
    if ( numberOfIndexedFields == 0 ) throw new IllegalArgumentException( "You must specify at least one field" );
    final DocumentFactory factory = documentSequence.factory();
    final File tempDir = tempDirName == null ? null : new File( tempDirName );
    for ( int i = 0; i < indexedField.length; i++ )
      if ( factory.fieldType( indexedField[ i ] ) == DocumentFactory.FieldType.VIRTUAL && ( virtualDocumentResolver == null || virtualDocumentResolver[ i ] == null ) ) throw new IllegalArgumentException(
          "No resolver was associated with virtual field " + factory.fieldName( indexedField[ i ] ) );

    final int[] map = mapFile != null ? BinIO.loadInts( mapFile ) : null;

    final Scan[] scan = new Scan[ numberOfIndexedFields ]; // To scan textual content
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.DocumentFactory.fieldType()

    if ( documentSequence instanceof DocumentCollection ) pl.expectedUpdates = ( (DocumentCollection)documentSequence ).size();
 
   
    for ( int i = 0; i < numberOfIndexedFields; i++ ) {
      final String fieldName = factory.fieldName( indexedField[ i ] );
      switch ( factory.fieldType( indexedField[ i ] ) ) {
      case TEXT:
        scan[ i ] = new Scan( basename + '-' + fieldName, fieldName, completeness, termProcessor, map != null ? IndexingType.REMAPPED
            : IndexingType.STANDARD, 0, 0, bufferSize, builder, tempDir );
        break;
      case VIRTUAL:
View Full Code Here

Examples of it.unimi.dsi.mg4j.document.DocumentFactory.fieldType()

    while ( ( document = iterator.nextDocument() ) != null ) {
     
      long overallTerms = 0;
      if ( building ) builder.startDocument( document.title(), document.uri() );
      for ( int i = 0; i < numberOfIndexedFields; i++ ) {
        switch ( factory.fieldType( indexedField[ i ] ) ) {
        case TEXT:
          reader = (Reader)document.content( indexedField[ i ] );
          wordReader = document.wordReader( indexedField[ i ] );
          wordReader.setReader( reader );
          if ( building ) builder.startTextField();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.