Class ImmutableIndexLayer

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

public class ImmutableIndexLayer extends Layer
Provides an immutable in-memory listing index for services without native list support, such as HTTP. Listings use the supplied keys. Non-recursive listings infer directories from key prefixes.
  • Constructor Details

    • ImmutableIndexLayer

      public ImmutableIndexLayer(String... keys)
      Creates an index from a snapshot of the supplied keys. With no keys, listings are empty.
      Parameters:
      keys - paths relative to the operator root. Use a trailing slash to include a directory explicitly.
      Throws:
      NullPointerException - if the array or any key is null
  • Method Details

    • layer

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