Class PathbeanKey

java.lang.Object
io.datarouter.model.field.BaseFieldSet<K>
io.datarouter.model.key.BaseKey<K>
io.datarouter.model.key.unique.BaseUniqueKey<PK>
io.datarouter.model.key.primary.BasePrimaryKey<PK>
io.datarouter.model.key.primary.base.BaseRegularPrimaryKey<PathbeanKey>
io.datarouter.storage.file.PathbeanKey
All Implemented Interfaces:
io.datarouter.model.field.FieldSet<PathbeanKey>, io.datarouter.model.key.entity.EntityKey<PathbeanKey>, io.datarouter.model.key.Key<PathbeanKey>, io.datarouter.model.key.primary.EntityPrimaryKey<PathbeanKey,PathbeanKey>, io.datarouter.model.key.primary.PrimaryKey<PathbeanKey>, io.datarouter.model.key.primary.RegularPrimaryKey<PathbeanKey>, io.datarouter.model.key.unique.UniqueKey<PathbeanKey>, io.datarouter.model.serialize.fielder.Fielder<PathbeanKey>, io.datarouter.model.serialize.fielder.PrimaryKeyFielder<PathbeanKey>, Comparable<io.datarouter.model.field.FieldSet<PathbeanKey>>

public class PathbeanKey extends io.datarouter.model.key.primary.base.BaseRegularPrimaryKey<PathbeanKey>
  • Constructor Details

    • PathbeanKey

      public PathbeanKey()
    • PathbeanKey

      public PathbeanKey(String path, String file)
  • Method Details

    • getFields

      public List<io.datarouter.model.field.Field<?>> getFields()
    • ofAllowEmptyFile

      public static PathbeanKey ofAllowEmptyFile(String pathAndFile)
    • of

      public static PathbeanKey of(String pathAndFile)
    • of

      public static PathbeanKey of(Path path)
    • of

      public static PathbeanKey of(Subpath subpath, String file)
    • isValidPath

      public static final boolean isValidPath(String path)
    • isValidFile

      public static final boolean isValidFile(String file, boolean allowEmptyFile)
    • getPathAndFile

      public String getPathAndFile()
    • getPath

      public String getPath()
    • getFile

      public String getFile()
    • findFirstPathSegment

      public Optional<String> findFirstPathSegment()
    • getPathSegments

      public List<String> getPathSegments()
    • getSubpath

      public Subpath getSubpath()
    • toString

      public String toString()
      Overrides:
      toString in class io.datarouter.model.field.BaseFieldSet<PathbeanKey>