Class SanityCheckLayer

java.lang.Object
org.apache.opendal.Layer
org.apache.opendal.layer.SanityCheckLayer

public class SanityCheckLayer extends Layer
Detects duplicate entries during a listing. The first duplicate causes the listing to fail with OpenDALException.Code.Unexpected. A regular listing compares paths. A listing that includes versions or deleted entries compares path and version pairs, treating a missing version ID as a distinct value. The layer retains each entry's identity until the listing ends.
See Also:
  • Constructor Details

    • SanityCheckLayer

      public SanityCheckLayer()
      Creates a layer that checks listings for duplicates.
  • Method Details

    • layer

      protected long layer(long nativeOp)
      Specified by:
      layer in class Layer