Package com.foundationdb.server

Examples of com.foundationdb.server.PersistitKeyValueTarget


    private static class New extends PersistitKeyAppender
    {
        public New(Key key, Object descForError) {
            super(key);
            fromRowDataSource = new RowDataValueSource();
            target = new PersistitKeyValueTarget(descForError);
            target.attach(this.key);
        }
View Full Code Here


        int firstSpatialColumn = Integer.MAX_VALUE;
        if (index.isSpatial()) {
            firstSpatialColumn = index.firstSpatialArgument();
        }
        key.clear();
        PersistitKeyValueTarget keyTarget = new PersistitKeyValueTarget(index.getIndexName());
        keyTarget.attach(key);
        for (int i = 0; i < columnCount; i++) {
            Object value = values.get(i);
            if (value instanceof byte[]) {
                appendRawSegment((byte[])value);
                continue;
View Full Code Here

                            CostModelFactory modelFactory) {
        this.schema = schema;
        this.properties = properties;
        model = modelFactory.newCostModel(schema, this);
        key = keyCreator.createKey();
        keyPTarget = new PersistitKeyValueTarget(getClass().getSimpleName());
        bytesComparator = UnsignedBytes.lexicographicalComparator();
    }
View Full Code Here

    }

    private static class ValueSortKeyTarget implements SortKeyTarget<ValueSource> {

        public ValueSortKeyTarget(Object descForError) {
            this.target = new PersistitKeyValueTarget(descForError);
        }
View Full Code Here

            // This is the truncate case, find all non-null referencing index entries.
            key.append(null);
            return false;
        }
        RowDataValueSource source = new RowDataValueSource();
        PersistitKeyValueTarget target = new PersistitKeyValueTarget(ConstraintHandler.class.getSimpleName());
        target.attach(key);
        boolean anyNull = false;
        for (Column column : columns) {
            source.bind(column.getFieldDef(), row);
            if (source.isNull()) {
                target.putNull();
                anyNull = true;
            }
            else {
                source.getType().writeCollating(source, target);
            }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.PersistitKeyValueTarget

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.