/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{OptimizedFeature as t}from"../../../../layers/graphics/OptimizedFeature.js";import{FeatureSetReaderJSON as e}from"./support/FeatureSetReaderJSON.js";class r{static{this.Shared=new r}getObjectId(t){return t.getObjectId()}getAttributes(t){return t.readAttributes()}getAttribute(t,e){return t.readAttribute(e)}getAttributeAsTimestamp(t,e){return t.readAttributeAsTimestamp(e)}cloneWithGeometry(r,a,i){const s=r.readAttributes(),d=new t(a,s,null,r.getObjectId(),r.getDisplayId()),u=e.fromOptimizedFeatures([d],r.metadata);return u.setIndex(0),u}getGeometry(t){return t.readGeometryWorldSpace()}getCentroid(t,e){return t.readCentroidForDisplay()}}export{r as FeatureStoreQueryAdapter};
