Java 类org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.TruncateOp 实例源码

项目:hadoop    文件:FSEditLog.java   
/**
 * Add truncate file record to edit log
 */
void logTruncate(String src, String clientName, String clientMachine,
                 long size, long timestamp, Block truncateBlock) {
  TruncateOp op = TruncateOp.getInstance(cache.get())
    .setPath(src)
    .setClientName(clientName)
    .setClientMachine(clientMachine)
    .setNewLength(size)
    .setTimestamp(timestamp)
    .setTruncateBlock(truncateBlock);
  logEdit(op);
}
项目:aliyun-oss-hadoop-fs    文件:FSEditLog.java   
/**
 * Add truncate file record to edit log
 */
void logTruncate(String src, String clientName, String clientMachine,
                 long size, long timestamp, Block truncateBlock) {
  TruncateOp op = TruncateOp.getInstance(cache.get())
    .setPath(src)
    .setClientName(clientName)
    .setClientMachine(clientMachine)
    .setNewLength(size)
    .setTimestamp(timestamp)
    .setTruncateBlock(truncateBlock);
  logEdit(op);
}
项目:big-c    文件:FSEditLog.java   
/**
 * Add truncate file record to edit log
 */
void logTruncate(String src, String clientName, String clientMachine,
                 long size, long timestamp, Block truncateBlock) {
  TruncateOp op = TruncateOp.getInstance(cache.get())
    .setPath(src)
    .setClientName(clientName)
    .setClientMachine(clientMachine)
    .setNewLength(size)
    .setTimestamp(timestamp)
    .setTruncateBlock(truncateBlock);
  logEdit(op);
}