Package com.thinkaurelius.titan.graphdb.internal

Examples of com.thinkaurelius.titan.graphdb.internal.ElementType


    public List<Object> query(final String indexName, final IndexQuery query, final BackendTransaction tx) {
        Preconditions.checkArgument(indexes.containsKey(indexName), "Index unknown or unconfigured: %s", indexName);
        if (isStandardIndex(indexName)) {
            Preconditions.checkArgument(query.getOrder().isEmpty(), "Standard index does not support ordering");
            List<Object> results = null;
            final ElementType resultType = getElementType(query.getStore());
            final Condition<?> condition = query.getCondition();

            if (condition instanceof And) {
                List<QueryUtil.IndexCall<Object>> retrievals = new ArrayList<QueryUtil.IndexCall<Object>>(condition.numChildren());
                for (final Condition<?> subcond : ((And<?>) condition).getChildren()) {
View Full Code Here


                @Override
                public KeyInformation get(String store, String key) {
                    Preconditions.checkState(transaction!=null,"Retriever has not been initialized");
                    long keyid = string2KeyId(key);
                    TitanKey titanKey = (TitanKey)transaction.getExistingType(keyid);
                    ElementType elementType = getElementType(store);
                    return getKeyInformation(titanKey,elementType.getElementType(),index);
                }

                @Override
                public KeyInformation.StoreRetriever get(final String store) {
                    final KeyInformation.IndexRetriever retriever = this;
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.graphdb.internal.ElementType

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.