code
stringlengths
73
34.1k
label
stringclasses
1 value
public void addMergePath(PathImpl path) { if (! (path instanceof MergePath)) { // Need to normalize so directory paths ends with a "./" // XXX: //if (path.isDirectory()) // path = path.lookup("./"); ArrayList<PathImpl> pathList = ((MergePath) _root)._pathList; if (! pathList...
java
public PathImpl fsWalk(String userPath, Map<String,Object> attributes, String path) { ArrayList<PathImpl> pathList = getMergePaths(); if (! userPath.startsWith("/") || pathList.size() == 0) return new MergePath((MergePath) _root, userPath, attributes, path); ...
java
public ArrayList<PathImpl> getResources(String pathName) { ArrayList<PathImpl> list = new ArrayList<PathImpl>(); String pathname = _pathname; // XXX: why was this here? if (pathname.startsWith("/")) pathname = "." + pathname; ArrayList<PathImpl> pathList = ((MergePath) _root)._pathList; ...
java
public String []list() throws IOException { ArrayList<String> list = new ArrayList<String>(); String pathname = _pathname; // XXX:?? if (pathname.startsWith("/")) pathname = "." + pathname; ArrayList<PathImpl> pathList = ((MergePath) _root)._pathList; for (int i = 0; i < pathList.size(...
java
@Override public PersistentDependency createDepend() { ArrayList<PathImpl> pathList = ((MergePath) _root)._pathList; if (pathList.size() == 1) return (PersistentDependency) pathList.get(0).createDepend(); DependencyList dependList = new DependencyList(); for (int i = 0; i < pathList.size();...
java
public JType getGenericType() { SignatureAttribute sigAttr = (SignatureAttribute) getAttribute("Signature"); if (sigAttr != null) { return getClassLoader().parseParameterizedType(sigAttr.getSignature()); } return getType(); }
java
public JAnnotation []getDeclaredAnnotations() { if (_annotations == null) { Attribute attr = getAttribute("RuntimeVisibleAnnotations"); if (attr instanceof OpaqueAttribute) { byte []buffer = ((OpaqueAttribute) attr).getValue(); try { ByteArrayInputStream is = new ByteArrayI...
java
public JavaField export(JavaClass cl, JavaClass target) { JavaField field = new JavaField(); field.setName(_name); field.setDescriptor(_descriptor); field.setAccessFlags(_accessFlags); target.getConstantPool().addUTF8(_name); target.getConstantPool().addUTF8(_descriptor); for (int i = 0;...
java
@Override public void write(Buffer buffer, boolean isEnd) throws IOException { if (_s == null) { buffer.free(); return; } try { _needsFlush = true; if (buffer.isDirect()) { _totalWriteBytes += buffer.length(); _s.write(buffer.direct()); re...
java
private boolean accept(SocketBar socket) { PortTcp port = port(); try { while (! port().isClosed()) { // Thread.interrupted(); if (_serverSocket.accept(socket)) { if (port.isClosed()) { socket.close(); return false; } else if (i...
java
private int writeShort(String value, int offset, int end) throws IOException { int ch; OutputStreamWithBuffer os = _os; byte []buffer = os.buffer(); int bOffset = os.offset(); end = Math.min(end, offset + buffer.length - bOffset); for (; offset < end && (ch = value.charAt(offset...
java
public boolean write(byte []buf1, int off1, int len1, byte []buf2, int off2, int len2, boolean isEnd) throws IOException { if (len1 == 0) { write(buf2, off2, len2, isEnd); return true; } else return false; }
java
public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDel...
java
public String notifyRulesReady(Agreement slaAgreement) { Entity content = Entity.entity("", MediaType.TEXT_PLAIN); Invocation invocation = getJerseyClient().target(getEndpoint() + "/seaclouds/commands/rulesready?agreementId=" + slaAgreement.getAgreementId()).request() .header("Accept", M...
java
public Agreement getAgreement(String agreementId) { return getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildGet().invoke().readE...
java
public Agreement getAgreementByTemplateId(String slaAgreementTemplateId) { return getJerseyClient().target(getEndpoint() + "/seaclouds/commands/fromtemplate?templateId=" + slaAgreementTemplateId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", Medi...
java
public GuaranteeTermsStatus getAgreementStatus(String agreementId) { return getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId + "/guaranteestatus").request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) ...
java
public List<Violation> getGuaranteeTermViolations(Agreement agreement, GuaranteeTerm guaranteeTerm) { String json = getJerseyClient().target(getEndpoint() + "/violations?agreementId=" + agreement.getAgreementId() + "&guaranteeTerm=" + guaranteeTerm.getName()).request() .header("Accept", MediaTyp...
java
@Override public T readObject(InRawH3 is, InH3Amp in) { T bean = newInstance(); in.ref(bean); FieldSerBase[] fields = _fields; int size = fields.length; for (int i = 0; i < size; i++) { fields[i].read(bean, is, in); } return bean; }
java
public InvocationRouter<InvocationBaratine> buildRouter(WebApp webApp) { // find views InjectorAmp inject = webApp.inject(); buildViews(inject); ArrayList<RouteMap> mapList = new ArrayList<>(); ServicesAmp manager = webApp.services(); ServiceRefAmp serviceRef = manager.newService(new Rout...
java
public void splitQueryAndUnescape(I invocation, byte []rawURIBytes, int uriLength) throws IOException { for (int i = 0; i < uriLength; i++) { if (rawURIBytes[i] == '?') { i++; // XXX: should be the host encoding? ...
java
public void splitQuery(I invocation, String rawURI) throws IOException { int p = rawURI.indexOf('?'); if (p > 0) { invocation.setQueryString(rawURI.substring(p + 1)); rawURI = rawURI.substring(0, p); } invocation.setRawURI(rawURI); String uri = normalizeUri(rawURI); ...
java
public void normalizeURI(I invocation, String rawURI) throws IOException { invocation.setRawURI(rawURI); String uri = normalizeUri(rawURI); invocation.setURI(uri); }
java
private static String normalizeUriEscape(byte []rawUri, int i, int len, String encoding) throws IOException { ByteToChar converter = allocateConverter(); // XXX: make this configurable if (encoding == null) { encoding = "utf-8"; } try { ...
java
private static int scanUriEscape(ByteToChar converter, byte []rawUri, int i, int len) throws IOException { int ch1 = i < len ? (rawUri[i++] & 0xff) : -1; if (ch1 == 'u') { ch1 = i < len ? (rawUri[i++] & 0xff) : -1; int ch2 = i < len ? (rawUri[i++] & 0xff) : ...
java
private static int toHex(int ch) { if (ch >= '0' && ch <= '9') return ch - '0'; else if (ch >= 'a' && ch <= 'f') return ch - 'a' + 10; else if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10; else return -1; }
java
public static PathImpl getLocalWorkDir(ClassLoader loader) { PathImpl path = _localWorkDir.get(loader); if (path != null) return path; path = getTmpWorkDir(); _localWorkDir.setGlobal(path); try { path.mkdirs(); } catch (java.io.IOException e) { } return path; ...
java
public static void setLocalWorkDir(PathImpl path, ClassLoader loader) { try { if (path instanceof MergePath) path = ((MergePath) path).getWritePath(); if (path instanceof MemoryPath) { String pathName = path.getPath(); path = WorkDir.getTmpWorkDir().lookup("qa/" + pathName); ...
java
@Override public <S, T> Convert<S, T> converter(Class<S> source, Class<T> target) { ConvertFrom<S> convertType = getOrCreate(source); return convertType.converter(target); }
java
private <S> ConvertManagerTypeImpl<S> getOrCreate(Class<S> sourceType) { ConvertManagerTypeImpl<S> convertType = (ConvertManagerTypeImpl<S>) _convertMap.get(sourceType); if (convertType != null) { return convertType; } convertType = new ConvertManagerTypeImpl<>(sourceType); ...
java
protected int nextOffset() { int opcode = getCode()[_offset] & 0xff; int length = OP_LEN[opcode]; switch (opcode) { case GOTO: case GOTO_W: case RET: case IRETURN: case LRETURN: case FRETURN: case DRETURN: case ARETURN: case RETURN: case ATHROW: return -...
java
public boolean isBranch() { switch (getOpcode()) { case IFNULL: case IFNONNULL: case IFNE: case IFEQ: case IFLT: case IFGE: case IFGT: case IFLE: case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPGE: case IF_ICMPGT: case IF_ICMPLE: case IF_ACMP...
java
public ConstantPoolEntry getConstantArg() { switch (getOpcode()) { case LDC: return _javaClass.getConstantPool().getEntry(getByteArg()); case LDC_W: return _javaClass.getConstantPool().getEntry(getShortArg()); default: throw new UnsupportedOperationException(); } }
java
public int getShort(int offset) { int b0 = getCode()[offset + 0] & 0xff; int b1 = getCode()[offset + 1] & 0xff; return (short) ((b0 << 8) + b1); }
java
public int getInt(int offset) { byte []code = getCode(); int b0 = code[offset + 0] & 0xff; int b1 = code[offset + 1] & 0xff; int b2 = code[offset + 2] & 0xff; int b3 = code[offset + 3] & 0xff; return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3; }
java
private void analyze(Analyzer analyzer, boolean allowFlow, IntArray pendingTargets, IntArray completedTargets) throws Exception { pending: while (pendingTargets.size() > 0) { int pc = pendingTargets.pop(); if (allowFlow) { ...
java
public static ServerBartender currentSelfServer() { NetworkSystem clusterService = current(); if (clusterService == null) throw new IllegalStateException(L.l("{0} is not available in this context", NetworkSystem.class.getSimpleName())); return clus...
java
public ConnectionTcp findConnectionByThreadId(long threadId) { for (PortTcp listener : getPorts()) { ConnectionTcp conn = listener.findConnectionByThreadId(threadId); if (conn != null) return conn; } return null; }
java
private void updateClusterRoot() { ArrayList<ServerHeartbeat> serverList = new ArrayList<>(); for (ServerHeartbeat server : _serverSelf.getCluster().getServers()) { serverList.add(server); } Collections.sort(serverList, (x,y)->compareClusterRoot(x,y)); UpdatePodBuilder builder...
java
void onJoinStart() { //long now = CurrentTime.getCurrentTime(); ArrayList<UpdatePod> updatePods = new ArrayList<>(); updateClusterRoot(); /* for (UpdatePod updatePod : _podUpdateMap.values()) { if (updatePod.getSequence() == 0) { updatePods.add(new UpdatePod(updatePod, now)); ...
java
private int keyColumnStart() { int offset = 0; for (int i = 0; i < _columns.length; i++) { if (offset == _keyStart) { return i; } offset += _columns[i].length(); } throw new IllegalStateException(); }
java
private int keyColumnEnd() { int offset = 0; for (int i = 0; i < _columns.length; i++) { if (offset == _keyStart + _keyLength) { return i; } offset += _columns[i].length(); } if (offset == _keyStart + _keyLength) { return _columns.length; } ...
java
public void autoFill(RowCursor cursor) { for (Column col : columns()) { col.autoFill(cursor.buffer(), 0); } }
java
void readStream(InputStream is, byte[] buffer, int offset, RowCursor cursor) throws IOException { for (Column column : columns()) { column.readStream(is, buffer, offset, cursor); } for (Column column : blobs()) { column.readStreamBlob(is, buffer, o...
java
int readCheckpoint(ReadStream is, byte[] blockBuffer, int rowOffset, int blobTail) throws IOException { int rowLength = length(); if (rowOffset < blobTail) { return -1; } for (Column column : columns()) { blobTai...
java
public void validate(byte[] buffer, int rowOffset, int rowHead, int blobTail) { for (Column column : columns()) { column.validate(buffer, rowOffset, rowHead, blobTail); } }
java
static void incrementKey(byte[] key) { for (int i = key.length - 1; i >= 0; i--) { int v = key[i] & 0xff; if (v < 0xff) { key[i] = (byte) (v + 1); return; } key[i] = 0; } }
java
static void decrementKey(byte[] key) { for (int i = key.length - 1; i >= 0; i--) { int v = key[i] & 0xff; if (v > 0) { key[i] = (byte) (v - 1); return; } key[i] = (byte) 0xff; } }
java
public void setThreadMax(int max) { if (max == _threadMax) { // avoid update() overhead if unchanged return; } if (max <= 0) { max = DEFAULT_THREAD_MAX; } if (max < _idleMin) throw new ConfigException(L.l("IdleMin ({0}) must be less than ThreadMax ({1})", _idleMin...
java
public void setIdleMax(int max) { if (max == _idleMax) { // avoid update() overhead if unchanged return; } if (max <= 0) { max = DEFAULT_IDLE_MAX; } if (_threadMax < max) throw new ConfigException(L.l("IdleMax ({0}) must be less than ThreadMax ({1})", max, _threadM...
java
public boolean isIdleExpire() { if (! _lifecycle.isActive()) return true; long now = currentTimeActual(); long idleExpire = _threadIdleExpireTime.get(); int idleCount = _idleCount.get(); // if idle queue is full and the expire is set, return and exit if (_idleMin < idleCo...
java
public static ReadStreamOld open(String string) { VfsStringReader ss = new VfsStringReader(string); ReadStreamOld rs = new ReadStreamOld(ss); try { rs.setEncoding("UTF-8"); } catch (Exception e) { } //rs.setPath(new NullPath("string")); return rs; }
java
public static void clearFreeLists() { while (_freeStandard.allocate() != null) { } while (_freeSmall.allocate() != null) { } while (_freeLarge.allocate() != null) { } }
java
@Override @InService(PageServiceImpl.class) void writeImpl(TableKelp table, PageServiceImpl pageServiceImpl, TableWriterService readWrite, SegmentStream sOut, long oldSequence, int saveLength, int saveTail) { ...
java
@Override @InService(TableWriterService.class) public Page writeCheckpoint(TableKelp table, OutSegment sOut, long oldSequence, int saveLength, int saveTail, int saveS...
java
private PageLeafImpl compact(TableKelp table) { long now = CurrentTime.currentTime() / 1000; Set<PageLeafEntry> entries = fillEntries(table); ArrayList<BlockLeaf> blocks = new ArrayList<>(); BlockLeaf block = new BlockLeaf(getId()); blocks.add(block); Row row = table.row();...
java
@InService(SegmentServiceImpl.class) private Type writeCheckpointFull(TableKelp table, OutputStream os, int saveTail) throws IOException { os.write(getMinKey()); os.write(getMaxKey()); /* db/2310 if (Arrays.equals(getMinK...
java
@InService(PageServiceImpl.class) static PageLeafImpl readCheckpointFull(TableKelp table, PageServiceImpl pageActor, InputStream is, int pid, int nextPid...
java
void readCheckpointDelta(TableKelp table, PageServiceImpl pageActor, ReadStream is, int length) throws IOException { Row row = table.row(); // int keyLength = row.getKeyLength(); int removeLength = row.removeLength()...
java
void validate(TableKelp table) { if (! table.isValidate()) { return; } Row row = table.row(); for (BlockLeaf block : _blocks) { block.validateBlock(row); } }
java
void addDelta(TableKelp db, int offset, int length) { if (_delta == null) { _delta = new int[2 * db.getDeltaMax()]; } _delta[_deltaTail++] = offset; _delta[_deltaTail++] = length; }
java
public String[] fetchAndPlan(String aam) throws ParsingException, IOException { String offerings = this.fetchOfferings(); return this.plan(aam, offerings); }
java
public String[] plan(String aam, String uniqueOfferingsTosca) throws ParsingException, IOException { log.info("Planning for aam: \n" + aam); //Get offerings log.info("Getting Offeing Step: Start"); Map<String, Pair<NodeTemplate, String>> offerings = parseOfferings(uniqueOfferingsTosca)...
java
public String[] fetchAndRePlan(String aam, List<String> modulesToFilter) throws ParsingException, IOException { String offerings = this.fetchOfferings(); return this.rePlan(aam, offerings, modulesToFilter); }
java
private String fetchOfferings() { DiscovererFetchallResult allOfferings = null; try { String discovererOutput = discovererClient.getRequest("fetch_all", Collections.EMPTY_LIST); ObjectMapper mapper = new ObjectMapper(); allOfferings = mapper.readValue(discovererOutput...
java
ModuleMarshal marshal(Class<?> sourceType, Class<?> targetType, Class<?> declaredTargetType) { ImportKey key = new ImportKey(sourceType, targetType); ModuleMarshal marshal = _marshalMap.get(key); if (marshal != null) { return marshal; } ...
java
public static int getBiggestPrime(long value) { for (int i = PRIMES.length - 1; i >= 0; i--) { if (PRIMES[i] <= value) { return PRIMES[i]; } } return 2; }
java
public void setCertificateChainFile(Path certificateChainFile) { try { _certificateChainFile = certificateChainFile.toRealPath().toString(); } catch (IOException e) { throw new RuntimeException(e); } }
java
public void setCACertificatePath(Path caCertificatePath) { try { _caCertificatePath = caCertificatePath.toRealPath().toString(); } catch (IOException e) { throw new RuntimeException(e); } }
java
public void setCACertificateFile(Path caCertificateFile) { try { _caCertificateFile = caCertificateFile.toRealPath().toString(); } catch (IOException e) { throw new RuntimeException(e); } }
java
public void setCARevocationPath(Path caRevocationPath) { try { _caRevocationPath = caRevocationPath.toRealPath().toString(); } catch (IOException e) { throw new RuntimeException(e); } }
java
public void setCARevocationFile(Path caRevocationFile) { try { _caRevocationFile = caRevocationFile.toRealPath().toString(); } catch (IOException e) { throw new RuntimeException(e); } }
java
public void addEngineCommand(String command) { if (command == null || command.length() == 0) { return; } int p = command.indexOf(':'); String arg = ""; if (p > 0) { arg = command.substring(p + 1); command = command.substring(0, p); } StringBuilder sb =...
java
public void nextProtocols(String ...protocols) { if (protocols == null || protocols.length == 0) { _nextProtocols = null; return; } StringBuilder sb = new StringBuilder(); for (String protocol : protocols) { if (protocol == null || "".equals(protocol)) { continue; ...
java
public void setVerifyClient(String verifyClient) throws ConfigException { if (! "optional_no_ca".equals(verifyClient) && ! "optional-no-ca".equals(verifyClient) && ! "optional".equals(verifyClient) && ! "require".equals(verifyClient) && ! "none".equals(verifyClient)) thro...
java
public synchronized ByteBuffer allocateHeaderBuffer() { Stack<ByteBuffer> pool = pools.get(HEADER_SIZE); if (pool.isEmpty()) { return ByteBuffer.allocate(HEADER_SIZE); } else { return pool.pop(); } }
java
public boolean compileIsModified() { if (_compileIsModified) return true; CompileThread compileThread = new CompileThread(); ThreadPool.current().start(compileThread); try { synchronized (compileThread) { if (! compileThread.isDone()) compileThread.wait(5000); } ...
java
ServiceRefAmp lookup(String path, PodRef podCaller) { if (_linkServiceRef.address().startsWith("local:")) { int p = path.indexOf('/', 1); if (p > 0) { // champ path is /pod.0/path // return (ServiceRefAmp) _champService.lookup(path); return (ServiceRefAmp) _rampManager.s...
java
public static StdoutStream create() { if (_stdout == null) { _stdout = new StdoutStream(); ConstPath path = new ConstPath(null, _stdout); path.setScheme("stdout"); //_stdout.setPath(path); } return _stdout; }
java
public void write(byte []buf, int offset, int length, boolean isEnd) throws IOException { System.out.write(buf, offset, length); System.out.flush(); }
java
public static ThreadDump create() { ThreadDump threadDump = _threadDumpRef.get(); if (threadDump == null) { threadDump = new ThreadDumpPro(); _threadDumpRef.compareAndSet(null, threadDump); threadDump = _threadDumpRef.get(); } return threadDump; }
java
public String getThreadDump(int depth, boolean onlyActive) { ThreadMXBean threadBean = ManagementFactory.getThreadMXBean(); long []ids = threadBean.getAllThreadIds(); ThreadInfo []info = threadBean.getThreadInfo(ids, depth); StringBuilder sb = new StringBuilder(); sb.append("Thread Dump generate...
java
private boolean readFlow(ReadStream is, int length, int streamId) throws IOException { if (length != 4) { error("Invalid window update length {0}", length); return false; } int credit = BitsUtil.readInt(is); if (streamId == 0) { _conn.channelZero().addSendCredit(credit)...
java
private boolean readGoAway(ReadStream is, int length) throws IOException { int lastStream = BitsUtil.readInt(is); int errorCode = BitsUtil.readInt(is); is.skip(length - 8); _isGoAway = true; _conn.onReadGoAway(); if (onCloseStream() <= 0) { _inHandler.onGoAway(); ...
java
private boolean readMetaHeader() throws IOException { try (ReadStream is = openRead(0, META_SEGMENT_SIZE)) { int crc = 17; long magic = BitsUtil.readLong(is); if (magic != KELP_MAGIC) { System.out.println("WRONG_MAGIC: " + magic); return false; } ...
java
private boolean readMetaData() throws IOException { SegmentExtent10 segment = _metaSegment; try (ReadStream is = openRead(segment.address(), segment.length())) { is.position(META_OFFSET); while (readMetaEntry(is)) { } } return true; }
java
private boolean readMetaTable(ReadStream is, int crc) throws IOException { byte []key = new byte[TABLE_KEY_SIZE]; is.read(key, 0, key.length); crc = Crc32Caucho.generate(crc, key); int rowLength = BitsUtil.readInt16(is); crc = Crc32Caucho.generateInt16(crc, rowLength); i...
java
private void readSegments() throws IOException { for (SegmentExtent10 extent : _segmentExtents) { try (ReadStream is = openRead(extent.address(), extent.length())) { is.skip(extent.length() - BLOCK_SIZE); long sequence = BitsUtil.readLong(is); byte []tableKey = ...
java
private void upgradeDatabase(KelpUpgrade upgradeKelp) throws IOException { Collections.sort(_tableList, (x,y)->x.row().name().compareTo(y.row().name())); for (TableEntry10 table : _tableList) { TableUpgrade upgradeTable = upgradeKelp.table(table.key(), table.row()); ...
java
private void upgradeTable(TableEntry10 table, TableUpgrade upgradeTable) throws IOException { _pageMap = new TreeMap<>(); readTableIndex(table); for (Page10 page : _pageMap.values()) { upgradeLeaf(table, upgradeTable, page); List<Delta10> delta...
java
private void readTableIndex(TableEntry10 table) throws IOException { for (Segment10 segment : tableSegments(table)) { try (ReadStream is = openRead(segment.address(), segment.length())) { readSegmentIndex(is, segment); } } }
java
private void readSegmentIndex(ReadStream is, Segment10 segment) throws IOException { int address = segment.length() - BLOCK_SIZE; TempBuffer tBuf = TempBuffer.create(); byte []buffer = tBuf.buffer(); is.position(address); is.read(buffer, 0, BLOCK_SIZE); int tail = BitsUtil.r...
java
private void addLeaf(Segment10 segment, int pid, int nextPid, int address, int length) { Page10 page = _pageMap.get(pid); if (page != null && page.sequence() < segment.sequence()) { return; } p...
java
private void addLeafDelta(Segment10 segment, int pid, int nextPid, int address, int length) { Page10 page = _pageMap.get(pid); if (page != null && page.sequence() < segment.sequence()) { ...
java
private ArrayList<Segment10> tableSegments(TableEntry10 table) { ArrayList<Segment10> tableSegments = new ArrayList<>(); for (Segment10 segment : _segments) { if (Arrays.equals(segment.key(), table.key())) { tableSegments.add(segment); } } Collections.sort(tableSegments, ...
java
private void upgradeLeaf(TableEntry10 table, TableUpgrade upgradeTable, Page10 page) throws IOException { try (ReadStream is = openRead(page.segment().address(), page.segment().length())) { is.position(page.address(...
java
private void upgradeLeafBlock(ReadStream is, TableEntry10 table, TableUpgrade upgradeTable, Page10 page) throws IOException { TempBuffer tBuf = TempBuffer.create(); byte []buffer = tBuf.buffer(); ...
java
private void upgradeDelta(TableEntry10 table, TableUpgrade upgradeTable, Page10 page, Delta10 delta) throws IOException { try (ReadStream is = openRead(page.segment().address(), page.segment(...
java
private void rowInsert(RowUpgrade row, TableUpgrade upgradeTable, byte []buffer, int offset) { Cursor10 cursor = new Cursor10(row, buffer, offset); upgradeTable.row(cursor); }
java
private ReadStream openRead(long address, int size) { InStore inStore = _store.openRead(address, size); InStoreStream is = new InStoreStream(inStore, address, address + size); return new ReadStream(new VfsStream(is)); }
java