MCPcopy Create free account
hub / github.com/apache/nutch / next

Method next

src/java/org/apache/nutch/util/Bytes.java:1259–1275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1257 }
1258
1259 @Override
1260 public byte[] next() {
1261 i++;
1262 if (i == 0)
1263 return a;
1264 if (i == num + 1)
1265 return b;
1266
1267 BigInteger curBI = startBI.add(intervalBI.multiply(BigInteger
1268 .valueOf(i)));
1269 byte[] padded = curBI.toByteArray();
1270 if (padded[1] == 0)
1271 padded = tail(padded, padded.length - 2);
1272 else
1273 padded = tail(padded, padded.length - 1);
1274 return padded;
1275 }
1276
1277 @Override
1278 public void remove() {

Callers 15

filterMethod · 0.45
writeMethod · 0.45
findAuthenticationMethod · 0.45
addRawContentMethod · 0.45
setUpMethod · 0.45
testParseFetchChannelMethod · 0.45
getParseMethod · 0.45
addToMapMethod · 0.45
addFieldsMethod · 0.45
getTextMethod · 0.45
getUrlsMethod · 0.45
testNormalizerScopeMethod · 0.45

Calls 2

tailMethod · 0.95
addMethod · 0.45

Tested by 6

setUpMethod · 0.36
testParseFetchChannelMethod · 0.36
testNormalizerScopeMethod · 0.36
readWriteMethod · 0.36
generateSeedListMethod · 0.36
readContentsMethod · 0.36