@@ -80,19 +80,6 @@ default int size() {
8080 @ Nonnull
8181 KeySpacePath add (@ Nonnull String dirName , @ Nullable Object value );
8282
83- /**
84- * If this path was created via {@link KeySpace#pathFromKey(FDBRecordContext, Tuple)}, this returns
85- * any remaining portion of the input tuple that was not used to construct the path.
86- * @return the remaining portion of the original input tuple or <code>null</code>
87- *
88- * @deprecated use {@link KeySpace#resolveFromKey(FDBRecordContext, Tuple)} and
89- * {@link ResolvedKeySpacePath#getRemainder()} instead
90- */
91- @ API (API .Status .DEPRECATED )
92- @ Deprecated
93- @ Nullable
94- Tuple getRemainder ();
95-
9683 /**
9784 * Returns the parent of this entry or null if this is the root of the path.
9885 * @return the parent keyspace path
@@ -129,39 +116,11 @@ default int size() {
129116 * by the directory layer for this path entry's value.
130117 *
131118 * @param context the context in which to resolve the value
132- * @return future that will resolve to value to be store for this path element. Note that if the path
133- * was produced via {@link KeySpace#pathFromKeyAsync(FDBRecordContext, Tuple)} or {@link #listAsync(FDBRecordContext, String, byte[], ScanProperties)},
134- * then the future that is returned will have already been completed (i.e it is safe to retrieve the
135- * value without blocking)
119+ * @return future that will resolve to value to be store for this path element.
136120 */
137121 @ Nonnull
138122 CompletableFuture <PathValue > resolveAsync (@ Nonnull FDBRecordContext context );
139123
140- /**
141- * If this path was created via a call to <code>pathFromKey</code> or <code>listAsync</code> (or their blocking
142- * variants), this method may be used to determine what the underlying value was physically stored in the key.
143- *
144- * @return the value that was stored for the path element
145- * @throws IllegalStateException if this path element was not produced from one of the above method calls
146- *
147- * @deprecated use {@link KeySpace#resolveFromKey(FDBRecordContext, Tuple)} and
148- * {@link ResolvedKeySpacePath#getResolvedPathValue()} instead
149- */
150- @ API (API .Status .DEPRECATED )
151- @ Deprecated
152- @ Nonnull
153- PathValue getStoredValue ();
154-
155- /**
156- * Whether it is legal to ask this key space path for the underlying value stored in the key.
157- * @return true if it is legal to call {@link #getStoredValue()}.
158- * @see #getStoredValue()
159- * @deprecated use {@link KeySpace#resolveFromKey(FDBRecordContext, Tuple)} instead
160- */
161- @ API (API .Status .DEPRECATED )
162- @ Deprecated
163- boolean hasStoredValue ();
164-
165124 /**
166125 * Converts this path into a tuple. During this process the value that was provided for the directory, or
167126 * was resolved by the directory implementation, is validated to ensure that it is a valid type for the
@@ -202,7 +161,7 @@ default Tuple toTuple(@Nonnull FDBRecordContext context) {
202161 * Given a tuple from an FDB key, attempts to determine what sub-path through this directory the tuple
203162 * represents, returning a <code>ResolvedKeySpacePath</code> representing the leaf-most directory in the path.
204163 * <p>
205- * If entries remained in the tuple beyond the leaf directory, then {@link KeySpacePath #getRemainder()}
164+ * If entries remained in the tuple beyond the leaf directory, then {@link ResolvedKeySpacePath #getRemainder()}
206165 * can be used to fetch the remaining portion.
207166 * See also {@link KeySpace#resolveFromKeyAsync(FDBRecordContext, Tuple)} if you need to resolve from the root.
208167 * </p>
@@ -302,139 +261,6 @@ default void deleteAllData(@Nonnull FDBRecordContext context) {
302261 context .asyncToSync (FDBStoreTimer .Waits .WAIT_KEYSPACE_CLEAR , deleteAllDataAsync (context ));
303262 }
304263
305- /**
306- * For a given subdirectory from this path element, return a list of paths for all available keys in the FDB
307- * keyspace for that directory. For example, given the tree:
308- * <pre>
309- * root
310- * +- node
311- * +- leaf
312- * </pre>
313- * Performing a <code>listAsync</code> from a given <code>node</code>, will result in a list of paths, one for
314- * each <code>leaf</code> that is available within the <code>node</code>'s scope.
315- *
316- * <p>The listing is performed by reading the first key of the data type (and possibly constant value) for the
317- * subdirectory and, if a key is found, skipping to the next available value after the first one that was found,
318- * and so on, each time resulting in an additional <code>KeySpacePath</code> that is returned. In each case,
319- * the returned <code>KeySpacePath</code> may contain a remainder (see {@link #getRemainder()}) of the portion
320- * of the key tuple that was read.
321- *
322- * @param context the transaction in which to perform the listing
323- * @param subdirName the name of the subdirectory that is to be listed
324- * @param continuation an optional continuation from a previous list attempt
325- * @param scanProperties details for how the scan should be performed
326- * @return a list of fully qualified paths for each value contained within this directory
327- * @throws NoSuchDirectoryException if the subdirectory name provided does not exist
328- * @throws com.apple.foundationdb.record.RecordCoreException if a key found during the listing process did not correspond to
329- * the directory tree
330- *
331- * @deprecated use {@link #listSubdirectoryAsync(FDBRecordContext, String, byte[], ScanProperties)} instead
332- */
333- @ API (API .Status .DEPRECATED )
334- @ Deprecated
335- @ Nonnull
336- default RecordCursor <KeySpacePath > listAsync (@ Nonnull FDBRecordContext context ,
337- @ Nonnull String subdirName , @ Nullable byte [] continuation ,
338- @ Nonnull ScanProperties scanProperties ) {
339- return listAsync (context , subdirName , null , continuation , scanProperties );
340- }
341-
342- /**
343- * For a given subdirectory from this path element, return a list of paths for all available keys in the FDB
344- * keyspace for that directory. For example, given the tree:
345- * <pre>
346- * root
347- * +- node
348- * +- leaf
349- * </pre>
350- * Performing a <code>listAsync</code> from a given <code>node</code>, will result in a list of paths, one for
351- * each <code>leaf</code> that is available within the <code>node</code>'s scope.
352- *
353- * <p>The listing is performed by reading the first key of the data type (and possibly constant value) for the
354- * subdirectory and, if a key is found, skipping to the next available value after the first one that was found,
355- * and so on, each time resulting in an additional <code>KeySpacePath</code> that is returned. In each case,
356- * the returned <code>KeySpacePath</code> may contain a remainder (see {@link #getRemainder()}) of the portion
357- * of the key tuple that was read.
358- *
359- * @param context the transaction in which to perform the listing
360- * @param subdirName the name of the subdirectory that is to be listed
361- * @param range the range of the subdirectory values to be listed. All will be listed if it is <code>null</code>.
362- * If the directory is restricted to a specific constant value, it has to be <code>null</code>
363- * @param continuation an optional continuation from a previous list attempt
364- * @param scanProperties details for how the scan should be performed
365- * @return a list of fully qualified paths for each value contained within this directory
366- * @throws NoSuchDirectoryException if the subdirectory name provided does not exist
367- * @throws com.apple.foundationdb.record.RecordCoreException if a key found during the listing process did not correspond to
368- * the directory tree
369- *
370- * @deprecated use {@link #listSubdirectoryAsync(FDBRecordContext, String, ValueRange, byte[], ScanProperties)} instead
371- */
372- @ API (API .Status .DEPRECATED )
373- @ Deprecated
374- @ Nonnull
375- RecordCursor <KeySpacePath > listAsync (@ Nonnull FDBRecordContext context ,
376- @ Nonnull String subdirName ,
377- @ Nullable ValueRange <?> range ,
378- @ Nullable byte [] continuation ,
379- @ Nonnull ScanProperties scanProperties );
380-
381- /**
382- * Synchronous version of <code>listAsync</code>.
383- *
384- * @param context the transaction in which to perform the listing
385- * @param subdirName the name of the subdirectory that is to be listed
386- * @param scanProperties details for how the scan should be performed
387- * @return a list of fully qualified paths for each value contained within this directory
388- *
389- * @deprecated use {@link #listSubdirectory(FDBRecordContext, String, ScanProperties)} instead
390- */
391- @ API (API .Status .DEPRECATED )
392- @ Deprecated
393- @ Nonnull
394- default List <KeySpacePath > list (@ Nonnull FDBRecordContext context , @ Nonnull String subdirName ,
395- @ Nonnull ScanProperties scanProperties ) {
396- return context .asyncToSync (FDBStoreTimer .Waits .WAIT_KEYSPACE_LIST , listAsync (context , subdirName , null , scanProperties ).asList ());
397- }
398-
399- /**
400- * Synchronous version of <code>listAsync</code>.
401- *
402- * @param context the transaction in which to perform the listing
403- * @param subdirName the name of the subdirectory that is to be listed
404- * @param range the range of the subdirectory values to be listed. All will be listed if it is <code>null</code>.
405- * If the directory is restricted to a specific constant value, it has to be <code>null</code>
406- * @param continuation an optional continuation from a previous list attempt
407- * @param scanProperties details for how the scan should be performed
408- * @return a list of fully qualified paths for each value contained within this directory
409- *
410- * @deprecated use {@link #listSubdirectory(FDBRecordContext, String, ValueRange, byte[], ScanProperties)} instead
411- */
412- @ API (API .Status .DEPRECATED )
413- @ Deprecated
414- @ Nonnull
415- default List <KeySpacePath > list (@ Nonnull FDBRecordContext context , @ Nonnull String subdirName ,
416- @ Nullable ValueRange <?> range ,
417- @ Nullable byte [] continuation ,
418- @ Nonnull ScanProperties scanProperties ) {
419- return context .asyncToSync (FDBStoreTimer .Waits .WAIT_KEYSPACE_LIST , listAsync (context , subdirName , range , continuation , scanProperties ).asList ());
420- }
421-
422- /**
423- * Synchronous version of <code>listAsync</code> that performs a forward, serializable scan.
424- *
425- * @param context the transaction in which to perform the listing
426- * @param subdirName the name of the subdirectory that is to be listed
427- * @return a list of fully qualified paths for each value contained within this directory
428- *
429- * @deprecated use {@link #listSubdirectory(FDBRecordContext, String)} instead
430- */
431- @ API (API .Status .DEPRECATED )
432- @ Deprecated
433- @ Nonnull
434- default List <KeySpacePath > list (@ Nonnull FDBRecordContext context , @ Nonnull String subdirName ) {
435- return list (context , subdirName , ScanProperties .FORWARD_SCAN );
436- }
437-
438264 /**
439265 * For a given subdirectory from this path element, return a list of paths for all available keys in the FDB
440266 * keyspace for that directory. For example, given the tree:
0 commit comments