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>(