text: public FieldType(IndexableFieldType ref) {this.stored = ref.stored();this.tokenized = ref.tokenized();this.storeTermVectors = ref.storeTermVectors();this.storeTermVectorOffsets = ref.storeTermVectorOffsets();this.storeTermVectorPositions = ref.storeTermVectorPositions();this.storeTermVectorPayloads = ref.storeTermVectorPayloads();this.omitNorms = ref.omitNorms();this.indexOptions = ref.indexOptions();this.docValuesType = ref.docValuesType();this.dimensionCount = ref.pointDimensionCount();this.indexDimensionCount = ref.pointIndexDimensionCount();this.dimensionNumBytes = ref.pointNumBytes();if (ref.getAttributes() != null) {this.attributes = new HashMap<>(ref.getAttributes());}}