private Result(@Nonnull String name, @Nonnull BallColor color, @Nonnegative int ordinal, boolean complete) { this.name = name; this.color = color; this.ordinal = ordinal; this.completeBuild = complete; }
@Nullable public TableSizeDetails getTableSizeDetails(@Nonnull String tableName, @Nonnegative int timeoutMsec) throws InvalidConfigException { Preconditions.checkNotNull(tableName, "Table name should not be null");
protected final FluentFuture<List<T>> doFetch( final @Nullable Constraints.ConstraintHost criteria, final Constraints.Constraint ordering, final Constraints.Constraint exclusion, final @Nonnegative int skip, final @Nonnegative int limit) { return submit(new Callable<List<T>>() { @SuppressWarnings("resource")
/** * Set the offset for the query results * * @param offset row offset * @return the current object */ Q offset(@Nonnegative long offset);
Capture( @Nonnull InvocationBlockModifier invocationBlockModifier, @Nonnegative int opcode, @Nonnegative int varIndex, @Nullable String typeToCapture, @Nonnegative int parameterIndex ) { this.invocationBlockModifier = invocationBlockModifier; mw = invocationBlockModifier.getMethodWriter(); this.opcode = opcode; this.varIndex = varIndex; this.typeToCapture = typeToCapture; this.parameterIndex = parameterIndex; }
@Override public void storeLocalState( @Nonnegative long checkpointId, @Nullable TaskStateSnapshot localState) { Assert.assertEquals(tmSnapshot, localState); tmReported.set(true); } };
/** * Create a {@code this[index]} expression * * <p>Returns the element at the given index</p> * * @param index zero based index * @return element at index */ SimpleExpression<T> get(@Nonnegative int index);
/** * @param nIndex * The index to where the element should be inserted. * @param aNode * Child to add. May be <code>null</code>. * @return this */ @Nonnull THISTYPE addChild (@Nonnegative int nIndex, @Nullable CHILDTYPE aNode);
@VisibleForTesting RocksDBSerializedCompositeKeyBuilder( @Nonnull TypeSerializer<K> keySerializer, @Nonnull DataOutputSerializer keyOutView, @Nonnegative int keyGroupPrefixBytes, boolean keySerializerTypeVariableSized, @Nonnegative int afterKeyMark) { this.keySerializer = keySerializer; this.keyOutView = keyOutView; this.keyGroupPrefixBytes = keyGroupPrefixBytes; this.keySerializerTypeVariableSized = keySerializerTypeVariableSized; this.afterKeyMark = afterKeyMark; }
/** * Indexed access, gets the element at the given index * * @param index zero based index * @return this.get(index) * @see java.util.List#get(int) */ Q get(@Nonnegative int index); }
/** * For internal use only. */ protected Invocation(@Nullable Object invokedInstance, @Nonnull Object[] invokedArguments, @Nonnegative int invocationCount) { this.invokedInstance = invokedInstance; this.invokedArguments = invokedArguments; this.invocationCount = invocationCount; }
public RocksDBSerializedCompositeKeyBuilder( @Nonnull TypeSerializer<K> keySerializer, @Nonnegative int keyGroupPrefixBytes, @Nonnegative int initialSize) { this( keySerializer, new DataOutputSerializer(initialSize), keyGroupPrefixBytes, RocksDBKeySerializationUtils.isSerializerTypeVariableSized(keySerializer), 0); }
/** * Set the limit / max results for the query results * * @param limit max rows * @return the current object */ Q limit(@Nonnegative long limit);
/** * @return <code>null</code> if it is not possible to acquire the lock within the given <code>timeout</code>. Causes could be that another thread currently already holds the lock. */ @Nullable public Lock tryLock(@Nonnegative long time, @Nonnull TimeUnit unit) throws InterruptedException;
public RocksDBSnapshotStrategyBase( @Nonnull String description, @Nonnull RocksDB db, @Nonnull ResourceGuard rocksDBResourceGuard, @Nonnull TypeSerializer<K> keySerializer, @Nonnull LinkedHashMap<String, Tuple2<ColumnFamilyHandle, RegisteredStateMetaInfoBase>> kvStateInformation, @Nonnull KeyGroupRange keyGroupRange, @Nonnegative int keyGroupPrefixBytes, @Nonnull LocalRecoveryConfig localRecoveryConfig, @Nonnull CloseableRegistry cancelStreamRegistry) { super(description); this.db = db; this.rocksDBResourceGuard = rocksDBResourceGuard; this.keySerializer = keySerializer; this.kvStateInformation = kvStateInformation; this.keyGroupRange = keyGroupRange; this.keyGroupPrefixBytes = keyGroupPrefixBytes; this.localRecoveryConfig = localRecoveryConfig; this.cancelStreamRegistry = cancelStreamRegistry; }
@Nonnegative public int get() { return nonNegativeValue; }
private VolumeProduct(@Nonnull String id, @Nonnull String name, @Nonnull String description, @Nonnull VolumeType type, @Nonnegative int minIops, @Nonnegative int maxIops, @Nullable Float monthlyCost, @Nullable Float iopsCost) { this.providerProductId = id; this.name = name; this.description = description; this.type = type; this.minIops = minIops; this.maxIops = maxIops; monthlyGigabyteCost = monthlyCost; this.iopsCost = iopsCost; }
RocksDBCachingPriorityQueueSet( @Nonnegative int keyGroupId, @Nonnegative int keyGroupPrefixBytes, @Nonnull RocksDB db, @Nonnull ColumnFamilyHandle columnFamilyHandle, @Nonnull TypeSerializer<E> byteOrderProducingSerializer, @Nonnull DataOutputSerializer outputStream, @Nonnull DataInputDeserializer inputStream, @Nonnull RocksDBWriteBatchWrapper batchWrapper, @Nonnull OrderedByteArraySetCache orderedByteArraySetCache) { this.db = db; this.columnFamilyHandle = columnFamilyHandle; this.byteOrderProducingSerializer = byteOrderProducingSerializer; this.batchWrapper = batchWrapper; this.outputView = outputStream; this.inputView = inputStream; this.orderedCache = orderedByteArraySetCache; this.allElementsInCache = false; this.groupPrefixBytes = createKeyGroupBytes(keyGroupId, keyGroupPrefixBytes); this.seekHint = groupPrefixBytes; this.internalIndex = HeapPriorityQueueElement.NOT_CONTAINED; }
public class Bug2612987 { @Nonnegative private int nonNegativeValue = 1; @Nonnegative public int get() { return nonNegativeValue; } /* ******************** * Behavior at filing: TQ warning thrown for explicitly checked (and * annotated) parameter ******************** */ @DesireNoWarning("TQ") public void set(@CheckForSigned int possibleNegativeValue) { if (possibleNegativeValue >= 0) nonNegativeValue = possibleNegativeValue; } }
@Nonnull public CollectingJSCodeProvider addAtIndex (@Nonnegative final int nIndex, @Nullable final IJSCodeProvider aProvider) { if (aProvider != null) m_aList.add (nIndex, aProvider); return this; }