Skip to content

Commit

Permalink
Use filesystem sub-package
Browse files Browse the repository at this point in the history
  • Loading branch information
gpang committed Aug 10, 2015
1 parent df2c62f commit f261923
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
Expand Up @@ -33,6 +33,12 @@
import tachyon.master.Dependency;
import tachyon.master.next.block.BlockId;
import tachyon.master.next.block.BlockWorkerInfo;
import tachyon.master.next.filesystem.DependencyMap;
import tachyon.master.next.filesystem.FileBlockInfo;
import tachyon.master.next.filesystem.Inode;
import tachyon.master.next.filesystem.InodeDirectory;
import tachyon.master.next.filesystem.InodeFile;
import tachyon.master.next.filesystem.InodeTree;
import tachyon.thrift.BlockInfoException;
import tachyon.thrift.ClientBlockInfo;
import tachyon.thrift.ClientDependencyInfo;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import java.util.HashMap;
import java.util.HashSet;
Expand All @@ -29,7 +29,7 @@
import tachyon.Constants;
import tachyon.master.Dependency;

class DependencyMap {
public class DependencyMap {
private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);

private final Map<Integer, Dependency> mDependencyMap;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import java.io.IOException;
import java.util.ArrayList;
Expand Down Expand Up @@ -63,7 +63,7 @@ public static long computeBlockId(int inodeId, int blockIndex) {
* @param blockIndex
* @param length must be smaller than 2^31 (i.e., 2GB)
*/
FileBlockInfo(InodeFile inodeFile, int blockIndex, long length) {
public FileBlockInfo(InodeFile inodeFile, int blockIndex, long length) {
Preconditions.checkArgument((length >> 31) == 0, "length must be smaller than 2^31");
mInodeFile = inodeFile;
mBlockIndex = blockIndex;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import tachyon.thrift.ClientFileInfo;

Expand Down
Expand Up @@ -13,10 +13,8 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand All @@ -26,9 +24,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.google.common.collect.ImmutableSet;

import tachyon.Constants;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import java.util.ArrayList;
import java.util.List;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* the License.
*/

package tachyon.master.next;
package tachyon.master.next.filesystem;

import java.util.ArrayList;
import java.util.HashMap;
Expand All @@ -38,7 +38,7 @@
import tachyon.util.FormatUtils;
import tachyon.util.io.PathUtils;

class InodeTree {
public class InodeTree {
private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);

private InodeDirectory mRoot;
Expand Down

0 comments on commit f261923

Please sign in to comment.