Package com.gotometrics.orderly

Examples of com.gotometrics.orderly.RowKey


        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here


        if (correspondingIndexFieldDefinition == null) {
            throw new MalformedIndexEntryException("Index entry contains a field that is not part of " +
                    "the index definition: " + fieldName);

        } else if (fieldValue != null) {
            final RowKey rowKey = correspondingIndexFieldDefinition.asRowKey();
            if (!rowKey.getDeserializedClass().isAssignableFrom(fieldValue.getClass())) {
                throw new MalformedIndexEntryException("Index entry for field " + fieldName + " contains" +
                        " a value of an incorrect type. Expected: " + rowKey.getDeserializedClass() +
                        ", found: " + fieldValue.getClass().getName());
            }
        }
    }
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

            final Query.EqualsCondition eqCond = query.getCondition(fieldDef.getName());
            if (eqCond != null) {
                // there is an equality condition for this field
                checkQueryValueType(fieldDef, eqCond.getValue());
                final RowKey key = fieldDef.asRowKey();
                key.setTermination(Termination.MUST);
                fromKeyStructBuilder.add(key);
                fromKeyComponents.add(eqCond.getValue());
                usedConditionsCount++;
            } else if (rangeCond != null) {
                // no equality condition for this field, but there is a range condition
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

        }
    }

    private void checkQueryValueType(IndexFieldDefinition fieldDef, Object value) {
        if (value != null) {
            final RowKey rowKey = fieldDef.asRowKey();
            if (!rowKey.getDeserializedClass().isAssignableFrom(value.getClass())) {
                throw new MalformedQueryException("query for field " + fieldDef.getName() + " contains" +
                        " a value of an incorrect type. Expected: " + rowKey.getDeserializedClass() +
                        ", found: " + value.getClass().getName());
            }
        }
    }
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

        return rowKey;
    }

    @Override
    RowKey asRowKeyWithoutTermination() {
        final RowKey rowKey = asRowKey();
        rowKey.setTermination(Termination.SHOULD_NOT);
        return rowKey;
    }
View Full Code Here

TOP

Related Classes of com.gotometrics.orderly.RowKey

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.