@NotThreadSafe
public static final class StoreValuesQuery.Builder
extends Object
implements Externalizable
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StoreValuesQuery |
build()
Builds a store values query.
|
StoreValuesQuery.Builder |
clear()
Clears this builder.
|
StoreValuesQuery.Builder |
clearPointUUID()
Clears the point UUID for the query.
|
StoreValuesQuery.Builder |
clearSync()
Sets the sync object.
|
StoreValuesQuery.Builder |
copyFrom(StoreValuesQuery storeValuesQuery)
Copies the values from a store values query.
|
boolean |
isIntervalValid()
Asks if the interval is valid.
|
boolean |
limit(int limit)
Limits the generation of responses.
|
void |
readExternal(ObjectInput input) |
static Optional<StoreValuesQuery.Mark> |
readMark(ObjectInput input)
Reads in an external representation of a mark.
|
boolean |
restore(Points points)
Restores the reference to the point's definition.
|
StoreValuesQuery.Builder |
setAfter(DateTime after)
Sets the after time.
|
StoreValuesQuery.Builder |
setAll(boolean all)
Sets the all values within an interval.
|
StoreValuesQuery.Builder |
setAt(DateTime at)
Sets the time for this query.
|
StoreValuesQuery.Builder |
setBefore(DateTime before)
Sets the before time.
|
StoreValuesQuery.Builder |
setCount(boolean count)
Sets the 'count' indicator.
|
StoreValuesQuery.Builder |
setExtrapolated(boolean extrapolated)
Sets the extrapolated indicator.
|
StoreValuesQuery.Builder |
setIncludeDeleted(boolean includeDeleted)
Sets the include deleted mode.
|
StoreValuesQuery.Builder |
setInterpolated(boolean interpolated)
Sets the interpolated indicator.
|
StoreValuesQuery.Builder |
setInterval(TimeInterval interval)
Sets the time interval.
|
StoreValuesQuery.Builder |
setLimit(int limit)
Sets the limit.
|
StoreValuesQuery.Builder |
setMarked(boolean marked)
Sets the marked indicator.
|
StoreValuesQuery.Builder |
setNormalized(boolean normalized)
Sets the normalized indicator.
|
StoreValuesQuery.Builder |
setNotAfter(DateTime notAfter)
Sets the not after time.
|
StoreValuesQuery.Builder |
setNotBefore(DateTime notBefore)
Sets the not before time.
|
StoreValuesQuery.Builder |
setNotNull(boolean notNull)
Sets the not null indicator.
|
StoreValuesQuery.Builder |
setPoint(Point point)
Sets the point.
|
StoreValuesQuery.Builder |
setPointUUID(UUID pointUUID)
Sets the point UUID for the query.
|
StoreValuesQuery.Builder |
setPolatorTimeLimit(Optional<ElapsedTime> polatorTimeLimit)
Sets the polator time limit.
|
StoreValuesQuery.Builder |
setPull(boolean pull)
Sets the pull mode indicator.
|
StoreValuesQuery.Builder |
setReverse(boolean reverse)
Sets the reverse mode indicator.
|
StoreValuesQuery.Builder |
setRows(int rows)
Sets the rows.
|
StoreValuesQuery.Builder |
setSync(Sync sync)
Sets the sync object.
|
StoreValuesQuery.Builder |
setSynced(boolean synced)
Enables sync.
|
StoreValuesQuery.Builder |
unlink()
Unlinks from metadata.
|
void |
writeExternal(ObjectOutput output) |
static void |
writeMark(Optional<StoreValuesQuery.Mark> optionalMark,
ObjectOutput output)
Writes out an external representation of a mark.
|
@Nonnull @CheckReturnValue public static Optional<StoreValuesQuery.Mark> readMark(@Nonnull ObjectInput input) throws IOException
input - The external representation.IOException - When an I/O error occurs.public static void writeMark(@Nonnull
Optional<StoreValuesQuery.Mark> optionalMark,
@Nonnull
ObjectOutput output)
throws IOException
optionalMark - The optional mark.output - The external representation.IOException - When an I/O error occurs.@Nonnull @CheckReturnValue public StoreValuesQuery build()
@Nonnull public StoreValuesQuery.Builder clear()
@Nonnull public StoreValuesQuery.Builder clearPointUUID()
@Nonnull public StoreValuesQuery.Builder clearSync()
@Nonnull public StoreValuesQuery.Builder copyFrom(@Nonnull StoreValuesQuery storeValuesQuery)
storeValuesQuery - The store values query.@CheckReturnValue public boolean isIntervalValid()
@CheckReturnValue public boolean limit(int limit)
limit - The limit.public void readExternal(ObjectInput input)
throws IOException
readExternal in interface ExternalizableIOException@CheckReturnValue public boolean restore(Points points)
This is used after deserialization.
points - The object from which to get the points definition.@Nonnull public StoreValuesQuery.Builder setAfter(@Nonnull DateTime after)
after - The after time.@Nonnull public StoreValuesQuery.Builder setAll(boolean all)
all - The all values within an interval.@Nonnull public StoreValuesQuery.Builder setAt(@Nonnull DateTime at)
at - The time.@Nonnull public StoreValuesQuery.Builder setBefore(@Nonnull DateTime before)
before - The before time.@Nonnull public StoreValuesQuery.Builder setCount(boolean count)
count - The new value for the indicator.@Nonnull public StoreValuesQuery.Builder setExtrapolated(boolean extrapolated)
extrapolated - The extrapolated indicator.@Nonnull public StoreValuesQuery.Builder setIncludeDeleted(boolean includeDeleted)
Including deleted values disables ordering of the results of the query.
includeDeleted - The include deleted mode.@Nonnull public StoreValuesQuery.Builder setInterpolated(boolean interpolated)
interpolated - The interpolated indicator.@Nonnull public StoreValuesQuery.Builder setInterval(@Nonnull TimeInterval interval)
interval - The time interval.@Nonnull public StoreValuesQuery.Builder setLimit(int limit)
limit - The limit.@Nonnull public StoreValuesQuery.Builder setMarked(boolean marked)
marked - The marked indicator.@Nonnull public StoreValuesQuery.Builder setNormalized(boolean normalized)
normalized - The normalized indicator.@Nonnull public StoreValuesQuery.Builder setNotAfter(@Nonnull DateTime notAfter)
notAfter - The not after time.@Nonnull public StoreValuesQuery.Builder setNotBefore(@Nonnull DateTime notBefore)
notBefore - The not before time.@Nonnull public StoreValuesQuery.Builder setNotNull(boolean notNull)
notNull - The not null indicator.@Nonnull public StoreValuesQuery.Builder setPoint(@Nonnull Point point)
point - The point.@Nonnull public StoreValuesQuery.Builder setPointUUID(@Nonnull UUID pointUUID)
pointUUID - The point UUID.@Nonnull public StoreValuesQuery.Builder setPolatorTimeLimit(@Nonnull Optional<ElapsedTime> polatorTimeLimit)
This time limit establishes the maximum elapsed time between an interpolated or extrapolated value and the actual values used for their computation. A default value may be specified for a point with the "PolatorTimeLimit" parameter; this default value can be overriden by this time limit property.
polatorTimeLimit - The optional polator time limit.@Nonnull public StoreValuesQuery.Builder setPull(boolean pull)
pull - The pull mode indicator.@Nonnull public StoreValuesQuery.Builder setReverse(boolean reverse)
reverse - The reverse mode indicator.@Nonnull public StoreValuesQuery.Builder setRows(int rows)
rows - The rows.@Nonnull public StoreValuesQuery.Builder setSync(@Nonnull Sync sync)
sync - The sync object.@Nonnull public StoreValuesQuery.Builder setSynced(boolean synced)
synced - True to enable.@Nonnull @CheckReturnValue public StoreValuesQuery.Builder unlink()
public void writeExternal(ObjectOutput output)
throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2003-2019 Serge Brisson. All Rights Reserved.