/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public DbOrderedFeature(StoreReader sr, StoreClassRegister scr) { super(sr, scr); this.sequenceId = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public DbOrderedFeature(StoreReader sr, StoreClassRegister scr) { super(sr, scr); this.sequenceId = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public IntegerLongIndexElement(StoreReader sr, StoreClassRegister scr) { this(sr.readInteger(), sr.readLong()); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public IntegerLongIndexElement(StoreReader sr, StoreClassRegister scr) { this(sr.readInteger(), sr.readLong()); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public SampleStoreable(StoreReader sr, StoreClassRegister scr) { this.value = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public OsmUser(StoreReader sr, StoreClassRegister scr) { name = sr.readString(); id = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public OsmUser(StoreReader sr, StoreClassRegister scr) { name = sr.readString(); id = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers within the store. */ public Node(StoreReader sr, StoreClassRegister scr) { super(sr, scr); this.latitude = FixedPrecisionCoordinateConvertor.convertToDouble(sr.readInteger()); this.longitude = FixedPrecisionCoordinateConvertor.convertToDouble(sr.readInteger()); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers within the store. */ public Node(StoreReader sr, StoreClassRegister scr) { super(sr, scr); this.latitude = FixedPrecisionCoordinateConvertor.convertToDouble(sr.readInteger()); this.longitude = FixedPrecisionCoordinateConvertor.convertToDouble(sr.readInteger()); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public Way(StoreReader sr, StoreClassRegister scr) { super(sr, scr); int featureCount; featureCount = sr.readInteger(); wayNodes = new ArrayList<WayNode>(); for (int i = 0; i < featureCount; i++) { wayNodes.add(new WayNode(sr, scr)); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public Way(StoreReader sr, StoreClassRegister scr) { super(sr, scr); int featureCount; featureCount = sr.readInteger(); wayNodes = new ArrayList<WayNode>(); for (int i = 0; i < featureCount; i++) { wayNodes.add(new WayNode(sr, scr)); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public Relation(StoreReader sr, StoreClassRegister scr) { super(sr, scr); int featureCount; featureCount = sr.readInteger(); members = new ArrayList<RelationMember>(); for (int i = 0; i < featureCount; i++) { members.add(new RelationMember(sr, scr)); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public Relation(StoreReader sr, StoreClassRegister scr) { super(sr, scr); int featureCount; featureCount = sr.readInteger(); members = new ArrayList<RelationMember>(); for (int i = 0; i < featureCount; i++) { members.add(new RelationMember(sr, scr)); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ @SuppressWarnings("unchecked") public DbFeatureHistory(StoreReader sr, StoreClassRegister scr) { feature = (T) new GenericObjectReader(sr, scr).readObject(); version = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ @SuppressWarnings("unchecked") public DbFeatureHistory(StoreReader sr, StoreClassRegister scr) { feature = (T) new GenericObjectReader(sr, scr).readObject(); version = sr.readInteger(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public CommonEntityData(StoreReader sr, StoreClassRegister scr) { this( sr.readLong(), sr.readInteger(), readTimestampContainer(sr, scr), readOsmUser(sr, scr), sr.readInteger(), new TagCollectionImpl(sr, scr) ); int metaTagCount; metaTagCount = sr.readInteger(); metaTags = new LazyHashMap<String, Object>(); for (int i = 0; i < metaTagCount; i++) { metaTags.put(sr.readString(), sr.readString()); } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ public CommonEntityData(StoreReader sr, StoreClassRegister scr) { this( sr.readLong(), sr.readInteger(), readTimestampContainer(sr, scr), readOsmUser(sr, scr), sr.readInteger(), new TagCollectionImpl(sr, scr) ); int metaTagCount; metaTagCount = sr.readInteger(); metaTags = new LazyHashMap<String, Object>(); for (int i = 0; i < metaTagCount; i++) { metaTags.put(sr.readString(), sr.readString()); } }