Package org.openstreetmap.osmosis.core.store

Examples of org.openstreetmap.osmosis.core.store.SingleClassObjectSerializationFactory


  /**
   * Creates a new instance.
   */
  public CompactPersistentNodeLocationStore() {
    nodeLocations = new IndexedObjectStore<CompactPersistentNodeLocation>(
        new SingleClassObjectSerializationFactory(CompactPersistentNodeLocation.class),
        "nodeLocation");
  }
View Full Code Here


  /**
   * Creates a new instance.
   */
  public CompactPersistentNodeLocationStore() {
    nodeLocations = new IndexedObjectStore<CompactPersistentNodeLocation>(
        new SingleClassObjectSerializationFactory(CompactPersistentNodeLocation.class),
        "nodeLocation");
  }
View Full Code Here

    uintComparator = new UnsignedIntegerComparator();
   
    // Create node store and indexes.
    nodeObjectStore = storeContainer.add(
      new RandomAccessObjectStore<Node>(
        new SingleClassObjectSerializationFactory(Node.class),
        fileManager.getNodeObjectFile()
      )
    );
    nodeObjectOffsetIndexWriter = storeContainer.add(
      new IndexStore<Long, LongLongIndexElement>(
      LongLongIndexElement.class,
      new ComparableComparator<Long>(),
      fileManager.getNodeObjectOffsetIndexFile()
      )
    );
    nodeTileIndexWriter = storeContainer.add(
      new IndexStore<Integer, IntegerLongIndexElement>(
      IntegerLongIndexElement.class,
      uintComparator,
      fileManager.getNodeTileIndexFile()
      )
    );
   
    // Create way store and indexes.
    wayObjectStore = storeContainer.add(
      new RandomAccessObjectStore<Way>(
        new SingleClassObjectSerializationFactory(Way.class),
        fileManager.getWayObjectFile()
      )
    );
    wayObjectOffsetIndexWriter = storeContainer.add(
      new IndexStore<Long, LongLongIndexElement>(
        LongLongIndexElement.class,
        new ComparableComparator<Long>(),
        fileManager.getWayObjectOffsetIndexFile()
      )
    );
    wayTileIndexWriter = storeContainer.add(new WayTileAreaIndex(fileManager));
    nodeWayIndexWriter = storeContainer.add(
      new IndexStore<Long, LongLongIndexElement>(
        LongLongIndexElement.class,
        new ComparableComparator<Long>(),
        fileManager.getNodeWayIndexFile()
      )
    );
   
    // Create relation store and indexes.
    relationObjectStore = storeContainer.add(
      new RandomAccessObjectStore<Relation>(
        new SingleClassObjectSerializationFactory(Relation.class),
        fileManager.getRelationObjectFile()
      )
    );
    relationObjectOffsetIndexWriter = storeContainer.add(
      new IndexStore<Long, LongLongIndexElement>(
View Full Code Here

    // If either complete ways or complete relations are required, then all data must be stored
    // during processing.
    storeEntities = completeWays || completeRelations;
    if (storeEntities) {
      allNodes = new SimpleObjectStore<NodeContainer>(
          new SingleClassObjectSerializationFactory(NodeContainer.class), "afn", true);
      allWays = new SimpleObjectStore<WayContainer>(
          new SingleClassObjectSerializationFactory(WayContainer.class), "afw", true);
      allRelations =
        new SimpleObjectStore<RelationContainer>(
            new SingleClassObjectSerializationFactory(RelationContainer.class), "afr", true);
    } else if (cascadingRelations) {
            allRelations =
        new SimpleObjectStore<RelationContainer>(
            new SingleClassObjectSerializationFactory(RelationContainer.class), "afr", true);
        }
  }
View Full Code Here

   *            The comparator to use for sorting.
   */
  public ChangeSorter(Comparator<ChangeContainer> comparator) {
    fileBasedSort =
      new FileBasedSort<ChangeContainer>(
          new SingleClassObjectSerializationFactory(ChangeContainer.class), comparator, true);
  }
View Full Code Here

  private ReleasableIterator<T> getFeaturelessEntity(String tablePrefix) {
    FileBasedSort<T> sortingStore;
   
    sortingStore =
      new FileBasedSort<T>(
        new SingleClassObjectSerializationFactory(entityMapper.getEntityClass()),
        new EntitySubClassComparator<T>(new EntityByTypeThenIdComparator()), true);
   
    try {
      String sql;
      SortingStoreRowMapperListener<T> storeListener;
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.store.SingleClassObjectSerializationFactory

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.