org.apache.accumulo.examples.simple.dirlist
Class Ingest

java.lang.Object
  extended by org.apache.accumulo.examples.simple.dirlist.Ingest

public class Ingest
extends Object

Recursively lists the files and directories under a given path, ingests their names and file info into one Accumulo table, indexes the file names in a separate table, and the file data into a third table. See docs/examples/README.dirlist for instructions.


Field Summary
static TypedValueCombiner.Encoder<Long> encoder
           
static String EXEC_CQ
           
static String HASH_CQ
           
static String HIDDEN_CQ
           
static String LASTMOD_CQ
           
static String LENGTH_CQ
           
 
Constructor Summary
Ingest()
           
 
Method Summary
static Mutation buildMutation(ColumnVisibility cv, String path, boolean isDir, boolean isHidden, boolean canExec, long length, long lastmod, String hash)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH_CQ

public static final String LENGTH_CQ
See Also:
Constant Field Values

HIDDEN_CQ

public static final String HIDDEN_CQ
See Also:
Constant Field Values

EXEC_CQ

public static final String EXEC_CQ
See Also:
Constant Field Values

LASTMOD_CQ

public static final String LASTMOD_CQ
See Also:
Constant Field Values

HASH_CQ

public static final String HASH_CQ
See Also:
Constant Field Values

encoder

public static final TypedValueCombiner.Encoder<Long> encoder
Constructor Detail

Ingest

public Ingest()
Method Detail

buildMutation

public static Mutation buildMutation(ColumnVisibility cv,
                                     String path,
                                     boolean isDir,
                                     boolean isHidden,
                                     boolean canExec,
                                     long length,
                                     long lastmod,
                                     String hash)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.