public TupleRange(final SortSpec[] sortSpecs, final Tuple start, final Tuple end) { this.comp = new BaseTupleComparator(sortSpecsToSchema(sortSpecs), sortSpecs); // if there is only one value, start == end this.start = start; this.end = end; }
public org.apache.tajo.storage.StorageFragmentProtos.FileFragmentProto build() { org.apache.tajo.storage.StorageFragmentProtos.FileFragmentProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public void openAppender(int suffixId) throws IOException { Path actualFilePath = lastFileName; if (suffixId > 0) { actualFilePath = new Path(lastFileName + "_" + suffixId); } appender = ((FileTablespace) TablespaceManager.get(lastFileName.toUri())) .getAppender(meta, outSchema, actualFilePath); appender.enableStats(); appender.init(); }
private Scanner getNextScanner() throws IOException { if (iterator.hasNext()) { currentFragment = iterator.next(); currentScanner = TablespaceManager.getLocalFs().getScanner(meta, schema, currentFragment, target); currentScanner.init(); return currentScanner; } else { return null; } }
private Scanner getNextScanner() throws IOException { if (iterator.hasNext()) { currentFragment = iterator.next(); currentScanner = StorageManagerFactory.getStorageManager((TajoConf)conf).getScanner(meta, schema, currentFragment, target); currentScanner.init(); return currentScanner; } else { return null; } }
/** * <code>required string id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * <code>required string path = 2;</code> */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /**
public TupleRange(final SortSpec[] sortSpecs, final Tuple start, final Tuple end) { this.comp = new TupleComparator(sortSpecsToSchema(sortSpecs), sortSpecs); // if there is only one value, start == end this.start = start; this.end = end; }
public static Builder newBuilder(org.apache.tajo.storage.StorageFragmentProtos.FileFragmentProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static synchronized SeekableScanner getSeekableScanner( TajoConf conf, TableMeta meta, Schema schema, FileFragment fragment, Schema target) throws IOException { return (SeekableScanner)getStorageManager(conf, null, false).getScanner(meta, schema, fragment, target); }
public TupleRange(final SortSpec[] sortSpecs, final Tuple start, final Tuple end) { this.comp = new BaseTupleComparator(sortSpecsToSchema(sortSpecs), sortSpecs); // if there is only one value, start == end this.start = start; this.end = end; }
public org.apache.tajo.storage.StorageFragmentProtos.FileFragmentProto build() { org.apache.tajo.storage.StorageFragmentProtos.FileFragmentProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>required string id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /**
/** * <code>required string path = 2;</code> */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /**