congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MetadataSchema$ReplicationSection
Code IndexAdd Tabnine to your IDE (free)

How to use
MetadataSchema$ReplicationSection
in
org.apache.accumulo.core.metadata.schema

Best Java code snippets using org.apache.accumulo.core.metadata.schema.MetadataSchema$ReplicationSection (Showing top 20 results out of 315)

origin: apache/accumulo

s.setRange(ReplicationSection.getRange());
 MetadataSchema.ReplicationSection.getFile(entry.getKey(), file);
 Table.ID tableId = MetadataSchema.ReplicationSection.getTableId(entry.getKey());
origin: apache/accumulo

bw = client.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig());
bs = client.createBatchScanner(MetadataTable.NAME, Authorizations.EMPTY, 4);
bs.setRanges(Collections.singleton(Range.prefix(ReplicationSection.getRowPrefix())));
bs.fetchColumnFamily(ReplicationSection.COLF);
 MetadataSchema.ReplicationSection.getFile(entry.getKey(), replFileText);
 String replFile = replFileText.toString();
 boolean isClosed = closedWals.contains(replFile);
origin: org.apache.accumulo/accumulo-test

for (int i = 0; i < 5; i++) {
 s = conn.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
 s.setRange(ReplicationSection.getRange());
 entries.clear();
 for (Entry<Key,Value> entry : s) {
for (int i = 0; i < 10; i++) {
 s = conn.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
 s.setRange(ReplicationSection.getRange());
 remaining.clear();
 for (Entry<Key,Value> e : s) {
origin: org.apache.accumulo/accumulo-test

s.setRange(Range.prefix(ReplicationSection.getRowPrefix()));
Iterator<Entry<Key,Value>> iter = s.iterator();
s.setRange(Range.prefix(ReplicationSection.getRowPrefix()));
for (Entry<Key,Value> entry : s) {
 log.info(entry.getKey().toStringNoTruncate() + " "
origin: org.apache.accumulo/accumulo-test

s.setRange(MetadataSchema.ReplicationSection.getRange());
for (Entry<Key,Value> entry : s) {
 System.out.println(entry.getKey().toStringNoTruncate() + " "
  MetadataSchema.ReplicationSection.getRowPrefix() + new Path(walUri).toString());
m.put(MetadataSchema.ReplicationSection.COLF, new Text(tableId),
  new Value(StatusUtil.fileCreated(System.currentTimeMillis()).toByteArray()));
s.setRange(MetadataSchema.ReplicationSection.getRange());
for (Entry<Key,Value> entry : s) {
 log.info(entry.getKey().toStringNoTruncate() + " "
s.setRange(MetadataSchema.ReplicationSection.getRange());
for (Entry<Key,Value> entry : s) {
 Status status = Status.parseFrom(entry.getValue().get());
origin: org.apache.accumulo/accumulo-test

s.setRange(MetadataSchema.ReplicationSection.getRange());
for (Entry<Key,Value> metadata : s) {
 records.add(metadata);
origin: org.apache.accumulo/accumulo-test

long index = 1;
for (String file : files) {
 Mutation m = new Mutation(ReplicationSection.getRowPrefix() + file);
 m.put(ReplicationSection.COLF, new Text(Long.toString(index)),
   ProtobufUtil.toValue(statBuilder.build()));
s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
Assert.assertEquals(0, Iterables.size(s));
s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
Assert.assertEquals(0, Iterables.size(s));
s.setRange(ReplicationSection.getRange());
iter = s.iterator();
Assert.assertTrue("Found no stat records in replication table", iter.hasNext());
origin: org.apache.accumulo/accumulo-master

s.setRange(ReplicationSection.getRange());
 MetadataSchema.ReplicationSection.getFile(entry.getKey(), file);
 String tableId = MetadataSchema.ReplicationSection.getTableId(entry.getKey());
origin: org.apache.accumulo/accumulo-test

m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.put(ReplicationSection.COLF, new Text(tableId1), ProtobufUtil.toValue(stat));
m = new Mutation(ReplicationSection.getRowPrefix() + file2);
m.put(ReplicationSection.COLF, new Text(tableId2), ProtobufUtil.toValue(stat));
m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.putDelete(ReplicationSection.COLF, new Text(tableId1));
bw.addMutation(m);
origin: org.apache.accumulo/accumulo-test

m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.put(ReplicationSection.COLF, new Text(tableId), ProtobufUtil.toValue(stat));
m = new Mutation(ReplicationSection.getRowPrefix() + file2);
m.put(ReplicationSection.COLF, new Text(tableId), ProtobufUtil.toValue(stat));
m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.putDelete(ReplicationSection.COLF, new Text(tableId));
bw.addMutation(m);
m = new Mutation(ReplicationSection.getRowPrefix() + file2);
m.putDelete(ReplicationSection.COLF, new Text(tableId));
bw.addMutation(m);
origin: org.apache.accumulo/accumulo-test

m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.put(ReplicationSection.COLF, new Text(tableId1), ProtobufUtil.toValue(stat));
bw.addMutation(m);
  .setClosed(true).build();
bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig());
m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.put(ReplicationSection.COLF, new Text(tableId1), ProtobufUtil.toValue(newStatus));
bw.addMutation(m);
origin: org.apache.accumulo/accumulo-test

m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.put(ReplicationSection.COLF, new Text(tableId1), ProtobufUtil.toValue(stat));
bw.addMutation(m);
  ReplicationSection.getRowPrefix() + "/accumulo/wals/tserver+port/" + UUID.randomUUID());
m.put(ReplicationSection.COLF, new Text(tableId1), ProtobufUtil.toValue(stat));
bw.addMutation(m);
m = new Mutation(ReplicationSection.getRowPrefix() + file1);
m.putDelete(ReplicationSection.COLF, new Text(tableId1));
bw.addMutation(m);
origin: org.apache.accumulo/accumulo-gc

bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig());
bs = conn.createBatchScanner(MetadataTable.NAME, Authorizations.EMPTY, 4);
bs.setRanges(Collections.singleton(Range.prefix(ReplicationSection.getRowPrefix())));
bs.fetchColumnFamily(ReplicationSection.COLF);
 MetadataSchema.ReplicationSection.getFile(entry.getKey(), replFileText);
 String replFile = replFileText.toString();
 boolean isClosed = closedWals.contains(replFile);
origin: org.apache.accumulo/accumulo-test

for (String file : files) {
 statBuilder.setCreatedTime(time++);
 Mutation m = new Mutation(ReplicationSection.getRowPrefix() + file);
 m.put(ReplicationSection.COLF, new Text(Integer.toString(index)),
   ProtobufUtil.toValue(statBuilder.build()));
s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
Assert.assertEquals(0, Iterables.size(s));
origin: org.apache.accumulo/accumulo-test

Map<String,Long> fileToTimeCreated = new HashMap<>();
for (String file : files) {
 Mutation m = new Mutation(ReplicationSection.getRowPrefix() + file);
 m.put(ReplicationSection.COLF, new Text(Integer.toString(index)),
   StatusUtil.fileCreatedValue(timeCreated));
origin: org.apache.accumulo/accumulo-master

final Set<Range> range = Collections.singleton(new Range(ReplicationSection.getRange()));
BatchScanner bs;
try {
origin: org.apache.accumulo/accumulo-server-base

s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
for (Entry<Key,Value> entry : s) {
origin: org.apache.accumulo/accumulo-master

if (colfHolder.equals(ReplicationSection.COLF)) {
 file = rowHolder.toString();
 file = file.substring(ReplicationSection.getRowPrefix().length());
} else if (colfHolder.equals(OrderSection.NAME)) {
 file = OrderSection.getFile(entry.getKey(), rowHolder);
origin: org.apache.accumulo/accumulo-test

 Mutation m = new Mutation(ReplicationSection.getRowPrefix() + file);
 m.put(ReplicationSection.COLF, new Text(Integer.toString(index)), ProtobufUtil.toValue(stat));
 bw.addMutation(m);
s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
for (Entry<Key,Value> e : s) {
s.setRange(ReplicationSection.getRange());
s.fetchColumnFamily(ReplicationSection.COLF);
Assert.assertEquals(0, Iterables.size(s));
origin: org.apache.accumulo/accumulo-core

metaBs.setRanges(Collections.singleton(ReplicationSection.getRange()));
metaBs.fetchColumnFamily(ReplicationSection.COLF);
try {
 Text buffer = new Text();
 for (Entry<Key,Value> entry : metaBs) {
  if (tableId.equals(ReplicationSection.getTableId(entry.getKey()))) {
   ReplicationSection.getFile(entry.getKey(), buffer);
   wals.add(buffer.toString());
org.apache.accumulo.core.metadata.schemaMetadataSchema$ReplicationSection

Javadoc

Holds references to files that need replication
 
 
~replhdfs://localhost:8020/accumulo/wal/tserver+port/WAL stat:local_table_id [] -> protobuf 
 

Most used methods

  • getRange
  • getFile
    Extract the file name from the row suffix into the given Text
  • getRowPrefix
  • getTableId
    Extract the table ID from the colfam

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Permission (java.security)
    Legacy security code; do not use.
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now