Package com.foundationdb.server.store.format.protobuf.CustomOptions

Examples of com.foundationdb.server.store.format.protobuf.CustomOptions.ColumnOptions


        if (priorMessage != null) {
            for (FieldDescriptorProto field : priorMessage.getFieldList()) {
                FieldOptions options = field.getOptions();
                if ((options != null) &&
                    (options.hasExtension(ColumnOptions.fdbsql))) {
                    ColumnOptions coptions = options.getExtension(ColumnOptions.fdbsql);
                    if (coptions.getUuid().equals(columnOptions.getUuid())) {
                        priorField = field;
                        break;
                    }
                }
            }
View Full Code Here


        }
    }

    protected int priorDecimalScale() {
        if (priorField != null) {
            ColumnOptions columnOptions = priorField.getOptions().getExtension(ColumnOptions.fdbsql);
            if (columnOptions.hasDecimalScale()) {
                return columnOptions.getDecimalScale();
            }
        }
        return -1;
    }
View Full Code Here

        if (priorMessage != null) {
            for (FieldDescriptorProto field : priorMessage.getFieldList()) {
                FieldOptions options = field.getOptions();
                if ((options != null) &&
                    (options.hasExtension(ColumnOptions.fdbsql))) {
                    ColumnOptions coptions = options.getExtension(ColumnOptions.fdbsql);
                    if (coptions.hasNullForField() &&
                        (coptions.getNullForField() == forField)) {
                        priorField = field;
                        break;
                    }
                }
            }
View Full Code Here

                columnIndexedByUuid.put(column.getUuid().toString(), i);
            }
            FieldDescriptor[] nullFields = null;
            Map<FieldDescriptor,Integer> nullableIndexesByField = null;
            for (FieldDescriptor field : tableMessage.getFields()) {
                ColumnOptions options = field.getOptions().getExtension(ColumnOptions.fdbsql);
                if (options.hasUuid()) {
                    Integer columnIndex = columnIndexedByUuid.get(options.getUuid());
                    if (columnIndex != null) {
                        fields[columnIndex] = field;
                        columnIndexesByField.put(field, columnIndex);
                    }
                }
                else if (options.hasNullForField()) {
                    if (nullFields == null) {
                        nullFields = new FieldDescriptor[nfields];
                        nullableIndexesByField = new HashMap<>(nfields);
                    }
                    FieldDescriptor forField = tableMessage.findFieldByNumber(options.getNullForField());
                    Integer columnIndex = columnIndexesByField.get(forField);
                    nullFields[columnIndex] = field;
                    nullableIndexesByField.put(field, columnIndex);
                }
            }
View Full Code Here

        if (priorMessage != null) {
            for (FieldDescriptorProto field : priorMessage.getFieldList()) {
                FieldOptions options = field.getOptions();
                if ((options != null) &&
                    (options.hasExtension(ColumnOptions.fdbsql))) {
                    ColumnOptions coptions = options.getExtension(ColumnOptions.fdbsql);
                    if (coptions.getUuid().equals(columnOptions.getUuid())) {
                        priorField = field;
                        break;
                    }
                }
            }
View Full Code Here

            if (priorMessage != null) {
                for (FieldDescriptorProto field : priorMessage.getFieldList()) {
                    FieldOptions options = field.getOptions();
                    if ((options != null) &&
                        (options.hasExtension(ColumnOptions.fdbsql))) {
                        ColumnOptions coptions = options.getExtension(ColumnOptions.fdbsql);
                        if (coptions.getUuid().equals(columnOptions.getUuid())) {
                            priorField = field;
                            break;
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.store.format.protobuf.CustomOptions.ColumnOptions

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.