new MVRTreeMap.Builder<Long>()); } else { if (id < 0) { new MVRTreeMap.Builder<Long>()); if (treeMap.isEmpty()) { needRebuild = true;
VersionedValueType valueType = new VersionedValueType(vt); MVRTreeMap.Builder<VersionedValue> mapBuilder = new MVRTreeMap.Builder<VersionedValue>(). valueType(valueType); spatialMap = db.getMvStore().getStore().openMap(mapName, mapBuilder); Transaction t = mvTable.getTransaction(null);
new MVRTreeMap.Builder<Long>()); } else { if (id < 0) { new MVRTreeMap.Builder<Long>()); if (treeMap.isEmpty()) { needRebuild = true;
VersionedValueType valueType = new VersionedValueType(vt); MVRTreeMap.Builder<VersionedValue> mapBuilder = new MVRTreeMap.Builder<VersionedValue>(). valueType(valueType); spatialMap = db.getMvStore().getStore().openMap(mapName, mapBuilder); Transaction t = mvTable.getTransaction(null);
/** * @param tbl Table. * @param idxName Index name. * @param cols Columns. * @param keyCol Key column. * @param valCol Value column. */ public GridH2SpatialIndex(Table tbl, String idxName, IndexColumn[] cols, int keyCol, int valCol) { super(keyCol, valCol); if (cols.length > 1) throw DbException.getUnsupportedException("can only do one column"); if ((cols[0].sortType & SortOrder.DESCENDING) != 0) throw DbException.getUnsupportedException("cannot do descending"); if ((cols[0].sortType & SortOrder.NULLS_FIRST) != 0) throw DbException.getUnsupportedException("cannot do nulls first"); if ((cols[0].sortType & SortOrder.NULLS_LAST) != 0) throw DbException.getUnsupportedException("cannot do nulls last"); initBaseIndex(tbl, 0, idxName, cols, IndexType.createNonUnique(false, false, true)); table = tbl; if (cols[0].column.getType() != Value.GEOMETRY) { throw DbException.getUnsupportedException("spatial index on non-geometry column, " + cols[0].column.getCreateSQL()); } // Index in memory store = MVStore.open(null); treeMap = store.openMap("spatialIndex", new MVRTreeMap.Builder<Long>()); }
new MVRTreeMap.Builder<Long>()); } else { if (id < 0) { new MVRTreeMap.Builder<Long>()); if (treeMap.isEmpty()) { needRebuild = true;
VersionedValueType valueType = new VersionedValueType(vt); MVRTreeMap.Builder<VersionedValue> mapBuilder = new MVRTreeMap.Builder<VersionedValue>(). valueType(valueType); spatialMap = db.getMvStore().getStore().openMap(mapName, mapBuilder); Transaction t = mvTable.getTransactionBegin();