Examples of index()


Examples of com.hmsonline.virgil.index.Indexer.index()

  @Test
  public void testIndexing() throws Exception {
    Indexer indexer = new SolrIndexer(null);
    String json = "{\"ADDR1\":\"1234 Collin St.\",\"CITY\":\"Souderton\"}";
    indexer.index(COLUMN_FAMILY, KEY, json);

    json = "{\"ADDR1\":\"1234 Owen St.\",\"CITY\":\"Pottstown\"}";
    indexer.index(COLUMN_FAMILY, KEY + "2", json);
    // TODO: Need to figure out how to test w/o a live SOLR
    indexer.delete(COLUMN_FAMILY, KEY);
View Full Code Here

Examples of com.hmsonline.virgil.index.SolrIndexer.index()

  @Test
  public void testIndexing() throws Exception {
    Indexer indexer = new SolrIndexer(null);
    String json = "{\"ADDR1\":\"1234 Collin St.\",\"CITY\":\"Souderton\"}";
    indexer.index(COLUMN_FAMILY, KEY, json);

    json = "{\"ADDR1\":\"1234 Owen St.\",\"CITY\":\"Pottstown\"}";
    indexer.index(COLUMN_FAMILY, KEY + "2", json);
    // TODO: Need to figure out how to test w/o a live SOLR
    indexer.delete(COLUMN_FAMILY, KEY);
View Full Code Here

Examples of com.hp.hpl.jena.query.larq.IndexBuilderNode.index()

        Resource r4 = ResourceFactory.createResource("http://example/r4") ;
        Literal  lit1 = ResourceFactory.createPlainLiteral("doc") ;
       
        // ---- Index based on some external content.  Teh content can be any string of words.
       
        larqBuilder.index(r1, new StringReader("document")) ;   // Just to show a Stringreader is possible
        larqBuilder.index(r2, "document") ;
        larqBuilder.index(r3, "slideshow") ;
        larqBuilder.index(r4, "codebase") ;
        larqBuilder.index(lit1, "document") ;
       
View Full Code Here

Examples of com.impetus.kundera.annotations.Index.index()

                }
            }
        }
        else if (null != idx)
        {
            boolean isIndexable = idx.index();

            if (isIndexable)
            {
                metadata.setIndexable(isIndexable);
View Full Code Here

Examples of com.impetus.kundera.index.Indexer.index()

            wrapper.addIndex(
                    getHashKey(metadata.getTableName(),
                            getHashKey(((AbstractAttribute) metadata.getIdAttribute()).getJPAColumnName(), rowKey)),
                    getDouble(rowKey));

            indexer.index(metadata.getEntityClazz(), metadata, wrapper.getIndexes(), rowKey, null);
        }
    }

    /**
     * Deletes inverted indexes from redis.
View Full Code Here

Examples of com.liferay.portal.kernel.util.StringBundler.index()

            prevEntityName = entityName;
        }

        if (!indexProps.isEmpty()) {
            sb.setIndex(sb.index() - 1);
        }

        FileUtil.write(propsFile, sb.toString(), true);
    }
View Full Code Here

Examples of com.linkedin.data.schema.UnionDataSchema.index()

        // check if union
        boolean isUnion = fieldSchema.getDereferencedType() == DataSchema.Type.UNION;
        field.setOptional(false);
        if (isUnion) {
          UnionDataSchema unionSchema = (UnionDataSchema) fieldSchema;
          int nullIndex= unionSchema.index(NULL_DATA_SCHEMA.getUnionMemberKey());
          // check if union with null
          if (nullIndex != -1)
          {
            List<DataSchema> types = unionSchema.getTypes();
            if (types.size() == 2)
View Full Code Here

Examples of com.nr.sort.Indexx.index()

    // Test use of empty constructor and member function index() with pointers
    double a[][]={{3.0,2.0,1.0,5.0,4.0},{3.0,1.0,5.0,2.0,4.0},{5.0,2.0,4.0,1.0,3.0}}; // matrix with unsorted rows
    int b[][]={{2,1,0,4,3},{1,3,0,4,2},{3,1,4,2,0}};    // Hand-generated index array for each row
    Indexx myhack = new Indexx();
    for (i=0;i<3;i++) {
      myhack.index(a[i],5);
      for (j=0;j<5;j++) localflag = localflag || (myhack.indx[j] != b[i][j]);
    }
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Indexx: Member function index() did not work on array passed by pointer");
View Full Code Here

Examples of com.skyline.energy.annotation.GenericTable.index()

          }

        }
        if (GenericTable.class.equals(annotationType)) {
          GenericTable genericTable = (GenericTable) annotation;
          int order = genericTable.index();
          genericIndexes = CommonUtils.addElemToArray(genericIndexes, index, order);
        }
      }
    }
  }
View Full Code Here

Examples of com.spatial4j.core.shape.jts.JtsGeometry.index()

        //  from outer repaired shell; but we needn't try too hard.
        throw e;
      }
    }
    if (isAutoIndex())
      jtsGeom.index();
    return jtsGeom;
  }

  /**
   * Indicates the algorithm used to process JTS Polygons and JTS LineStrings for detecting dateline
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.