code
stringlengths
73
34.1k
label
stringclasses
1 value
private void updateHubHeartbeatSelf() { _isHubHeartbeatSelf = true; if (_hubHeartbeatCount < 2) { for (Result<Boolean> result : _hubHeartbeatList) { result.ok(true); } _hubHeartbeatList.clear(); } }
java
void updateRack(UpdateRackHeartbeat updateRack) { ClusterHeartbeat cluster = findCluster(updateRack.getClusterId()); if (cluster == null) { return; } RackHeartbeat rack; if (cluster != _serverSelf.getCluster()) { rack = cluster.createRack("external"); ClusterTarget tar...
java
private void updateServerStart(UpdateServerHeartbeat update) { // internal communication is non-ssl boolean isSSL = false; ServerHeartbeat server = _root.createServer(update.getAddress(), update.getPort(), ...
java
void updateServer(ServerHeartbeat server, UpdateServerHeartbeat update) { if (server.isSelf()) { return; } String externalId = update.getExternalId(); updateExternal(server, externalId); // XXX: validation server.setSeedIndex(update.getSeedIndex()); if (server.onHeartbeatUpda...
java
private void updateExternal(ServerHeartbeat server, String externalId) { if (externalId != null) { ServerHeartbeat serverExternal = _root.getServer(externalId); server.setExternalServer(serverExternal); } else { server.setExternalServer(null); /* if (serverExternal !=...
java
private void onServerLinkClose(String hostName) { ServerHeartbeat server = _root.getServer(hostName); if (server == null) { return; } if (! isHub(server) && ! isHub(_serverSelf)) { return; } if (server.onHeartbeatStop()) { onServerStop(server); if (server....
java
private boolean isHub(ServerBartender server) { int upCount = 0; for (ServerHeartbeat rackServer : _rack.getServers()) { if (rackServer == null || ! rackServer.isUp()) { continue; } if (rackServer == server && upCount < _hubCount) { return true; } ...
java
private void sendHubHeartbeats() { RackHeartbeat rack = _rack; UpdateRackHeartbeat updateRack = rack.getUpdate(); UpdatePodSystem updatePod = getUpdatePodSystem(); long now = CurrentTime.currentTime(); if (! isJoinComplete()) { updatePod = null; } // send hub update t...
java
private void sendSpokeHeartbeats() { for (ServerTarget target : _targets) { ServerHeartbeat server = target.getServer(); if (server.getRack() != _rack) { continue; } if (isHub(server)) { target.sendServerHeartbeat(getServerSelf().getUpdate()); } } ...
java
public static boolean isAvailable() { try { return create() != null; } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); return false; } }
java
public void cleanup() { state = null; if (headerBuffer != null) { bufferPool.deallocate(headerBuffer); } if (dataBuffer != null) { bufferPool.deallocate(dataBuffer); } }
java
void clusterHeartbeat(String clusterId, UpdateServerHeartbeat updateSelf, UpdateRackHeartbeat updateRack, UpdatePodSystem updatePod, long sequence) { if (startUpdate(updateRack, updatePod)) { getHeartbeat().clust...
java
void hubHeartbeat(UpdateServerHeartbeat updateServer, UpdateRackHeartbeat updateRack, UpdatePodSystem updatePod, long sequence) { if (startUpdate(updateRack, updatePod)) { getHeartbeat().hubHeartbeat(updateServer, updateRack, updatePod, sequence); ...
java
private boolean startUpdate(UpdateRackHeartbeat updateRack, UpdatePodSystem updatePod) { long now = CurrentTime.currentTime(); if (_lastHubTime + getTimeout() < now) { } else if (_lastRackCrc != updateRack.getCrc()) { } else if (updatePod != null && _lastPodC...
java
@Override public int owner(int hash) { NodePodAmp delegate = delegate(); if (delegate != null) { return delegate().owner(hash); } else { return 0; } }
java
@Override public void run() { try { while (! isClosed() && _is.read() > 0 && _in.readMessage(_is)) { ServiceRef.flushOutbox(); } } catch (EOFException e) { log.finer(this + " end of file"); if (log.isLoggable(Level.ALL)) { log.log(Level.ALL, e.toString(), e); ...
java
@Override protected CharSequence getHost() { if (_host != null) return _host; if (_uriHost.length() > 0) { _host = _uriHost; } else if ((_host = getForwardedHostHeader()) != null) { } else { _host = getHostHeader(); } return _host; }
java
private CharSequence hostInvocation() throws IOException { if (_host != null) { } else if (_uriHost.length() > 0) { _host = _uriHost; } else if ((_host = getForwardedHostHeader()) != null) { } else if ((_host = getHostHeader()) != null) { } else if (HTTP_1_1 <= version())...
java
@Override public String header(String key) { CharSegment buf = getHeaderBuffer(key); if (buf != null) return buf.toString(); else return null; }
java
public CharSegment getHeaderBuffer(char []testBuf, int length) { char []keyBuf = _headerBuffer; CharSegment []headerKeys = _headerKeys; char []toLowerAscii = _toLowerAscii; for (int i = _headerSize - 1; i >= 0; i--) { CharSegment key = headerKeys[i]; if (key.length() != length) ...
java
@Override public CharSegment getHeaderBuffer(String key) { int i = matchNextHeader(0, key); if (i >= 0) { return _headerValues[i]; } else { return null; } }
java
@Override public void getHeaderBuffers(String key, ArrayList<CharSegment> values) { int i = -1; while ((i = matchNextHeader(i + 1, key)) >= 0) { values.add(_headerValues[i]); } }
java
@Override public Enumeration<String> getHeaders(String key) { ArrayList<String> values = new ArrayList<String>(); int i = -1; while ((i = matchNextHeader(i + 1, key)) >= 0) { values.add(_headerValues[i].toString()); } return Collections.enumeration(values); }
java
private int matchNextHeader(int i, String key) { int size = _headerSize; int length = key.length(); char []keyBuf = _headerBuffer; char []toLowerAscii = _toLowerAscii; for (; i < size; i++) { CharSegment header = _headerKeys[i]; if (header.length() != length) continue; ...
java
@Override public void setHeader(String key, String value) { int tail; if (_headerSize > 0) { tail = (_headerValues[_headerSize - 1].offset() + _headerValues[_headerSize - 1].length()); } else { tail = 0; } int keyLength = key.length(); int valueLength = value....
java
private boolean parseRequest() throws IOException { try { ReadStream is = connTcp().readStream(); if (! readRequest(is)) { clearRequest(); return false; } _sequence = connHttp().nextSequenceRead(); if (log.isLoggable(Level.FINE)) { log.fine...
java
@Override protected void initRequest() { super.initRequest(); _state = _state.toActive(); // HttpBufferStore httpBuffer = getHttpBufferStore(); HttpBufferStore bufferStore = getHttpBufferStore(); _method.clear(); _methodString = null; _protocol.clear(); _uriLength = 0; ...
java
@Override public void onTimeout() { try { //request().sendError(WebRequest.INTERNAL_SERVER_ERROR); if (true) throw new UnsupportedOperationException(); } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); } closeResponse(); }
java
@GET @Path("{uuid}") public Penalty getPenaltyByUuid(@PathParam("uuid") UUID uuid) { logger.debug("StartOf getPenaltyByUuid - REQUEST for /penalties/{}", uuid); PenaltyHelperE penaltyRestHelper = getPenaltyHelper(); Penalty result = penaltyRestHelper.getPenaltyByUuid(uuid); logge...
java
@GET public List<Penalty> getPenalties( @QueryParam("agreementId") String agreementId, @QueryParam("guaranteeTerm") String guaranteeTerm, @QueryParam("begin") DateParam begin, @QueryParam("end") DateParam end) throws InternalException{ logger.debug("StartOf getPenalties...
java
public final ClientSocketFactory getLoadBalanceSocketPool() { ClientSocketFactory factory = getLoadBalanceSocketFactory(); if (factory == null) return null; if (_serverBartender.getState().isDisableSoft()) { factory.enableSessionOnly(); } else if (_serverBartender.getState()....
java
boolean onHeartbeatStop() { SocketPool clusterSocketPool; if (isExternal()) { clusterSocketPool = _clusterSocketPool.getAndSet(null); } else { clusterSocketPool = _clusterSocketPool.get(); } if (clusterSocketPool != null) { clusterSocketPool.getFactory().notifyHeartbeat...
java
public void close() { SocketPool loadBalancePool = _loadBalanceSocketPool.get(); if (loadBalancePool != null) loadBalancePool.getFactory().close(); SocketPool clusterPool = _clusterSocketPool.get(); if (clusterPool != null) clusterPool.getFactory().close(); }
java
@Override public void schema(Class<?> type) { Objects.requireNonNull(type); _context.schema(type); }
java
public static long getRandomLong() { Random random = getRandom(); long value = random.nextLong(); if (! _isTest) { _freeRandomList.free(random); } return value; }
java
public static int nextInt(int n) { Random random = getRandom(); int value = random.nextInt(n); if (! _isTest) _freeRandomList.free(random); return value; }
java
public static double nextDouble() { Random random = getRandom(); double value = random.nextDouble(); if (! _isTest) _freeRandomList.free(random); return value; }
java
public static Random getRandom() { if (_isTest) { return _testRandom; } Random random = _freeRandomList.allocate(); if (random == null) { random = new SecureRandom(); } return random; }
java
@Override public void writeChunk(long length, boolean isFinal) { long chunk; if (isFinal) { chunk = length << 1; } else { chunk = (length << 1) + 1; } writeUnsigned(chunk); }
java
@Override public void writeStringData(String value, int offset, int length) { char []cBuf = _charBuffer; int cBufLength = cBuf.length; for (int i = 0; i < length; i += cBufLength) { int sublen = Math.min(length - i, cBufLength); value.getChars(offset + i, offset + i + sublen, cBu...
java
@Override public void writeBinaryData(byte []sBuf, int sOffset, int sLength) { byte []tBuf = _buffer; int tOffset = _offset; int tLength = tBuf.length; int end = sOffset + sLength; while (sOffset < end) { if (tLength - tOffset < 1) { tOffset = flush(tOffset); } ...
java
private void require(int len) { int offset = _offset; int length = _length; if (offset + len < length) { return; } flush(_offset); }
java
private int flush(int offset) { try { _os.write(_buffer, 0, offset); _offset = 0; return 0; } catch (IOException e) { throw new H3ExceptionOut(e); } }
java
@Override public void writeRef(int ref) { require(1); _buffer[_offset++] = (byte) ConstH3.REF; writeUnsigned(ref); }
java
public final PathImpl lookup(URL url) { String name = URLDecoder.decode(url.toString()); return lookup(name, null); }
java
public String lookupRelativeNativePath(PathImpl path) { String thisNative = getNativePath(); String pathNative = path.getNativePath(); if (pathNative.startsWith(thisNative)) { int i = thisNative.length(); while (i < pathNative.length()) { if (pathNative.charAt(i) != getFileSeparatorC...
java
public ArrayList<PathImpl> getResources(String name) { ArrayList<PathImpl> list = new ArrayList<PathImpl>(); PathImpl path = lookup(name); if (path.exists()) list.add(path); return list; }
java
public ArrayList<PathImpl> getResources() { ArrayList<PathImpl> list = new ArrayList<PathImpl>(); //if (exists()) list.add(this); return list; }
java
protected String scanScheme(String uri) { int i = 0; if (uri == null) return null; int length = uri.length(); if (length == 0) return null; int ch = uri.charAt(0); if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z') { for (i = 1; i < length; i++) { ch = ur...
java
public boolean isWindowsInsecure() { String lower = getPath().toLowerCase(Locale.ENGLISH); int lastCh; if ((lastCh = lower.charAt(lower.length() - 1)) == '.' || lastCh == ' ' || lastCh == '*' || lastCh == '?' || ((lastCh == '/' || lastCh == '\\') && ! isDirectory()) || lower.ends...
java
public Iterator<String> iterator() throws IOException { String list[] = list(); // Avoids NPE when subclasses override list() and // possibly return null, e.g. JarPath. if (list == null) list = new String[0]; return new ArrayIterator(list); }
java
public boolean removeAll() throws IOException { if (isDirectory() && ! isLink()) { String []list = list(); for (int i = 0; i < list.length; i++) { PathImpl subpath = lookup(list[i]); subpath.removeAll(); } } return remove(); }
java
public boolean createNewFile() throws IOException { synchronized (LOCK) { if (! exists()) { clearStatusCache(); WriteStreamOld s = openWrite(); s.close(); return true; } } return false; }
java
public long getCrc64() { try { if (isDirectory()) { String []list = list(); long digest = 0x1; for (int i = 0; i < list.length; i++) { digest = Crc64.generate(digest, list[i]); } return digest; } else if (canRead()) { ReadStreamOld is ...
java
void put(RowCursor cursor) { boolean isValid; do { isValid = true; try (JournalOutputStream os = openItem()) { os.write(CODE_PUT); cursor.writeJournal(os); isValid = os.complete(); } catch (IOException e) { log.log(Level.FINER, e.toStri...
java
void remove(RowCursor cursor) { boolean isValid; do { isValid = true; try (JournalOutputStream os = openItem()) { os.write(CODE_REMOVE); cursor.getKey(_buffer, 0); os.write(_buffer, 0, getKeyLength()); try { BitsUtil.writeLong(os, c...
java
private MultivaluedMapWrapper<String, IGuaranteeTerm> initTermsMap(IAgreement agreement) { MultivaluedMapWrapper<String, IGuaranteeTerm> result = new MultivaluedMapWrapper<String, IGuaranteeTerm>(); for (IGuaranteeTerm term : agreement.getGuaranteeTerms()) { String variable = co...
java
@Override public boolean accept(SocketBar socket) throws IOException { JniSocketImpl jniSocket = (JniSocketImpl) socket; if (_fd == 0) throw new IOException("accept from closed socket"); return jniSocket.accept(this, _fd, _socketTimeout); }
java
public void setIdleMax(int idleMax) { if (idleMax <= _idleMin) { throw new IllegalArgumentException(L.l("idle-max '{0}' must be greater than idle-min '{1}'.", idleMax, _idleMin)); } _launcher.setIdleMax(_idleMax); }
java
public boolean schedule(Runnable task) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); boolean isPriority = false; boolean isQueue = true; boolean isWake = true; return scheduleImpl(task, loader, MAX_EXPIRE, isPriority, isQueue, isWake); }
java
private void wakeThreads(int count) { while (true) { int taskCount = Math.max(0, _taskCount.get()); int spinIdleCount = _spinIdleCount.get(); long threadWakeHead = _threadWakeHead.get(); long threadWakeTail = _threadWakeTail.get(); long threadCount = spinIdleCount + threadW...
java
public void clearIdleThreads() { _launcher.resetThrottle(); int idleCount = _idleThreadRing.size(); ThreadAmp thread; while (idleCount-- > 0 && (thread = _idleThreadRing.poll()) != null) { thread.close(); } }
java
@Override public void start() { if (_lifecycle.isActive()) { return; } synchronized (_lifecycle) { if (! _lifecycle.toInit()) { return; } init(_stubMain); } start(_stubMain); }
java
private void init(StubAmp stub) { //BuildMessageAmp buildMessage = new BuildMessageAmp(this); OnInitMessage onInitMsg = new OnInitMessage(this); _queue.offer(onInitMsg); _queue.wake(); }
java
@Override public void shutdown(ShutdownModeAmp mode) { if (! _lifecycle.toStopping()) { return; } _lifecycle.toDestroy(); OnShutdownMessage shutdownMessage = new OnShutdownMessage(this, mode, isSingle()); _queue.offer(shutdownMessage); // _queue.close(); /* ...
java
public void setLocalTime(long time) { // If this is a local time zone date, just set the time if (_timeZone != _gmtTimeZone) { calculateSplit(time); } // If this is a GMT date, convert from local to GMT else { calculateSplit(time - _localTimeZone.getRawOffset()); try { l...
java
public long getLocalTime() { // If this is a local time zone date, just set the time if (_timeZone != _gmtTimeZone) { return _localTimeOfEpoch; } // If this is a GMT date, convert from local to GMT else { long offset = _localTimeZone.getOffset(GregorianCalendar.AD, ...
java
public void setMonth(int month) { if (month < 0 || DAYS_IN_MONTH.length <= month) return; _month = month; if (DAYS_IN_MONTH[month] <= _dayOfMonth) _dayOfMonth = DAYS_IN_MONTH[month] - 1; calculateJoin(); calculateSplit(_localTimeOfEpoch); }
java
public int getWeek() { int dow4th = (int) ((_dayOfEpoch - _dayOfYear + 3) % 7 + 10) % 7; int ww1monday = 3 - dow4th; if (_dayOfYear < ww1monday) return 53; int week = (_dayOfYear - ww1monday) / 7 + 1; if (_dayOfYear >= 360) { int days = 365 + (_isLeapYear ? 1 : 0); long nextNe...
java
public long get(int field) { switch (field) { case TIME: return getLocalTime(); case YEAR: return getYear(); case MONTH: return getMonth(); case DAY_OF_MONTH: return getDayOfMonth(); case DAY: return getDayOfWeek(); case DAY_OF_WEEK: return getDayOf...
java
public long set(int field, long value) { switch (field) { case YEAR: setYear((int) value); break; case MONTH: setMonth((int) value); break; case DAY_OF_MONTH: setDayOfMonth((int) value); break; case HOUR: setHour((int) value); break; case MIN...
java
public void printDate(WriteStreamOld os) throws IOException { os.print(DAY_NAMES[(int) (_dayOfEpoch % 7 + 11) % 7]); os.write(','); os.write(' '); os.print((_dayOfMonth + 1) / 10); os.print((_dayOfMonth + 1) % 10); os.write(' '); os.print(MONTH_NAMES[(int) _month]); os.write(' '); ...
java
public String printISO8601() { StringBuilder sb = new StringBuilder(); if (_year > 0) { sb.append((_year / 1000) % 10); sb.append((_year / 100) % 10); sb.append((_year / 10) % 10); sb.append(_year % 10); sb.append('-'); sb.append(((_month + 1) / 10) % 10); sb.append(...
java
public String printISO8601Date() { CharBuffer cb = new CharBuffer(); if (_year > 0) { cb.append((_year / 1000) % 10); cb.append((_year / 100) % 10); cb.append((_year / 10) % 10); cb.append(_year % 10); cb.append('-'); cb.append(((_month + 1) / 10) % 10); cb.append((_...
java
public synchronized static String formatGMT(long gmtTime, String format) { _gmtDate.setGMTTime(gmtTime); return _gmtDate.format(new CharBuffer(), format).toString(); }
java
public String format(String format) { CharBuffer cb = new CharBuffer(); return format(cb, format).close(); }
java
private long yearToDayOfEpoch(long year) { if (year > 0) { year -= 1601; return (365 * year + year / 4 - year / 100 + year / 400 - ((1970 - 1601) * 365 + (1970 - 1601) / 4 - 3)); } else { year = 2000 - year; return ((2000 - 1970) * 365 + (2000 - 1970) / 4 - ...
java
private long monthToDayOfYear(long month, boolean isLeapYear) { long day = 0; for (int i = 0; i < month && i < 12; i++) { day += DAYS_IN_MONTH[i]; if (i == 1 && isLeapYear) day++; } return day; }
java
public long setDate(long year, long month, long day) { year += (long) Math.floor(month / 12.0); month -= (long) 12 * Math.floor(month / 12.0); _year = year; _month = month; _dayOfMonth = day - 1; calculateJoin(); calculateSplit(_localTimeOfEpoch); return _localTimeOfEpoch; }
java
private void calculateSplit(long localTime) { _localTimeOfEpoch = localTime; _dayOfEpoch = divFloor(_localTimeOfEpoch, MS_PER_DAY); _timeOfDay = _localTimeOfEpoch - MS_PER_DAY * _dayOfEpoch; calculateYear(); calculateMonth(); _hour = _timeOfDay / 3600000; _minute = _timeOfDay / 60000 % 6...
java
private void calculateYear() { long days = _dayOfEpoch; // shift to using 1601 as a base days += (1970 - 1601) * 365 + (1970 - 1601) / 4 - 3; long n400 = divFloor(days, 400 * 365 + 100 - 3); days -= n400 * (400 * 365 + 100 - 3); long n100 = divFloor(days, 100 * 365 + 25 - 1); if (n100 =...
java
private void calculateMonth() { _dayOfMonth = _dayOfYear; for (_month = 0; _month < 12; _month++) { if (_month == 1 && _isLeapYear) { if (_dayOfMonth < 29) return; else _dayOfMonth -= 29; } else if (_dayOfMonth < DAYS_IN_MONTH[(int) _month]) retur...
java
private long calculateJoin() { _year += divFloor(_month, 12); _month -= 12 * divFloor(_month, 12); _localTimeOfEpoch = MS_PER_DAY * (yearToDayOfEpoch(_year) + monthToDayOfYear(_month, isLeapYear(_year)) + _dayOfMonth); _localTimeOfEpoch += _ms + 1000...
java
public boolean logModified(Logger log) { for (int i = _dependencyList.size() - 1; i >= 0; i--) { Dependency dependency = _dependencyList.get(i); if (dependency.logModified(log)) return true; } return false; }
java
@Override public void getSafe(RowCursor cursor, Result<Boolean> result) { result.ok(getImpl(cursor)); }
java
@Direct @Override public void getStream(RowCursor cursor, Result<GetStreamResult> result) { long version = cursor.getVersion(); PageLeafImpl leaf = getLeafByCursor(cursor); if (leaf == null) { result.ok(new GetStreamResult(false, null)); return; } ...
java
long getSequenceSize(SegmentKelp segment) { int tailPid = _tailPid.get(); long size = 0; for (int i = 0; i <= tailPid; i++) { Page page = _pages.get(i); if (page != null && page.getSegment() == segment) { size += page.size(); } } return size; }
java
@Override public void checkpoint(Result<Boolean> result) { if (! _journalStream.saveStart()) { result.ok(true); return; } TableWriterService readWrite = _table.getReadWrite(); // long limit = Integer.MAX_VALUE; // 128 int tailPid = _tailPid.get(); for (int pid = 1; pid <= t...
java
boolean compareAndSetLeaf(Page oldPage, Page page) { if (oldPage == page) { return true; } int pid = (int) page.getId(); updateTailPid(pid); if (oldPage instanceof PageLeafImpl && page instanceof PageLeafImpl) { PageLeafImpl oldLeaf = (PageLeafImpl) oldPage; PageLe...
java
public static DynamicClassLoader getDynamicClassLoader(ClassLoader loader) { for (; loader != null; loader = loader.getParent()) { if (loader instanceof DynamicClassLoader) { return (DynamicClassLoader) loader; } } return null; }
java
public static void setConfigException(Throwable e) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); for (; loader != null; loader = loader.getParent()) { if (loader instanceof EnvironmentClassLoader) { EnvironmentClassLoader envLoader = (EnvironmentClassLoader) loader; ...
java
public static Throwable getConfigException() { ClassLoader loader = Thread.currentThread().getContextClassLoader(); for (; loader != null; loader = loader.getParent()) { if (loader instanceof EnvironmentClassLoader) { EnvironmentClassLoader envLoader = (EnvironmentClassLoader) loader; ...
java
public static String getLocalClassPath(ClassLoader loader) { for (; loader != null; loader = loader.getParent()) { if (loader instanceof EnvironmentClassLoader) { return ((EnvironmentClassLoader) loader).getLocalClassPath(); } } return DynamicClassLoader.getSystemClassPath(); }
java
public static void closeGlobal() { ArrayList<EnvLoaderListener> listeners; listeners = new ArrayList<>(); listeners.addAll(_globalLoaderListeners); _globalLoaderListeners.clear(); for (int i = 0; i < listeners.size(); i++) { EnvLoaderListener listener = listeners.get(i); listener.cla...
java
public static synchronized void initializeEnvironment() { if (_isStaticInit) return; _isStaticInit = true; ClassLoader systemLoader = ClassLoader.getSystemClassLoader(); Thread thread = Thread.currentThread(); ClassLoader oldLoader = thread.getContextClassLoader(); try { thread....
java
private MonitoringRule buildRelatedRule(IGuaranteeTerm guarantee) { MonitoringRule result = new MonitoringRule(); result.setId(guarantee.getName()); String violation = extractOutputMetric(guarantee); Parameter param = new Parameter(); param.setName(QosModels.METR...
java
public void debug(WriteStream out, Path path, byte []tableKey) throws IOException { SegmentKelpBuilder builder = new SegmentKelpBuilder(); builder.path(path); builder.create(false); builder.services(ServicesAmp.newManager().get()); SegmentServiceImpl segmentService = builder.build(); ...
java
private void debugSegment(WriteStream out, SegmentServiceImpl segmentService, SegmentExtent extent, byte []debugTableKey) throws IOException { int length = extent.length(); try (InSegment in = segmentService.openRead...
java
private void debugSegmentEntries(WriteStream out, ReadStream is, SegmentExtent extent, TableEntry table) throws IOException { TempBuffer tBuf = TempBuffer.create(); byte []buffer = tBuf.buffer(); ...
java
private int debugSegmentIndex(WriteStream out, ReadStream is, byte []buffer, long segmentAddress, long ptr, int head, TableEntry...
java