IGeometryCache

public interface IGeometryCache

A geometry cache for fast drawing and searching

Methods

addItem

IGeometryCacheItem addItem(long id, GeoEnvelope envelope)

Add item to cache

Параметры:
  • id – Feature identificator
  • envelope – Envelope

changeId

void changeId(long oldFeatureId, long newFeatureId)

clear

void clear()

Remove all items from cache

getAll

List<IGeometryCacheItem> getAll()

Get all items

Результат:List of all items

getItem

IGeometryCacheItem getItem(long featureId)

Return cache item by feature identificator

Параметры:
  • featureId – Feature identificator
Результат:

Cache item

isItemExist

boolean isItemExist(long featureId)

Check if item with specified id is exist in cache

Параметры:
  • featureId – Feature id
Результат:

true if item is exist or false

load

void load(File path)

removeItem

IGeometryCacheItem removeItem(long featureId)

Remove item from cache

Параметры:
  • featureId – Feature id of cache item
Результат:

removed item or null

save

void save(File path)

size

int size()

Return count of items

Результат:count of items