Class CreateBlockOptions


  • @PublicApi
    @NotThreadSafe
    public final class CreateBlockOptions
    extends java.lang.Object
    Method options for create a block.
    • Constructor Detail

      • CreateBlockOptions

        public CreateBlockOptions​(@Nullable
                                  java.lang.String alluxioPath,
                                  @Nullable
                                  java.lang.String medium,
                                  long initialBytes)
        Constructor.
        Parameters:
        alluxioPath - the alluxio path
        medium - the medium
        initialBytes - the initialBytes
    • Method Detail

      • getAlluxioPath

        @Nullable
        public java.lang.String getAlluxioPath()
        Returns:
        the alluxio path
      • getInitialBytes

        public long getInitialBytes()
        Returns:
        the initial bytes
      • getMedium

        @Nullable
        public java.lang.String getMedium()
        Returns:
        the medium
      • setAlluxioPath

        public CreateBlockOptions setAlluxioPath​(java.lang.String alluxioPath)
        Parameters:
        alluxioPath - the alluxio path
        Returns:
        the CreateBlockOptions
      • setInitialBytes

        public CreateBlockOptions setInitialBytes​(long initialBytes)
        Parameters:
        initialBytes - the intial bytes
        Returns:
        the CreateBlockOptions
      • setMedium

        public CreateBlockOptions setMedium​(java.lang.String medium)
        Parameters:
        medium - the medium
        Returns:
        the CreateBlockOptions
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object