Examples of IndexManager


Examples of org.jboss.seam.wiki.core.search.IndexManager

    @In(required = false) @Out(required = false, scope = ScopeType.SESSION)
    public Map<String, Progress> indexingProgressMonitors;

    public void resetSearchIndex() throws Exception {

        IndexManager indexMgr = (IndexManager)Component.getInstance(IndexManager.class);
        Progress progress = new Progress(selectedIndexedEntity.getClazz().getName());
        indexMgr.rebuildIndex(selectedIndexedEntity.getClazz(), progress);

        if (indexingProgressMonitors == null) indexingProgressMonitors = new HashMap<String, Progress>();
        indexingProgressMonitors.put(selectedIndexedEntity.getClazz().getName(), progress);
    }
View Full Code Here

Examples of org.jquantlib.indexes.IndexManager

        else {
            final Handle<YieldTermStructure> termStructure = index_.termStructure();
            QL.require(termStructure != null , NULL_TERM_STRUCTURE)// QA:[RG]::verified
            final Date today = settings.evaluationDate();
            final Date fixing_date = fixingDate();
            final IndexManager indexManager = IndexManager.getInstance();
            if (fixing_date.lt(today)) {
                final double pastFixing = indexManager.get (index_.name()).get(fixing_date);
                QL.require(!Double.isNaN(pastFixing), "Missing fixing"); // TODO: message
                return pastFixing;
            }
            if (fixing_date.equals(today)) {
                try {
                    final double pastFixing = indexManager.get(index_.name()).get(fixing_date);
                    if (! Double.isNaN (pastFixing))
                        return pastFixing;
                } catch (final Exception e) {
                    ; // fall through and forecast
                }
View Full Code Here

Examples of org.lilyproject.hbaseindex.IndexManager

                              final HBaseTableFactory tableFactory, final IdGenerator idGenerator)
            throws IndexNotFoundException, IOException, InterruptedException {

        this.serializationUtil = new DerefMapSerializationUtil(idGenerator);

        final IndexManager indexManager = new IndexManager(hbaseConfiguration, tableFactory);

        IndexDefinition forwardIndexDef = new IndexDefinition(forwardIndexName(indexName));
        // For the record ID we use a variable length byte array field of which the first two bytes are fixed length
        // The first byte is actually the record identifier byte.
        // The second byte really is the first byte of the record id. We put this in the fixed length part
        // (safely because a record id should at least be a single byte long) because this prevents BCD encoding
        // on the first byte, thus making it easier to configure table splitting based on the original input.
        forwardIndexDef.addVariableLengthByteField("dependant_recordid", 2);
        forwardIndexDef.addByteField("dependant_vtag", DerefMapSerializationUtil.SCHEMA_ID_BYTE_LENGTH);
        forwardDerefIndex = indexManager.getIndex(owningRepoName, forwardIndexDef);

        IndexDefinition backwardIndexDef = new IndexDefinition(backwardIndexName(indexName));
        // Same remark as in the forward index.
        backwardIndexDef.addVariableLengthByteField("dependency_masterrecordid", 2);
        backwardIndexDef.addByteField("dependant_vtag", DerefMapSerializationUtil.SCHEMA_ID_BYTE_LENGTH);
        backwardIndexDef.addVariableLengthByteField("variant_properties_pattern");
        backwardDerefIndex = indexManager.getIndex(owningRepoName, backwardIndexDef);
    }
View Full Code Here

Examples of org.neo4j.graphdb.index.IndexManager

    @Test
    public void testLoadIndex() {
        db.beginTx();
        Map<String, String> config = TimelineNodeIndex.CONFIG;
        IndexManager indexMan = db.index();
        Index<Node> index = indexMan.forNodes("timeline1", config);
        assertNotNull(index);

    }
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsimple.v0_6.impl.IndexManager

   
    this.enableBboxBuilder = enableBboxBuilder;
    this.enableLinestringBuilder = enableLinestringBuilder;
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx, preferences);
    indexManager = new IndexManager(dbCtx, !enableBboxBuilder, !enableLinestringBuilder);
   
    nodeBuffer = new ArrayList<Node>();
    nodeTagBuffer = new ArrayList<DbFeature<Tag>>();
    wayBuffer = new ArrayList<Way>();
    wayTagBuffer = new ArrayList<DbFeature<Tag>>();
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.