com.tinkerpop.blueprints.impls.tg.TinkerIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blueprints-core Show documentation
Show all versions of blueprints-core Show documentation
Core interfaces and utilities for Blueprints
The newest version!
package com.tinkerpop.blueprints.impls.tg;
import com.tinkerpop.blueprints.CloseableIterable;
import com.tinkerpop.blueprints.Element;
import com.tinkerpop.blueprints.Index;
import com.tinkerpop.blueprints.util.StringFactory;
import com.tinkerpop.blueprints.util.WrappingCloseableIterable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
class TinkerIndex implements Index, Serializable {
protected Map>> index = new HashMap>>();
protected final String indexName;
protected final Class indexClass;
public TinkerIndex(final String indexName, final Class indexClass) {
this.indexName = indexName;
this.indexClass = indexClass;
}
public String getIndexName() {
return this.indexName;
}
public Class getIndexClass() {
return this.indexClass;
}
public void put(final String key, final Object value, final T element) {
Map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy