Class CacheBackendFile
java.lang.Object
org.aksw.jena_sparql_api.cache.file.CacheBackendFile
- All Implemented Interfaces:
CacheBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected longprotected Pathprotected booleanprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionCacheBackendFile(File parentFile, long lifespan) CacheBackendFile(Path parentFile, long lifespan, boolean useCompression, boolean isReadonly, boolean writeQuery) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidwrite(String service, String queryString, InputStream in)
-
Field Details
-
parentFile
-
lifespan
protected long lifespan -
useCompression
protected boolean useCompression -
isReadonly
protected boolean isReadonly -
writeQuery
protected boolean writeQuery
-
-
Constructor Details
-
CacheBackendFile
-
CacheBackendFile
public CacheBackendFile(Path parentFile, long lifespan, boolean useCompression, boolean isReadonly, boolean writeQuery)
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceCacheBackend
-
write
- Specified by:
writein interfaceCacheBackend
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceCacheBackend
-