@Test public void testHasColumns() { Set<String> columnNames = getTableMetadata().getColumnMetadata().stream() .map(ColumnMetadata::getName) .collect(ImmutableSet.toImmutableSet()); assertThat( columnNames, equalTo(ImmutableSet.of(COL_NODE, COL_VRF, COL_PEER, COL_ACTION, COL_PREFIX))); }
static TableMetadata getTableMetadata() { List<ColumnMetadata> columnMetadata = ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "The node where action takes place"), new ColumnMetadata(COL_VRF, Schema.STRING, "The VRF where action takes place"), new ColumnMetadata( COL_PEER, Schema.NODE, "The node's neighbor to which the action applies"), new ColumnMetadata(COL_ACTION, Schema.STRING, "The action that takes place"), new ColumnMetadata(COL_PREFIX, Schema.PREFIX, "The prefix in question")); return new TableMetadata(columnMetadata, TEXT_DESC); }
PrefixTracerAnswerer extends Answerer { static TableMetadata getTableMetadata() { List<ColumnMetadata> columnMetadata = ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "The node where action takes place"), new ColumnMetadata(COL_VRF, Schema.STRING, "The VRF where action takes place"), new ColumnMetadata( COL_PEER, Schema.NODE, "The node's neighbor to which the action applies"), new ColumnMetadata(COL_ACTION, Schema.STRING, "The action that takes place"), new ColumnMetadata(COL_PREFIX, Schema.PREFIX, "The prefix in question")); return new TableMetadata(columnMetadata, TEXT_DESC); } }
PrefixTracerAnswerer extends Answerer { static TableMetadata getTableMetadata() { List<ColumnMetadata> columnMetadata = ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "The node where action takes place"), new ColumnMetadata(COL_VRF, Schema.STRING, "The VRF where action takes place"), new ColumnMetadata( COL_PEER, Schema.NODE, "The node's neighbor to which the action applies"), new ColumnMetadata(COL_ACTION, Schema.STRING, "The action that takes place"), new ColumnMetadata(COL_PREFIX, Schema.PREFIX, "The prefix in question")); return new TableMetadata(columnMetadata, TEXT_DESC); } PrefixTracerAnswerer(Question question, IBatfish batfish); }
PrefixTracerAnswerer extends Answerer { static TableMetadata getTableMetadata() { List<ColumnMetadata> columnMetadata = ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "The node where action takes place"), new ColumnMetadata(COL_VRF, Schema.STRING, "The VRF where action takes place"), new ColumnMetadata( COL_PEER, Schema.NODE, "The node's neighbor to which the action applies"), new ColumnMetadata(COL_ACTION, Schema.STRING, "The action that takes place"), new ColumnMetadata(COL_PREFIX, Schema.PREFIX, "The prefix in question")); return new TableMetadata(columnMetadata, TEXT_DESC); } PrefixTracerAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot); }
PrefixTracerAnswerer extends Answerer { static TableMetadata getTableMetadata() { List<ColumnMetadata> columnMetadata = ImmutableList.of( new ColumnMetadata(COL_NODE, Schema.NODE, "The node where action takes place"), new ColumnMetadata(COL_VRF, Schema.STRING, "The VRF where action takes place"), new ColumnMetadata( COL_PEER, Schema.NODE, "The node's neighbor to which the action applies"), new ColumnMetadata(COL_ACTION, Schema.STRING, "The action that takes place"), new ColumnMetadata(COL_PREFIX, Schema.PREFIX, "The prefix in question")); return new TableMetadata(columnMetadata, TEXT_DESC); } PrefixTracerAnswerer(Question question, IBatfish batfish); @Override AnswerElement answer(NetworkSnapshot snapshot);  }