@Override public Datum[] getValues() { throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public Datum[] getValues(){ throw new TajoRuntimeException(new UnsupportedException()); } }
@SuppressWarnings("unused") public int markAccetablePlanPart(LogicalPlan plan) { throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public List<TajoMasterInfo> getMasters() throws IOException { throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public URI getStagingUri(OverridableConf context, String queryId, TableMeta meta) throws IOException { throw new TajoRuntimeException(new UnsupportedException()); } }
@SuppressWarnings("unused") public int markAccetablePlanPart(LogicalPlan plan) { throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public Datum[] getValues(){ throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public TupleRange[] getInsertSortRanges(OverridableConf queryContext, TableDesc tableDesc, Schema inputSchema, SortSpec[] sortSpecs, TupleRange dataRange) throws IOException { throw new TajoRuntimeException(new UnsupportedException()); }
@Override public List<TajoMasterInfo> getMasters() throws IOException { throw new TajoRuntimeException(new UnsupportedException()); } }
@Override public URI getStagingUri(OverridableConf context, String queryId, TableMeta meta) throws IOException { throw new TajoRuntimeException(new UnsupportedException()); } }
public static byte[] compress(CodecType type, byte[] uncompressed) throws IOException { switch (type) { case SNAPPY: return SnappyCodec.compress(uncompressed); default: throw new IOException(new UnsupportedException("Cannot support " + type)); } }
public static byte[] decompress(CodecType type, byte[] compressed) throws IOException { switch (type) { case SNAPPY: return SnappyCodec.uncompress(compressed); default: throw new IOException(new UnsupportedException("Cannot support " + type)); } }
public static byte[] compress(CodecType type, byte[] uncompressed) throws IOException { switch (type) { case SNAPPY: return SnappyCodec.compress(uncompressed); default: throw new IOException(new UnsupportedException("Cannot support " + type)); } }
public static int maxCompressedLength(CodecType type, int byteSize) throws IOException { switch (type) { case SNAPPY: return SnappyCodec.maxCompressedLength(byteSize); default: throw new IOException(new UnsupportedException("Cannot support " + type)); } }
public static int maxCompressedLength(CodecType type, int byteSize) throws IOException { switch (type) { case SNAPPY: return SnappyCodec.maxCompressedLength(byteSize); default: throw new IOException(new UnsupportedException("Cannot support " + type)); } }
/** * if {@link StorageProperty#isArbitraryPathAllowed} is true, * the storage allows arbitrary path accesses. In this case, the storage must provide the root URI. * * @see {@link StorageProperty#isArbitraryPathAllowed} * @return Root URI */ public URI getRootUri() { throw new TajoRuntimeException(new UnsupportedException(String.format("artibrary path '%s'", uri.toString()))); }
public static void validateSchema(Table tblSchema) { for (FieldSchema fieldSchema : tblSchema.getCols()) { String fieldType = fieldSchema.getType(); if (fieldType.equalsIgnoreCase("ARRAY") || fieldType.equalsIgnoreCase("STRUCT") || fieldType.equalsIgnoreCase("MAP")) { throw new TajoRuntimeException(new UnsupportedException("data type '" + fieldType.toUpperCase() + "'")); } } }
public void seek(long offset) throws IOException { if (isCompressed()) throw new TajoRuntimeException(new UnsupportedException()); lineReader.seek(offset); pos = offset; eof = false; }
public void seek(long offset) throws IOException { if (isCompressed()) throw new TajoRuntimeException(new UnsupportedException()); lineReader.seek(offset); pos = offset; eof = false; }
public TupleConverter initConverter() { switch (meta.getDataFormat()) { case BuiltinStorages.DRAW: return getDrawConverter(); case BuiltinStorages.RAW: return getRawConverter(); default: throw new TajoInternalError(new UnsupportedException()); } }