@InterfaceAudience.User @InterfaceStability.Evolving public class InterfaceAudience {
@InterfaceAudience.User @InterfaceStability.Unstable public class CarbonWriterBuilder {
@InterfaceAudience.User @InterfaceStability.Unstable public class Field {
@InterfaceAudience.User @InterfaceStability.Evolving public class CarbonReader<T> {
@InterfaceAudience.User @InterfaceStability.Evolving public class CarbonFileInputFormat<T> extends CarbonInputFormat<T> implements Serializable {
@InterfaceAudience.User @InterfaceStability.Evolving public class CarbonReaderBuilder {
@InterfaceAudience.User @InterfaceStability.Unstable public class Schema {
@InterfaceAudience.User public class JsonCarbonWriter extends CarbonWriter { private RecordWriter<NullWritable, ObjectArrayWritable> recordWriter; private TaskAttemptContext context;
@InterfaceAudience.User @InterfaceStability.Stable public class MalformedCarbonCommandException extends Exception {
@InterfaceAudience.User @org.apache.hadoop.classification.InterfaceStability.Evolving public class InterfaceStability {
@InterfaceAudience.User @InterfaceStability.Unstable public interface CarbonStore extends Closeable {
/** * Writer to write row data to carbondata file. Call {@link #builder()} to get * a build to create instance of writer. */ @InterfaceAudience.User @InterfaceStability.Unstable public abstract class CarbonWriter { /** * Write an object to the file, the format of the object depends on the * implementation. * Note: This API is not thread safe */ public abstract void write(Object object) throws IOException; /** * Flush and close the writer */ public abstract void close() throws IOException; /** * Create a {@link CarbonWriterBuilder} to build a {@link CarbonWriter} */ public static CarbonWriterBuilder builder() { return new CarbonWriterBuilder(); } }
/** * This exception will be thrown when Datamap related SQL statement is invalid */ @InterfaceAudience.User @InterfaceStability.Stable public class MalformedDataMapCommandException extends MalformedCarbonCommandException { /** * default serial version ID. */ private static final long serialVersionUID = 1L; public MalformedDataMapCommandException(String msg) { super(msg); } public MalformedDataMapCommandException(String msg, Throwable e) { super(msg, e); } }
/** * This exception will be thrown if datamap is not found when executing datamap * related SQL statement */ @InterfaceAudience.User @InterfaceStability.Stable public class NoSuchDataMapException extends MalformedCarbonCommandException { /** * default serial version ID. */ private static final long serialVersionUID = 1L; public NoSuchDataMapException(String dataMapName, String tableName) { super("Datamap with name " + dataMapName + " does not exist under table " + tableName); } public NoSuchDataMapException(String dataMapName) { super("Datamap with name " + dataMapName + " does not exist"); } }
/** * This exception will be thrown when failed to process metadata while executing * carbon command */ @InterfaceAudience.User @InterfaceStability.Evolving public class MetadataProcessException extends RuntimeException { public MetadataProcessException(String message) { super(message); } public MetadataProcessException(String message, Throwable cause) { super(message + ": " + cause.getMessage(), cause); } }
/** * This exception will be thrown when loading option is invalid for SQL * loading statement (LOAD DATA, INSERT INTO) */ @InterfaceAudience.User @InterfaceStability.Stable public class InvalidLoadOptionException extends MalformedCarbonCommandException { public InvalidLoadOptionException(String msg) { super(msg); } }
/** * This exception will be thrown when failed to acquire lock for table status metadata, * or re-try timed out */ @InterfaceAudience.User @InterfaceStability.Evolving public class TableStatusLockException extends RuntimeException { public TableStatusLockException(String msg) { super(msg); } }
@InterfaceAudience.User @InterfaceStability.Stable public class NoSuchStreamException extends Exception { /** * default serial version ID. */ private static final long serialVersionUID = 133241232L; public NoSuchStreamException(String streamName) { super("stream '" + streamName + "' not found"); } }