Package com.twicedb.client.api
Class Indexable<I extends Indexable>
java.lang.Object
com.twicedb.client.api.Indexable<I>
- Type Parameters:
I
- the type that subclasses Indexable. For example, if class C subclasses Indexable, then `class Foo extends Indexable`
- All Implemented Interfaces:
IndexableI<I>
- Direct Known Subclasses:
Entitlement
An object that can be indexed. Users may read data only by index or by ObjectId. Therefore,
classes that will be queried by field must subclass Indexable.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final Gson
static final String
protected RefResolver
protected TypeToken
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
ensureCanProjectField
(String field, ProjectOp op) final boolean
ensureCanQueryField
(String field) final boolean
final Blob
getBlob()
final IndexedQuery<I>
final Tt
final ObjectId
final RefResolver
final TimesliceId
final Tt
final Tt
TypeToken
final Vt
final Vt
final int
hashCode()
final void
resetBackfillTt
(BackfillTt backfillTt) final void
setBackfillTt
(BackfillTt backfillTt) final void
setLastWrite
(Tt lastWrite) final void
setObjectId
(ObjectId objectId) void
final void
setTimesliceId
(TimesliceId timesliceId) final void
final void
setTtResolvedAt
(Tt ttResolvedAt) final void
setTypeToken
(TypeToken t) final void
final void
setVtResolvedAt
(Vt vtResolvedAt)
-
Field Details
-
FQN_KEY
- See Also:
-
gson
public static final Gson gson -
CLAZZ_KEY
- See Also:
-
t
protected volatile TypeToken t -
REF_RESOLVER_KEY
- See Also:
-
refResolver
-
-
Constructor Details
-
Indexable
public Indexable()
-
-
Method Details
-
getRefResolver
- Specified by:
getRefResolver
in interfaceIndexableI<I extends Indexable>
-
setRefResolver
-
ensureCanProjectField
-
ensureCanQueryField
-
getBlob
- Specified by:
getBlob
in interfaceIndexableI<I extends Indexable>
-
getFqn
- Specified by:
getFqn
in interfaceIndexableI<I extends Indexable>
-
getIndexedQuery
- Specified by:
getIndexedQuery
in interfaceIndexableI<I extends Indexable>
-
getTypeToken
public TypeToken getTypeToken()- Specified by:
getTypeToken
in interfaceIndexableI<I extends Indexable>
-
setTypeToken
public final void setTypeToken(TypeToken t) -
getObjectId
- Specified by:
getObjectId
in interfaceIndexableI<I extends Indexable>
-
generateObjectId
-
getLastWrite
- Specified by:
getLastWrite
in interfaceIndexableI<I extends Indexable>
-
getBackfillTt
- Specified by:
getBackfillTt
in interfaceIndexableI<I extends Indexable>
-
getTtFrom
- Specified by:
getTtFrom
in interfaceIndexableI<I extends Indexable>
-
getVtFrom
- Specified by:
getVtFrom
in interfaceIndexableI<I extends Indexable>
-
getTtResolvedAt
-
getVtResolvedAt
-
getTimesliceId
-
equals
-
hashCode
public final int hashCode() -
getEvent
-
getEventAsync
-