public static void setPinned ( FileSystem fs , AlluxioURI path , boolean pinned ) throws AlluxioException , IOException { SetAttributePOptions options = SetAttributePOptions . newBuilder ( ) . setPinned ( pinned ) . build ( ) ; fs . setAttribute ( path , options ) ; }
Sets pin state for the input path .