public class SpeciesSource
extends org.gcube.data.tmf.impl.AbstractSource
| Modifier and Type | Field and Description |
|---|---|
protected ReentrantReadWriteLock |
lock |
protected List<org.gcube.data.tmf.api.Property> |
properties |
protected Lock |
readLock |
protected Lock |
writeLock |
| Constructor and Description |
|---|
SpeciesSource(String id,
SpeciesStore store,
List<org.gcube.data.tmf.api.Property> properties)
Creates an instance with a given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
cardinality() |
List<org.gcube.data.tmf.api.Property> |
properties() |
SpeciesStore |
store()
Returns the underlying tree store
|
File |
switchStore(File newStoreLocation) |
String |
toString() |
List<QName> |
types() |
creationTime, description, environment, equals, hashCode, id, isUser, lastUpdate, lifecycle, name, notifier, reader, setCardinality, setCreationTime, setDescription, setEnvironment, setLastUpdate, setLifecycle, setName, setNotifier, setReader, setUser, setWriter, writerprotected ReentrantReadWriteLock lock
protected Lock readLock
protected Lock writeLock
protected final List<org.gcube.data.tmf.api.Property> properties
public SpeciesSource(String id, SpeciesStore store, List<org.gcube.data.tmf.api.Property> properties)
id - the identifierpublic List<org.gcube.data.tmf.api.Property> properties()
public SpeciesStore store()
public File switchStore(File newStoreLocation) throws IOException
IOExceptionpublic Long cardinality()
cardinality in interface org.gcube.data.tmf.api.Sourcecardinality in class org.gcube.data.tmf.impl.AbstractSourcepublic String toString()
toString in class org.gcube.data.tmf.impl.AbstractSourceCopyright © 2017. All Rights Reserved.