Examples of INodeFileWithSnapshot


Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

      if (counter != null) {
        counter.increment();
      }
      final INodeFile file = new INodeFile(inodeId, localName, permissions,
          modificationTime, atime, blocks, replication, blockSize);
      return fileDiffs != null? new INodeFileWithSnapshot(file, fileDiffs)
          : underConstruction? new INodeFileUnderConstruction(
              file, clientName, clientMachine, null)
          : file;
    } else if (numBlocks == -1) {
      //directory
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

      if (counter != null) {
        counter.increment();
      }
      final INodeFile file = new INodeFile(inodeId, localName, permissions,
          modificationTime, atime, blocks, replication, blockSize);
      return fileDiffs != null? new INodeFileWithSnapshot(file, fileDiffs)
          : underConstruction? new INodeFileUnderConstruction(
              file, clientName, clientMachine, null)
          : file;
    } else if (numBlocks == -1) {
      //directory
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

  /** Replace a child {@link INodeFile} with an {@link INodeFileWithSnapshot}. */
  INodeFileWithSnapshot replaceChild4INodeFileWithSnapshot(
      final INodeFile child, final INodeMap inodeMap) {
    Preconditions.checkArgument(!(child instanceof INodeFileWithSnapshot),
        "Child file is already an INodeFileWithSnapshot, child=" + child);
    final INodeFileWithSnapshot newChild = new INodeFileWithSnapshot(child);
    replaceChildFile(child, newChild, inodeMap);
    return newChild;
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

  @Override
  public INodeFile recordModification(final Snapshot latest,
      final INodeMap inodeMap) throws QuotaExceededException {
    if (isInLatestSnapshot(latest)) {
      INodeFileWithSnapshot newFile = getParent()
          .replaceChild4INodeFileWithSnapshot(this, inodeMap)
          .recordModification(latest, inodeMap);
      return newFile;
    } else {
      return this;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

  @Override
  public INodeFile recordModification(final Snapshot latest,
      final INodeMap inodeMap) throws QuotaExceededException {
    if (isInLatestSnapshot(latest)) {
      INodeFileWithSnapshot newFile = getParent()
          .replaceChild4INodeFileWithSnapshot(this, inodeMap)
          .recordModification(latest, inodeMap);
      return newFile;
    } else {
      return this;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

            file, clientName, clientMachine, null);
        return fileDiffs == null ? fileUC :
          new INodeFileUnderConstructionWithSnapshot(fileUC, fileDiffs);
      } else {
        return fileDiffs == null ? file :
          new INodeFileWithSnapshot(file, fileDiffs);
      }
    } else if (numBlocks == -1) {
      //directory
     
      //read quotas
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.snapshot.INodeFileWithSnapshot

  /** Replace a child {@link INodeFile} with an {@link INodeFileWithSnapshot}. */
  INodeFileWithSnapshot replaceChild4INodeFileWithSnapshot(
      final INodeFile child, final INodeMap inodeMap) {
    Preconditions.checkArgument(!(child instanceof INodeFileWithSnapshot),
        "Child file is already an INodeFileWithSnapshot, child=" + child);
    final INodeFileWithSnapshot newChild = new INodeFileWithSnapshot(child);
    replaceChildFile(child, newChild, inodeMap);
    return newChild;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.