synchronized (this) { if (!entries.containsKey(tn)) { entry = new ContentEntry(this, tn); entries.put(tn, entry);
public CSVFeatureSource(CSVDataStore datastore, Query query) { this(new ContentEntry(datastore, datastore.getTypeName()), query); }
public CSVFeatureSource(CSVDataStore datastore, Query query) { this(new ContentEntry(datastore, datastore.getTypeName()), query); }
ContentEntry entry = new ContentEntry(dataStore, new NameImpl("test")); ContentState state = entry.getState(transaction); new DiffTransactionState(state);
entry = new ContentEntry(this, name); entries.put(name, entry);
public GeogigDiffFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot, final Context oldContext, final ChangeType changeType) throws IOException { Preconditions.checkNotNull(typeName, "typeName"); Preconditions.checkNotNull(oldRoot, "oldRoot"); Preconditions.checkNotNull(changeType, "changeType"); final Name name = name(typeName); ensureEntry(name);// make sure the featuretype exists // can't reuse the content entry as it has the native schema cached, and the diff feature // source creates its own FeatureType with "old" and "new" SimpleFeature attributes final ContentEntry entry = new ContentEntry(this, name); GeogigDiffFeatureSource source = new GeogigDiffFeatureSource(entry, oldRoot, oldContext); source.setChangeType(changeType); return source; }
public GeogigDiffFeatureSource getDiffFeatureSource(final String typeName, final String oldRoot, final ChangeType changeType) throws IOException { Preconditions.checkNotNull(typeName, "typeName"); Preconditions.checkNotNull(oldRoot, "oldRoot"); Preconditions.checkNotNull(changeType, "changeType"); final Name name = name(typeName); ensureEntry(name);// make sure the featuretype exists // can't reuse the content entry as it has the native schema cached, and the diff feature // source creates its own FeatureType with "old" and "new" SimpleFeature attributes final ContentEntry entry = new ContentEntry(this, name); GeogigDiffFeatureSource source = new GeogigDiffFeatureSource(entry, oldRoot); source.setChangeType(changeType); return source; }