Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/airbnb/SpinalTap
/ functions
Functions
687 in github.com/airbnb/SpinalTap
⨍
Functions
687
◇
Types & classes
189
↓ 203 callers
Method
get
Retrieves the current object value.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:39
↓ 54 callers
Method
getValue
(final String columnName)
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/mutation/schema/Row.java:16
↓ 46 callers
Method
map
Maps an object to another. @param object the object to map. @return the resulting mapped object.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Mapper.java:21
↓ 38 callers
Method
put
(MysqlTableSchema schema)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaStore.java:122
↓ 37 callers
Method
add
Adds a new {@link SourceState} entry to the history.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateHistory.java:68
↓ 34 callers
Method
isStarted
Whether the source is started and processing events.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:26
↓ 31 callers
Method
inc
Increment the counter by one.
spinaltap-common/src/main/java/com/airbnb/common/metrics/Counter.java:10
↓ 31 callers
Method
set
Sets the current object value. @param value the object value.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:28
↓ 30 callers
Method
getMetadata
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/mutation/MysqlMutation.java:26
↓ 29 callers
Method
open
Initializes the source and prepares for event processing. <p>The operation should be idempotent.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:33
↓ 28 callers
Method
addSourcePrefix
(@NotNull final String sql)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaDatabase.java:161
↓ 25 callers
Method
getName
The name of the source
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:17
↓ 25 callers
Method
toString
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/GtidSet.java:79
↓ 24 callers
Method
size
@return the current size of the state history.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateHistory.java:118
↓ 23 callers
Method
isEmpty
@return {@code True} if the history is empty, else {@code False}.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateHistory.java:113
↓ 22 callers
Method
apply
Applies the filter on the object @param object the object to filter @return {@code true} if the filter condition passes, {@code false} otherwise
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Filter.java:20
↓ 18 callers
Method
getLastPublishedMutation
@return the last {@link Mutation} that has been successfully published.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/Destination.java:17
↓ 17 callers
Method
execute
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/BufferedDestination.java:118
↓ 17 callers
Method
send
(Mutation<?> mutation)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/Destination.java:19
↓ 15 callers
Method
close
Stops event processing and closes the source. <p>The operation should be idempotent.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:40
↓ 15 callers
Method
getTableColumns
(@NonNull String database, @NonNull String table)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaReader.java:58
↓ 14 callers
Method
build
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/ChainedFilter.java:46
↓ 14 callers
Method
incError
(String metricName, Throwable error)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/metrics/SpinalTapMetrics.java:78
↓ 13 callers
Method
addListener
Adds a {@link Listener} to the source.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:20
↓ 13 callers
Method
addMapper
(Class<S> klass, Mapper<S, ? extends R> mapper)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/ClassBasedMapper.java:37
↓ 13 callers
Method
build
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/BinlogFilePos.java:165
↓ 12 callers
Method
clear
Clears the state of the source. <p>The operation should be idempotent.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:47
↓ 12 callers
Method
createColumn
( String name, ColumnDataType dataType, boolean isPk, Serializable value, int position)
spinaltap-mysql/src/test/java/com/airbnb/spinaltap/mysql/validator/MutationSchemaValidatorTest.java:106
↓ 12 callers
Method
getOffset
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/event/BinlogEvent.java:28
↓ 12 callers
Method
getServerUUID
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/MysqlClient.java:94
↓ 12 callers
Method
removeLast
Removes the most recently added {@link SourceState} entry from the history.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateHistory.java:78
↓ 12 callers
Method
size
Returns the number of entities in the event
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/SourceEvent.java:21
↓ 11 callers
Method
getRow
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/mutation/MysqlMutation.java:19
↓ 10 callers
Method
getColumnsForAllTables
(@NonNull String database)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaDatabase.java:127
↓ 10 callers
Method
read
@return the {@link SourceState} record present in the repository.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateRepository.java:45
↓ 9 callers
Method
addOrUpdate
Adds or replaces (if already exists) a {@link Table} entry in the cache for the given table id. @param tableId The table id @param tableName The tabl
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/TableCache.java:56
↓ 9 callers
Method
checkpoint
Commits the source checkpoint on the specified {@link Mutation}. On source start, streaming will begin from the last marked checkpoint.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:53
↓ 9 callers
Method
contains
@return {@code True} if a cache entry exists for the given table id, otherwise {@code False}.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/TableCache.java:44
↓ 9 callers
Method
getEntity
()
spinaltap-mysql/src/test/java/com/airbnb/spinaltap/mysql/ColumnSerializationUtilTest.java:62
↓ 9 callers
Method
getTags
(SourceEvent event)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/metrics/SpinalTapMetrics.java:121
↓ 9 callers
Method
isEmpty
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/pipe/PipeManager.java:95
↓ 9 callers
Method
remove
Delete the current object
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:42
↓ 9 callers
Method
validateMetadata
(Mutation mutation, int rowPosition)
spinaltap-mysql/src/test/java/com/airbnb/spinaltap/mysql/event/mapper/MysqlMutationMapperTest.java:418
↓ 8 callers
Method
applyDDL
(@NonNull final String sql, final String database)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaDatabase.java:38
↓ 8 callers
Method
fromString
(@NonNull final String position)
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/BinlogFilePos.java:69
↓ 8 callers
Method
getHost
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/config/AbstractMysqlConfiguration.java:27
↓ 8 callers
Method
getRowIdsToDelete
(BinlogFilePos earliestPos)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaStore.java:256
↓ 8 callers
Method
loadSchemaCacheUntil
(BinlogFilePos pos)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaStore.java:87
↓ 8 callers
Method
taggedName
Build the tagged metric for Datadog from a map for tags in a key:value format. <p>We could validate that the name and tags don't contain [, ] or , be
spinaltap-common/src/main/java/com/airbnb/common/metrics/TaggedMetricRegistry.java:82
↓ 8 callers
Method
update
Updates the current object value given a {@link DataUpdater}. @param value the object value. @param updater the updater .
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:36
↓ 8 callers
Method
validate
(@NonNull final BinlogEvent event)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/validator/EventOrderValidator.java:27
↓ 8 callers
Method
validate
Validates a {@link Mutation} is received in order, otherwise triggers the specified handler.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/validator/MutationOrderValidator.java:33
↓ 7 callers
Method
addFilter
(Filter<T> filter)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/ChainedFilter.java:41
↓ 7 callers
Method
builder
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/BinlogFilePos.java:127
↓ 7 callers
Method
compareTo
(@NonNull final BinlogFilePos other)
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/BinlogFilePos.java:99
↓ 7 callers
Method
getPort
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/config/AbstractMysqlConfiguration.java:29
↓ 7 callers
Method
getPrimaryKeyValue
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/mutation/schema/Row.java:21
↓ 7 callers
Method
processDDL
(QueryEvent event, String gtid)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaManager.java:49
↓ 7 callers
Method
removeListener
Removes a {@link Listener} from the source.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/Source.java:23
↓ 7 callers
Method
resetToLastValidState
Resets to the last valid {@link MysqlSourceState} recorded in the {@link StateHistory}.
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/MysqlSource.java:145
↓ 7 callers
Method
size
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/event/WriteEvent.java:27
↓ 6 callers
Method
builder
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/ChainedFilter.java:23
↓ 6 callers
Method
create
Creates a new object. @param value the object value.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:21
↓ 6 callers
Method
createMutation
(MutationType type)
spinaltap-kafka/src/test/java/com/airbnb/spinaltap/kafka/KafkaDestinationTest.java:171
↓ 6 callers
Method
exists
@return whether an object exists
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Repository.java:14
↓ 6 callers
Method
get
@return the {@link Table} cache entry for the given table id if present, otherwise {@code null}
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/TableCache.java:37
↓ 6 callers
Method
getFileNumber
()
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/BinlogFilePos.java:82
↓ 6 callers
Method
getName
@return The name of the pipe.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/pipe/Pipe.java:50
↓ 6 callers
Method
notifyError
(Throwable error)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/ListenableSource.java:40
↓ 6 callers
Method
save
Saves or updates the {@link SourceState} record in the repository
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/StateRepository.java:22
↓ 6 callers
Method
stop
()
spinaltap-common/src/test/java/com/airbnb/spinaltap/common/source/AbstractSourceTest.java:169
↓ 6 callers
Method
validate
Validates the object. @param object the object
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/Validator.java:18
↓ 5 callers
Method
clear
Clears the state of the destination. <p>The operation should be idempotent.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/Destination.java:59
↓ 5 callers
Method
getKey
Use the primary key as the key of the ProducerRecord.
spinaltap-kafka/src/main/java/com/airbnb/spinaltap/kafka/KafkaDestination.java:104
↓ 5 callers
Method
getSchemaDatabaseName
(@NonNull final String source, final String database)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaDatabase.java:175
↓ 5 callers
Method
isContainedWithin
(GtidSet other)
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/GtidSet.java:62
↓ 5 callers
Method
listDatabases
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaDatabase.java:59
↓ 5 callers
Method
notifyStart
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/ListenableSource.java:44
↓ 5 callers
Method
onError
(Throwable error)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/pipe/Pipe.java:213
↓ 5 callers
Method
onMutation
(List<? extends Mutation<?>> mutations)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/pipe/Pipe.java:209
↓ 5 callers
Method
processEvent
Processes an event produced by the {@link Source} and notifies {@link Source.Listener} subscribers of the corresponding {@link Mutation}s.
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/source/AbstractSource.java:123
↓ 5 callers
Method
serializeColumn
(@NonNull final Column oldColumn)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/ColumnSerializationUtil.java:21
↓ 5 callers
Method
start
()
spinaltap-common/src/test/java/com/airbnb/spinaltap/common/source/AbstractSourceTest.java:159
↓ 4 callers
Method
builder
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/util/ClassBasedMapper.java:20
↓ 4 callers
Method
canonicalNameOf
(String db, String tableName)
spinaltap-model/src/main/java/com/airbnb/spinaltap/mysql/mutation/schema/Table.java:109
↓ 4 callers
Method
createMutation
(Row row)
spinaltap-mysql/src/test/java/com/airbnb/spinaltap/mysql/validator/MutationSchemaValidatorTest.java:102
↓ 4 callers
Method
createRetryer
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaUtil.java:44
↓ 4 callers
Method
escapeBackQuote
(@NonNull final String name)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaUtil.java:52
↓ 4 callers
Method
getAllSchemas
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaStore.java:97
↓ 4 callers
Method
getGlobalVariableValue
(String variableName)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/MysqlClient.java:107
↓ 4 callers
Method
getOverridingDatabase
()
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/config/AbstractMysqlConfiguration.java:33
↓ 4 callers
Method
getPoolSize
()
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/DestinationPool.java:55
↓ 4 callers
Method
getTableTags
(final String database, final String table)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/MysqlSourceMetrics.java:162
↓ 4 callers
Method
getUpdatedColumns
( final Map<String, ?> previousValues, final Map<String, ?> currentValues)
spinaltap-model/src/main/java/com/airbnb/spinaltap/Mutation.java:68
↓ 4 callers
Method
isStarted
()
spinaltap-common/src/test/java/com/airbnb/spinaltap/common/destination/DestinationPoolTest.java:155
↓ 4 callers
Method
removeCommentsFromDDL
(final String ddl)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/schema/MysqlSchemaUtil.java:57
↓ 4 callers
Method
saveState
(@NonNull final MysqlSourceState state)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/MysqlSource.java:220
↓ 4 callers
Method
transformToEntity
(@NonNull final Row row)
spinaltap-mysql/src/main/java/com/airbnb/spinaltap/mysql/mutation/mapper/ThriftMutationMapper.java:77
↓ 4 callers
Method
update
Adds a recorded value. @param value the length of the value
spinaltap-common/src/main/java/com/airbnb/common/metrics/Histogram.java:14
↓ 4 callers
Method
withMapper
(@NonNull final Mapper<Mutation<?>, T> mapper)
spinaltap-common/src/main/java/com/airbnb/spinaltap/common/destination/DestinationBuilder.java:40
next →
1–100 of 687, ranked by callers