public SimpleFeatureBuilder(SimpleFeatureType featureType, FeatureFactory factory) { super(featureType, factory); this.featureType = featureType; this.factory = factory; if (featureType instanceof SimpleFeatureTypeImpl) { index = ((SimpleFeatureTypeImpl) featureType).index; } else { this.index = SimpleFeatureTypeImpl.buildIndex(featureType); } reset(); }
@SuppressWarnings("unchecked") public SimpleFeatureTypeImpl( Name name, List<AttributeDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description) { // Note intentional circumvention of generics type checking; // this is only valid if schema is not modified. super( name, (List) schema, defaultGeometry, isAbstract, restrictions, superType, description); index = buildIndex(this); descriptors = buildDescriptorIndex(this); }
} else { Map<String, Integer> generatedIndex = SimpleFeatureTypeImpl.buildIndex(featureType); featureType.getUserData().put("indexLookup", generatedIndex); return generatedIndex;
@SuppressWarnings("unchecked") public SimpleFeatureTypeImpl(Name name, List<AttributeDescriptor> schema, GeometryDescriptor defaultGeometry, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description) { // Note intentional circumvention of generics type checking; // this is only valid if schema is not modified. super(name, (List) schema, defaultGeometry, isAbstract, restrictions, superType, description); index = buildIndex(this); }
public SimpleFeatureBuilder(SimpleFeatureType featureType, FeatureFactory factory) { this.featureType = featureType; this.factory = factory; if(featureType instanceof SimpleFeatureTypeImpl) { index = ((SimpleFeatureTypeImpl) featureType).index; } else { this.index = SimpleFeatureTypeImpl.buildIndex(featureType); } reset(); }
Map<String,Integer> generatedIndex = SimpleFeatureTypeImpl.buildIndex(featureType); featureType.getUserData().put("indexLookup", generatedIndex ); return generatedIndex;