Examples of PathManager


Examples of com.cloudera.util.PathManager

    CompressionCodec codec = getCodec(conf, codecName);

    if (codec == null) {
      dstPath = new Path(path);
      hdfs = dstPath.getFileSystem(conf);
      pathManager = new PathManager(hdfs, dstPath.getParent(), dstPath.getName());
      writer = pathManager.open();
      LOG.info("Creating HDFS file: " + pathManager.getOpenPath());
      return;
    }

    Compressor cmp = codec.createCompressor();
    dstPath = new Path(path + codec.getDefaultExtension());
    hdfs = dstPath.getFileSystem(conf);
    pathManager = new PathManager(hdfs, dstPath.getParent(), dstPath.getName());
    writer = pathManager.open();
    try {
      writer = codec.createOutputStream(writer, cmp);
    } catch (NullPointerException npe) {
      // tries to find "native" version of codec, if that fails, then tries to
View Full Code Here

Examples of org.apache.chemistry.opencmis.jcr.PathManager

    private QueryTranslator queryTranslator;

    @Before
    public void setUp() throws Exception {
        JcrTypeManager typeManager = new JcrTypeManager();
        PathManager pathManager = new PathManager(PathManager.CMIS_ROOT_PATH);
        JcrTypeHandlerManager typeHandlerManager = new JcrTypeHandlerManager(pathManager, typeManager);
        typeHandlerManager.addHandler(new DefaultFolderTypeHandler());
        typeHandlerManager.addHandler(new DefaultDocumentTypeHandler());
        typeHandlerManager.addHandler(new DefaultUnversionedDocumentTypeHandler());
View Full Code Here

Examples of org.apache.chemistry.opencmis.jcr.PathManager

    private JcrTypeManager typeManager;

    @Before
    public void setUp() throws Exception {
        typeManager = new JcrTypeManager();
        PathManager pathManager = new PathManager(PathManager.CMIS_ROOT_PATH);
        JcrTypeHandlerManager typeHandlerManager = new JcrTypeHandlerManager(pathManager, typeManager);
        typeHandlerManager.addHandler(new DefaultFolderTypeHandler());
        typeHandlerManager.addHandler(new DefaultDocumentTypeHandler());
        typeHandlerManager.addHandler(new DefaultUnversionedDocumentTypeHandler());
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.jcr.PathManager

    @Override
    public void init( Map<String, String> parameters ) {
        typeManager = createTypeManager();
        readConfiguration(parameters);
        PathManager pathManager = new PathManager(mountPath);
        JcrTypeHandlerManager typeHandlerManager = createTypeHandlerManager(pathManager, typeManager);
        jcrRepositories = loadRepositories(pathManager, typeHandlerManager);
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.jcr.PathManager

        jcrRepositories = loadRepositories(pathManager, typeHandlerManager);
    }

    public void init() {
        typeManager = createTypeManager();
        PathManager pathManager = new PathManager("/");
        JcrTypeHandlerManager typeHandlerManager = createTypeHandlerManager(pathManager, typeManager);
        jcrRepositories = loadRepositories(pathManager, typeHandlerManager);
    }
View Full Code Here

Examples of org.apache.flume.formatter.output.PathManager

  private PathManager pathController;
  private volatile boolean shouldRotate;

  public RollingFileSink() {
    counterGroup = new CounterGroup();
    pathController = new PathManager();
    shouldRotate = false;
  }
View Full Code Here

Examples of org.apache.flume.formatter.output.PathManager

  private volatile boolean shouldRotate;

  public RollingFileSink() {
    formatter = new TextDelimitedOutputFormatter();
    counterGroup = new CounterGroup();
    pathController = new PathManager();
    shouldRotate = false;
  }
View Full Code Here

Examples of org.apache.flume.formatter.output.PathManager

  private PathManager pathController;
  private volatile boolean shouldRotate;

  public RollingFileSink() {
    pathController = new PathManager();
    shouldRotate = false;
  }
View Full Code Here

Examples of org.apache.flume.formatter.output.PathManager

  private PathManager pathController;
  private volatile boolean shouldRotate;

  public RollingFileSink() {
    pathController = new PathManager();
    shouldRotate = false;
  }
View Full Code Here

Examples of org.apache.flume.formatter.output.PathManager

  private volatile boolean shouldRotate;

  public RollingFileSink() {
    formatter = new TextDelimitedOutputFormatter();
    counterGroup = new CounterGroup();
    pathController = new PathManager();
    shouldRotate = false;
  }
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.