Package libsidutils.fingerprinting.rest
Schnittstelle FingerPrintingDataSource
- Alle bekannten Implementierungsklassen:
FingerprintingClient,WhatsSidService
public interface FingerPrintingDataSource
This data source is the interface to the fingerprinting database.
- Autor:
- ken
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindHashes(IntArrayBean intArray) Find hashes of an already existing tune.findTune(SongNoBean songNoBean) Find a matched tune.voidinsertHashes(HashBeans hashBeans) Insert the hashes of a new tune into the database.insertTune(MusicInfoBean musicInfoBean) Insert a new tune into the database.booleantuneExists(MusicInfoBean musicInfoBean) Check if a tune is already in the database.
-
Methodendetails
-
insertTune
Insert a new tune into the database. First step of inserting a tune with hashes.- Parameter:
musicInfoBean- tune information- Gibt zurück:
- tune id
-
insertHashes
Insert the hashes of a new tune into the database. Last step of inserting a tune with hashes.- Parameter:
hashBeans- generated hashes of the fingerprinted tune
-
tuneExists
Check if a tune is already in the database. Call this prior to inserting a new tune.- Parameter:
musicInfoBean- tune information- Gibt zurück:
- tune exists
-
findHashes
Find hashes of an already existing tune. First step of matching a tune.- Parameter:
intArray- hashes of an already existing tune to match.- Gibt zurück:
- matching hashes
-
findTune
Find a matched tune. Last step of matching a tune.- Parameter:
songNoBean- matched song number- Gibt zurück:
- music info of a matched tune
-